Welcome! Log In Create A New Profile

Advanced

"An error occurred while writing CGI reply" with fcgiwrap

June 18, 2009 10:14AM
Hi,

I am using fcgiwrap from http://nginx.localdomain.pl/wiki/FcgiWrap to run Perl scripts with Nginx (0.6.35) and first it functioned just fine but then suddenly it stopped working with one application (Movable Type) and only returns message "An error occurred while writing CGI reply". I tested some other simple Perl scripts and with those it still works fine and returns the normal content. I also tested executing the problematic scripts from command line and from there those still worked normally.

Nginx access log is showing 502 errors for the requests which produce the mentioned error message. Nothing in error log.

Here is CGI part of the site Nginx configuration:

location ~ ^/cgi-bin/.*\.cgi$ {
gzip off;
fastcgi_pass unix:/path/to/cgi.sock;
fastcgi_param SCRIPT_FILENAME /path/to/www.domain.tld$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT /path/to/www.domain.tld/;
include /path/to/fastcgi_params;
}


Any ideas what could be causing this?


Thanks.
Subject Author Posted

"An error occurred while writing CGI reply" with fcgiwrap

taha June 18, 2009 10:14AM

Re: "An error occurred while writing CGI reply" with fcgiwrap

taha June 18, 2009 10:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 306
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready