![]() |
Occasional FastCGI Error on Ubuntu 10.04
Using the "Perfect Server" howto for Ubuntu 10.04 and ISPConfig 3.0.3.2
I've been trying to track down this error for weeks now, it's driving me nuts. Every once in a while, site visitors using Firefox (on any OS) get the following error on the home page of the site: Code:
Content Encoding ErrorIE8 also gets hit with this problem, but instead of displaying an error page, it drops down to "compatibility mode" and renders the page horribly. On the server, whenever this error page comes up, I get the following entry in the error log: Code:
[Sat Feb 12 18:20:28 2011] [warn] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://www.friendlyphotozone.com/home/fpz-news?start=8What can I do to diagnose and solve this? edit: I'm using the default wrapper script generated by ISPConfig to load fcgid. |
Please post the content of the fcgi wrapper script that is used by this website.
|
Code:
#!/bin/sh |
erm... Hello?
|
seriously? 2+ weeks?
|
The file is ok. The messages "Connection reset by peer: mod_fcgid" are logged when someone e.g. presses the cancel button in its browser while the page loads or when the connection is interrupted. So there is no problem on your server.
|
Quote:
According to the serverlogs, fcgid was hitting its end of life and getting restarted. Everytime that happened while a user was loading a page, they would get an error message in Firefox, or IE8 would drop into "compatibility mode". This happened multiple times a day to multiple users (including myself) at very random times. It was a very frequently-reported bug. Uncommenting these two lines: # PHP_FCGI_CHILDREN=8 # export PHP_FCGI_CHILDREN and reloading the web server has finally fixed the problem. Now there's a running fcgid process waiting when an old one reaches EOL and gets shut own. I needed to do this on every vhost, because each one suffered the same fate until that change was made. |
These lines are already commented out in current ispconfig versions, as you can see in the master template and in the template the file that you posted above.
|
Quote:
|
| All times are GMT +2. The time now is 16:36. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.