Current time: 07-03-2022, 06:25 AM Hello There, Guest! (LoginRegister)


Post Reply 
fcgid error with file uploads or email forwards
Author Message
ziad Offline
Newbie
*

Posts: 6
Joined: Jan 2010
Reputation: 0
Post: #1
fcgid error with file uploads or email forwards
Hello,

I keep running into this problem since I fresh installed ISPCP 1.0.2. I did upgrade to 1.0.3-1 but that did not fix the problem.

Problem happens during either:
Uploading large files even not more than 1 meg
Forwarding large email messages through webmail

Opera Browser connection gets closed with the errors in suexec. IE browser hangs (typical)

Error logs in the suexec.log are:
The timeout specified has expired: mod_fcgid: can't get data from http client
Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function

I have edited the master fcgid with no luck:
post_max_size = 50M
upload_max_filesize = 50M



What am I missing?

Thanks!
01-07-2010 11:59 PM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #2
RE: fcgid error with file uploads or email forwards
This has to do with the timeouts setup for fcgid itself.

Here is my 20_mod_fcgid.conf file used to define the modules settings (yours will be a different file name, but similar content).


Code:
<IfDefine FCGID>
  LoadModule fcgid_module modules/mod_fcgid.so
  SocketPath /var/run/fcgidsock
  SharememPath /var/run/fcgid_shm

  AddHandler fcgid-script .php .php5 .asax .ashx .asmx .aspx .ascx .axd .config .cs .dll .rem .soap

  IPCConnectTimeout 90
  IdleTimeout 300
  IdleScanInterval 120
  ProcessLifeTime 3600
  MaxProcessCount 250
  DefaultMinClassProcessCount 3
  DefaultMaxClassProcessCount 10
  IPCCommTimeout 300
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 3
  MaxRequestsPerProcess 500
  ZombieScanInterval 3

   DefaultInitEnv MONO_SHARED_DIR /tmp/mono-fastcgi
</IfDefine>
(This post was last modified: 01-09-2010 07:21 AM by pgentoo.)
01-09-2010 07:21 AM
Find all posts by this user Quote this message in a reply
ziad Offline
Newbie
*

Posts: 6
Joined: Jan 2010
Reputation: 0
Post: #3
RE: fcgid error with file uploads or email forwards
Hey! thanks alot for the reply. I actually tried to update this thread but for some reason the site did not respond.

I tried to switch to fastcgi and even mod_php5. I ended up with the same result. I could upload very small files however I could never forward or upload large files not even 1 meg in size.

Would there be anything related to apache? I noticed that session files were created in /var/www/ispcp/phptmp/ for the webmail and similar session files for the virtual sites so it is very unclear at which point the problem is.

Should I consider any apache config line or any folder permissions? I have already tried 777 on /tmp and /var/www/ispcp/phptmp just as a test with no luck.

Thanks for your replies Smile
01-09-2010 07:31 AM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #4
RE: fcgid error with file uploads or email forwards
Your httpd.conf (or included file) should have a setting like "Timeout 300" or similar. This is the number of seconds that apache will allow for a send or receive operation. if you are breaking this timeout, then that could be the issue.

What error are you seeing when you upload? If a php error gets displayed then it is not an apache issue, and more likely a php timeout/issue.

If you switch to mod_php5, then your php.ini that gets loaded will be from a different location. You'll need it edit hte correct php.ini with the new 'upload_max_filesize' settings. I believe the default is 2M though, so a 1M file shouldn't error regardless.

If your connection is slow, maybe it is simply timing out in PHP. Check the values of max_input_time and max_execution_time, and raise them if necessary.

-
pgentoo
01-09-2010 07:51 AM
Find all posts by this user Quote this message in a reply
ziad Offline
Newbie
*

Posts: 6
Joined: Jan 2010
Reputation: 0
Post: #5
RE: fcgid error with file uploads or email forwards
Hi there,

I had a vyatta router infront of the server with Snort active. Snort was blocking all traffic whenever it sees binary uploads such as file uploads or large emails. Anything under 128k would pass.

I reconfigured snort to ignore that rule and system was working without any problems.

Hope that helps. : )
02-10-2010 04:27 PM
Find all posts by this user Quote this message in a reply
rethus Offline
Junior Member
*

Posts: 202
Joined: May 2009
Reputation: 3
Post: #6
RE: fcgid error with file uploads or email forwards
I havve nearly the same Problem.

The website works well, but if i try to do an upload, in my logfiles ffor the domain i got this:

Quote:[warn] (20014)Internal error: mod_fcgid: can't get data from http client

Any Idea what the problem could be?
07-13-2010 07:30 PM
Find all posts by this user Quote this message in a reply
rethus Offline
Junior Member
*

Posts: 202
Joined: May 2009
Reputation: 3
Post: #7
RE: fcgid error with file uploads or email forwards
Here some news. On another Domain (same cms-system) - the upload works well.

This special Domain (where the upload didn't work) is avviable only on https, so i have added a 02_ssl.conf to /etc/apache2/sites-available/.

May there an Error in this file, that result in this problem?
07-13-2010 10:10 PM
Find all posts by this user Quote this message in a reply
rethus Offline
Junior Member
*

Posts: 202
Joined: May 2009
Reputation: 3
Post: #8
RE: fcgid error with file uploads or email forwards
Seems to be a BUG in mod_fcgid while using on https (gnu_tls):
http://permalink.gmane.org/gmane.comp.we...d.user/297

Actual used version: libapache2-mod-fcgid 2.2-1
(This post was last modified: 07-13-2010 11:52 PM by rethus.)
07-13-2010 11:40 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)