[Koha] [Koha 16.05] CGI Error: "script not found or unable to stat: /usr/lib/cgi-bin/img..."

Craig Butosi craig.butosi at rcmusic.ca
Sat Aug 6 05:31:22 NZST 2016


Hi Nombre,

I too have nothing in /usr/lib/cgi-bin. Empty there.

And ../cgi-bin/img is not existent on my machine too. Very confusing.

I'm at a loss here. A quick browse on this error in general seems to happen in apache when running cgi scripts. The fix for this error is to insert a script alias in a virtual host file. But since this isn't an apache2 issue, I'm lost.

C



Craig Butosi, MA, MLIS, B Mus (Hons.)
LIBRARY SERVICES MANAGER
THE ROYAL CONSERVATORY
TELUS Centre for Performance and Learning
273 Bloor Street West
Toronto, ON M5S 1W2
416.408.2824 x338
www.rcmusic.ca


-----Original Message-----
From: Koha [mailto:koha-bounces at lists.katipo.co.nz] On Behalf Of Nombre
Sent: August-05-16 12:42 PM
To: koha at lists.katipo.co.nz
Subject: Re: [Koha] [Koha 16.05] CGI Error: "script not found or unable to stat: /usr/lib/cgi-bin/img..."

El 05/08/16 a las 16:54, Craig Butosi escribió:
> Hi Nombre,
>
> From the command line:
>
> $ export KOHA_CONF=/etc/koha/sites/library2/koha-conf.xml
> $ /usr/share/koha/bin/cronjobs/fines.pl
>
> throws:
>
> Can't locate C4/Context.pm in @INC (you may need to install the C4::Context module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/share/koha/bin/cronjobs/fines.pl line 33.
> BEGIN failed--compilation aborted at /usr/share/koha/bin/cronjobs/fines.pl line 33.

Not executed.

>
> Intranet-error.log reports around the same time:
>
> [Fri Aug 05 10:51:25.492127 2016] [cgi:error] [pid 30817] [client
> 209.20.18.21:64060] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/members/pay.pl?borrowernumber=
> 1 [Fri Aug 05 10:51:25.526676 2016] [cgi:error] [pid 30823] [client
> 209.20.18.21:64149] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/members/pay.pl?borrowernumber=
> 1

This problem is not due to fines.pl, I think, It's present even fines.pl was not executed. I couldn't find any reference to ../cgi-bin/img. In my installation there's nothing in /usr/lib/cgi-bin

> [Fri Aug 05 10:51:30.909833 2016] [cgi:error] [pid 30827] [client
> 209.20.18.21:64153] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/members/members-home.pl
> [Fri Aug 05 10:51:34.942577 2016] [cgi:error] [pid 30867] [client
> 209.20.18.21:64234] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/members/member.pl
> [Fri Aug 05 10:51:40.637561 2016] [cgi:error] [pid 30873] [client
> 209.20.18.21:64281] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/members/moremember.pl?borrower
> number=2824 [Fri Aug 05 10:51:40.667311 2016] [cgi:error] [pid 30883]
> [client 209.20.18.21:64408] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/members/moremember.pl?borrower
> number=2824 [Fri Aug 05 10:51:45.847029 2016] [cgi:error] [pid 30887]
> [client 209.20.18.21:64409] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/members/pay.pl?borrowernumber=
> 2824 [Fri Aug 05 10:51:45.868443 2016] [cgi:error] [pid 30893] [client
> 209.20.18.21:64730] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/members/pay.pl?borrowernumber=
> 2824 [Fri Aug 05 10:51:53.275770 2016] [cgi:error] [pid 30901] [client
> 209.20.18.21:64768] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/circ/circulation.pl?borrowernu
> mber=2824 [Fri Aug 05 10:51:53.292277 2016] [cgi:error] [pid 30905]
> [client 209.20.18.21:64965] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/circ/circulation.pl?borrowernu
> mber=2824 [Fri Aug 05 10:51:53.303892 2016] [cgi:error] [pid 30907]
> [client 209.20.18.21:64966] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/circ/circulation.pl?borrowernu
> mber=2824 [Fri Aug 05 10:52:03.480931 2016] [cgi:error] [pid 30914]
> [client 209.20.18.21:64968] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/members/readingrec.pl?borrower
> number=2824 [Fri Aug 05 10:52:03.516939 2016] [cgi:error] [pid 30926]
> [client 209.20.18.21:65157] script not found or unable to stat:
> /usr/lib/cgi-bin/img, referer:
> http://rel.rcmusic.ca:8080/cgi-bin/koha/members/readingrec.pl?borrower
> number=2824
>
>
> No fines calculated/posted.
>
> C
>
> Craig Butosi, MA, MLIS, B Mus (Hons.)
> LIBRARY SERVICES MANAGER
> THE ROYAL CONSERVATORY
> TELUS Centre for Performance and Learning
> 273 Bloor Street West
> Toronto, ON M5S 1W2
> 416.408.2824 x338
> www.rcmusic.ca


Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you.


More information about the Koha mailing list