HTTP 500 error when requesting json.pl on OTRS and Windows caused by perl path

Hi all, I'm running OTRS 2.4.7 on Windows Server 2003 SP2 with the customer back end pointing to an LDAP directory on Active Directory. Everything was working fine but when I installed the iPhoneHandle package (iPhoneHandle-0.9.4.opm via the OTS interface) all I could get (from the iPhone or a normal browser) was a 500 error. In the Apache error.log file I got; [Tue Aug 10 09:32:19 2010] [error] [client nn.nn.nn.nn] (OS 3)The system cannot find the path specified. : couldn't create child process: 720003: json.pl [Tue Aug 10 09:32:19 2010] [error] [client nn.nn.nn.nn] (OS 3)The system cannot find the path specified. : couldn't spawn child process: C:/Program Files/OTRS/OTRS/bin/cgi-bin/json.pl I checked the package and it was all showing as status OK in the package manager, I checked and the file c:\Program Files\otrs\otrs\bin\cgi-bin\json.pl exists, so assumed it was something other than the file just not being there. I checked json.pl and the first line pointing to perl was #!/usr/bin/perl -w. I compared it to my index.pl and substituted the line from there; #!C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe -w .. and now everything is working fine. I might have been dumb not to check this first, but just in case anyone else had the error I thought I'd post it up as I'm sure everyone's dying to get the iPhone app up and working! Regards -- Richard Bartlett (Computer Officer) University of Cambridge Institute of Continuing Education, # 01223 (7)46240

Hi Richard,
thanks for reporting the issue, and for sharing the resolution!
You're right, if you're running OTRS as CGI, this issue will occur. If
you happen to run OTRS with mod_perl (as you can with the mod_perl
installer from our website) this will not be a problem.
I'll file a bug report for you in our bugzilla and assign it to one of
our developers to see if we can implement a fix for it.
((enjoy))
Michiel Beijen
Senior Consultant
Follow me on Twitter: @otrsnl [https://twitter.com/otrsnl]
OTRS BV
Schipholweg 103
2316 XC Leiden
The Netherlands
T: +31 71 8200 255
F: +31 71 8200 254
I: http://www.otrs.com
On Tue, Aug 10, 2010 at 12:00 PM, Richard Bartlett
Hi all,
I’m running OTRS 2.4.7 on Windows Server 2003 SP2 with the customer back end pointing to an LDAP directory on Active Directory. Everything was working fine but when I installed the iPhoneHandle package (iPhoneHandle-0.9.4.opm via the OTS interface) all I could get (from the iPhone or a normal browser) was a 500 error. In the Apache error.log file I got;
[Tue Aug 10 09:32:19 2010] [error] [client nn.nn.nn.nn] (OS 3)The system cannot find the path specified. : couldn't create child process: 720003: json.pl
[Tue Aug 10 09:32:19 2010] [error] [client nn.nn.nn.nn] (OS 3)The system cannot find the path specified. : couldn't spawn child process: C:/Program Files/OTRS/OTRS/bin/cgi-bin/json.pl
I checked the package and it was all showing as status OK in the package manager, I checked and the file c:\Program Files\otrs\otrs\bin\cgi-bin\json.pl exists, so assumed it was something other than the file just not being there. I checked json.pl and the first line pointing to perl was #!/usr/bin/perl -w. I compared it to my index.pl and substituted the line from there;
#!C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe –w
.. and now everything is working fine.
I might have been dumb not to check this first, but just in case anyone else had the error I thought I’d post it up as I’m sure everyone’s dying to get the iPhone app up and working!
Regards
--
Richard Bartlett (Computer Officer)
University of Cambridge Institute of Continuing Education, # 01223 (7)46240
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
participants (2)
-
Michiel Beijen
-
Richard Bartlett