OTRS in FastCGI mode wide character error

Moderator: crythias

Locked
sergey
Znuny newbie
Posts: 3
Joined: 23 Jun 2010, 15:06
Znuny Version: 2.4.7

OTRS in FastCGI mode wide character error

Post by sergey »

Good day.

I planning to use nginx instead of Apache for running OTRS.

Code: Select all

But when i am trying to run OTRS with nginx (i am use spawn-fcgi to run otrs scripts) i got next message:
2010/12/06 15:51:32 [error] 11957#0: *1 FastCGI sent in stderr: "Wide character in FCGI::Stream::PRINT at /opt/otrs-3.0.3/bin/fcgi-bin/../../Kernel/Output/HTML/Layout.pm line 1526.
Wide character in FCGI::Stream::PRINT at /opt/otrs-3.0.3/bin/fcgi-bin/../../Kernel/Output/HTML/Layout.pm line 1526" while reading response header from upstream, client: 10.25.1.76, server: otrs, request: "GET /otrs/customer.pl HTTP/1.1", upstream: "fastcgi://unix:/var/run/otrs/customer.sock-1:", host: "otrs", referrer: "http://otrs/"
2010/12/06 15:51:32 [error] 11957#0: *1 upstream closed prematurely FastCGI stdout while reading response header from upstream, client: 10.25.1.76, server: otrs, request: "GET /otrs/customer.pl HTTP/1.1", upstream: "fastcgi://unix:/var/run/otrs/customer.sock-1:", host: "otrs", referrer: "http://otrs/"
Version of OTRS - 3.0.3
nginx - 0.7.65
spawn-fcgi - 1.6.3

Location section of nginx for index.pl:

Code: Select all

        location /otrs/index.pl {
            gzip off;
            fastcgi_pass unix:/var/run/otrs/index.sock-1;
            fastcgi_index index.pl;
            include /etc/nginx/fastcgi_params;
        }
sergey
Znuny newbie
Posts: 3
Joined: 23 Jun 2010, 15:06
Znuny Version: 2.4.7

Re: OTRS in FastCGI mode wide character error

Post by sergey »

Ok, i found a problem.
OTRS doesn't correctly encode data passed to CGI::Fast, and from 0.68 version CGI::Fast croak's if not decoded data were passed.
To run OTRS in FastCGI mode you need to downgrade CGI::Fast to 0.67 or early, OTRS doesn't works with newest versions.
Locked