[warn] mod_fcgid: read data timeout in 31 seconds

7 posts / 0 new
Last post
#1 Sun, 07/04/2010 - 16:01
Xencored

[warn] mod_fcgid: read data timeout in 31 seconds

Hello i have a program which imports images from a folder i have like 60000 to import

but i get error 500 all the time after 30secs i thought it was php memory limit but its not

in the log i get this

[Sun Jul 04 22:56:03 2010] [warn] mod_fcgid: read data timeout in 31 seconds [Sun Jul 04 22:56:03 2010] [error] [client ***********] Premature end of script headers: index.php, referer: http://www.myanimeisland.com/imageboard/admin

it worked fine before i moved server and reinstalled webmin/virtualmin

can someone please help me to get this running again Mike

Mon, 07/05/2010 - 09:35
Xencored

Ok ive Searched webmin and virtualmin for help but i find nothing the same as this

Mon, 07/05/2010 - 09:57
andreychek

Well, one option would be to bump up the fcgid timeout. However, it also could be an issue with fcgid in general... you might consider trying straight CGI. To switch that domain to CGI, you can go into Server Configuration -> Websites Options, and set the PHP Execution Mode to CGI.

-Eric

Mon, 07/05/2010 - 10:03
Xencored

Thanks Eric Where is the Server Configuration option is it in webmin ? i cant seem to find it and when i search in the box it shows

Configuration
For module LDAP Server

Mike

Edit nvm am a idiot i found it ill try it thanks

Mon, 07/05/2010 - 10:18
Xencored

Right same as before mate same error also i restarted apache2 if that was the right thing to do

Bah sorry i changed it on the wrong server its working now Thanks!!!! finaly

But as i moved it over my logs get this now lots too

[Mon Jul 05 17:15:49 2010] [error] [client ***********] Failed loading /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: cannot open shared object file: No such file or directory [Mon Jul 05 17:15:51 2010] [error] [client ***********] Premature end of JPEG file, referer: http://www.myanimeisland.com/imageboard/admin [Mon Jul 05 17:15:52 2010] [error] [client ***********] Failed loading /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: cannot open shared object file: No such file or directory [Mon Jul 05 17:15:54 2010] [error] [client ***********] Failed loading /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: cannot open shared object file: No such file or directory [Mon Jul 05 17:15:55 2010] [error] [client ***********] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Mon Jul 05 17:15:59 2010] [error] [client ***********] Failed loading /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: cannot open shared object file: No such file or directory, referer: http://image.baidu.jp [Mon Jul 05 17:16:05 2010] [error] [client ***********] Failed loading /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: cannot open shared object file: No such file or directory [Mon Jul 05 17:16:07 2010] [error] [client ***********] Premature end of JPEG file, referer: http://www.myanimeisland.com/imageboard/admin [Mon Jul 05 17:16:08 2010] [error] [client ***********] Failed loading /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: cannot open shared object file: No such file or directory [Mon Jul 05 17:16:10 2010] [error] [client ***********7] Failed loading /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: cannot open shared object file: No such file or directory [Mon Jul 05 17:16:13 2010] [error] [client ***********] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Mon Jul 05 17:16:23 2010] [error] [client ***********] Failed loading /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: cannot open shared object file: No such file or directory [Mon Jul 05 17:16:25 2010] [error] [client ***********] Failed loading /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so: cannot open shared object file: No such file or directory [Mon Jul 05 17:16:27 2010] [error] [client ***********] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Mon Jul 05 17:16:27 2010] [error] [client ***********] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

I dont use xcache tho hmm

Mon, 07/05/2010 - 10:39
andreychek

It sounds like somewhere in your php.ini file, it's setup to to load the xcache module.

Since you don't need it, you may just want to disable it.

I'd look in $HOME/etc/php.ini, and make sure xcache isn't listed in there.

Also, it could be listed in /etc somewhere... you'll want to check your php .ini and .conf files to see where it's being loaded from. However, if you just moved this domain from another server, chances are it's located in the Virtual Servers homedir (that is, $HOME/etc/php.ini).

-Eric

Mon, 07/05/2010 - 11:38
Xencored

[xcache-common] ;; install as zend extension (recommended), normally "$extension_dir/xcache.so" zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so ; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so ;; For windows users, replace xcache.so with php_xcache.dll zend_extension_ts = c:/php/extensions/php_xcache.dll ;; or install as extension, make sure your extension_dir setting is correct ; extension = xcache.so ;; or win32: ; extension = php_xcache.dll

[xcache.admin] xcache.admin.enable_auth = On xcache.admin.user = "vodkaholic" ; xcache.admin.pass = md5($your_password) xcache.admin.pass = "bf1223b0a6e444525eaca69213b48712"

[xcache] ; ini only settings, all the values here is default unless explained

; select low level shm/allocator scheme implemenation xcache.shm_scheme = "mmap" ; to disable: xcache.size=0 ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows xcache.size = 300M ; set to cpu count (cat /proc/cpuinfo |grep -c processor) xcache.count = 1 ; just a hash hints, you can always store count(items) > slots xcache.slots = 8K ; ttl of the cache item, 0=forever xcache.ttl = 0 ; interval of gc scanning expired items, 0=no scan, other values is in seconds xcache.gc_interval = 0

; same as aboves but for variable cache xcache.var_size = 4M xcache.var_count = 1 xcache.var_slots = 8K ; default ttl xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300

xcache.test = Off ; N/A for /dev/zero xcache.readonly_protection = Off ; for *nix, xcache.mmap_path is a file path, not directory. ; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection ; 2 group of php won't share the same /tmp/xcache ; for win32, xcache.mmap_path=anonymous map name, not file path xcache.mmap_path = "/dev/zero"

; leave it blank(disabled) or "/tmp/phpcore/" ; make sure it's writable by php (without checking open_basedir) xcache.coredump_directory = ""

; per request settings xcache.cacher = On xcache.stat = On xcache.optimizer = Off

[xcache.coverager] ; per request settings ; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance) xcache.coverager = Off

; ini only settings ; make sure it's readable (care open_basedir) by coverage viewer script ; requires xcache.coverager=On xcache.coveragedump_directory = ""

Should i just remove that bit?

Thanks Mike