Current time: 05-16-2024, 10:07 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mod_fcgid: read data timeout in 40 seconds
Author Message
lisiren Offline
Junior Member
*

Posts: 20
Joined: Dec 2010
Reputation: 0
Post: #1
Exclamation mod_fcgid: read data timeout in 40 seconds
Как пофиксить проблему с error 500 и mod_fcgid: read data timeout in 40 seconds?

Изменение параметров fcgid не помогает, отдельные настройки для хоста в /etc/apache2/ispcp/ тоже не работают.


ispcp 1.0.7 + Debian 5
07-21-2011 07:02 PM
Find all posts by this user Quote this message in a reply
DragonZX Offline
Moderator
*****
Moderators

Posts: 441
Joined: Aug 2010
Reputation: 5
Post: #2
RE: mod_fcgid: read data timeout in 40 seconds
1) Что ты конкретно делал? И скрины+логи в студию
2) Я бы рекомендовал обновить дистр (занимает от силы полчаса, а проблем намного меньше).
07-24-2011 04:19 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Minganus Offline
Banned

Posts: 38
Joined: Feb 2011
Post: #3
RE: mod_fcgid: read data timeout in 40 seconds
http://isp-control.net/forum/thread-12923.html
Не эта проблема описывается?
07-24-2011 08:53 PM
Find all posts by this user Quote this message in a reply
DragonZX Offline
Moderator
*****
Moderators

Posts: 441
Joined: Aug 2010
Reputation: 5
Post: #4
RE: mod_fcgid: read data timeout in 40 seconds
http://isp-control.net/forum/thread-12866.html
Как бы тут то же самое, но насколько я понимаю, у человека этот фокус не прошел.
07-24-2011 09:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
lisiren Offline
Junior Member
*

Posts: 20
Joined: Dec 2010
Reputation: 0
Post: #5
RE: mod_fcgid: read data timeout in 40 seconds
Вариант обновления дистра к сожалению невозможен пока.

/var/log/apache2/default-error.log

Code:
[Mon Jul 25 10:16:09 2011] [error] [client 65.52.110.87] Premature end of script headers: posting.php
[Mon Jul 25 10:16:17 2011] [notice] mod_fcgid: process 521 going graceful shutdown, sending SIGTERM
[Mon Jul 25 10:17:12 2011] [warn] mod_fcgid: read data timeout in 40 seconds
[Mon Jul 25 10:17:12 2011] [error] [client 66.249.66.4] Premature end of script headers: viewtopic.php
[Mon Jul 25 10:17:14 2011] [notice] mod_fcgid: process 527 going graceful shutdown, sending SIGTERM
[Mon Jul 25 10:17:35 2011] [warn] mod_fcgid: read data timeout in 40 seconds
[Mon Jul 25 10:17:35 2011] [error] [client 193.164.133.50] Premature end of script headers: index.php
[Mon Jul 25 10:17:37 2011] [warn] mod_fcgid: read data timeout in 40 seconds
[Mon Jul 25 10:17:37 2011] [error] [client 83.102.176.141] Premature end of script headers: index.php
[Mon Jul 25 10:17:37 2011] [notice] mod_fcgid: process 820 going graceful shutdown, sending SIGTERM
[Mon Jul 25 10:17:37 2011] [notice] mod_fcgid: process 817 going graceful shutdown, sending SIGTERM
[Mon Jul 25 10:17:40 2011] [warn] mod_fcgid: read data timeout in 40 seconds
[Mon Jul 25 10:17:40 2011] [error] [client 65.52.110.87] Premature end of script headers: posting.php
[Mon Jul 25 10:17:48 2011] [warn] mod_fcgid: read data timeout in 40 seconds
[Mon Jul 25 10:17:48 2011] [error] [client 207.46.195.226] Premature end of script headers: index.php
[Mon Jul 25 10:17:49 2011] [notice] mod_fcgid: process 851 going graceful shutdown, sending SIGTERM
[Mon Jul 25 10:17:49 2011] [notice] mod_fcgid: process 708 going graceful shutdown, sending SIGTERM
[Mon Jul 25 10:18:11 2011] [warn] mod_fcgid: read data timeout in 40 seconds
[Mon Jul 25 10:18:11 2011] [error] [client 207.46.199.51] Premature end of script headers: index.php
[Mon Jul 25 10:18:13 2011] [notice] mod_fcgid: process 857 going graceful shutdown, sending SIGTERM
[Mon Jul 25 10:18:17 2011] [warn] mod_fcgid: read data timeout in 40 seconds
[Mon Jul 25 10:18:17 2011] [error] [client 83.102.176.141] Premature end of script headers: index.php
[Mon Jul 25 10:18:25 2011] [notice] mod_fcgid: process 861 going graceful shutdown, sending SIGTERM
[Mon Jul 25 10:19:28 2011] [warn] mod_fcgid: read data timeout in 40 seconds
[Mon Jul 25 10:19:28 2011] [error] [client 77.88.27.27] Premature end of script headers: search.php
[Mon Jul 25 10:19:32 2011] [warn] mod_fcgid: read data timeout in 40 seconds
[Mon Jul 25 10:19:32 2011] [error] [client 207.46.199.55] Premature end of script headers: index.php
[Mon Jul 25 10:19:34 2011] [notice] mod_fcgid: process 981 going graceful shutdown, sending SIGTERM
[Mon Jul 25 10:19:34 2011] [notice] mod_fcgid: process 962 going graceful shutdown, sending SIGTERM

/etc/apache2/mods-available/fcgid_ispcp.conf

Code:
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 600
  IdleScanInterval 240
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 6
  ZombieScanInterval 3
  ProcessLifeTime 3600
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 200
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 1
  IPCCommTimeout 900
  MaxRequestsPerProcess 500
#MaxRequestLen 140000000
MaxRequestLen 1073741824
TimeOut 360
</IfModule>

/etc/apache2/mods-available/fcgid.conf

Code:
<IfModule mod_fcgid.c>
  AddHandler    fcgid-script .fcgi
  IPCConnectTimeout 900
MaxRequestLen 1073741824
</IfModule>
(This post was last modified: 07-25-2011 04:30 PM by lisiren.)
07-25-2011 04:25 PM
Find all posts by this user Quote this message in a reply
Minganus Offline
Banned

Posts: 38
Joined: Feb 2011
Post: #6
RE: mod_fcgid: read data timeout in 40 seconds
(07-25-2011 04:25 PM)lisiren Wrote:  Вариант обновления дистра к сожалению невозможен пока.

А зачем всего дистра полностью? Самое оно - попробовать обновить только mod_fcgid
07-25-2011 04:41 PM
Find all posts by this user Quote this message in a reply
DragonZX Offline
Moderator
*****
Moderators

Posts: 441
Joined: Aug 2010
Reputation: 5
Post: #7
RE: mod_fcgid: read data timeout in 40 seconds
For PHP/Perl Processes which are long running without any output, we can disable this error by adding new config to the Apache VirtualHost configuration:

Code:
<ifmodule mod_fcgid.c>
      IdleTimeout 3600
      ProcessLifeTime 7200
      MaxProcessCount 1000
      DefaultMinClassProcessCount 3
      DefaultMaxClassProcessCount 100
      IPCConnectTimeout 8
      IPCCommTimeout 360
      BusyTimeout 300
</ifmodule>
А вдруг получится...

Самое интересное что при гугле ошибки, этот топик входит в десятку)


А, и еще... Можно попробовать втупую прописать репозитории от squeeze и обновить компоненты без обновления дистра.

Чистый sources.list звучит как
Code:
#

# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official Multi-architecture amd64/i386 NETINST #1 20110320-15:14]/ squeeze main

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official Multi-architecture amd64/i386 NETINST #1 20110320-15:14]/ squeeze main

deb http://ftp.ru.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.ru.debian.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

# squeeze-updates, previously known as 'volatile'
deb http://ftp.ru.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.ru.debian.org/debian/ squeeze-updates main contrib non-free
(This post was last modified: 07-25-2011 06:19 PM by DragonZX.)
07-25-2011 06:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
lisiren Offline
Junior Member
*

Posts: 20
Joined: Dec 2010
Reputation: 0
Post: #8
RE: mod_fcgid: read data timeout in 40 seconds
(07-25-2011 06:10 PM)DragonZX Wrote:  For PHP/Perl Processes which are long running without any output, we can disable this error by adding new config to the Apache VirtualHost configuration:

Code:
<ifmodule mod_fcgid.c>
      IdleTimeout 3600
      ProcessLifeTime 7200
      MaxProcessCount 1000
      DefaultMinClassProcessCount 3
      DefaultMaxClassProcessCount 100
      IPCConnectTimeout 8
      IPCCommTimeout 360
      BusyTimeout 300
</ifmodule>
А вдруг получится...

Самое интересное что при гугле ошибки, этот топик входит в десятку)


А, и еще... Можно попробовать втупую прописать репозитории от squeeze и обновить компоненты без обновления дистра.

Чистый sources.list звучит как
Code:
#

# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official Multi-architecture amd64/i386 NETINST #1 20110320-15:14]/ squeeze main

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official Multi-architecture amd64/i386 NETINST #1 20110320-15:14]/ squeeze main

deb http://ftp.ru.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.ru.debian.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

# squeeze-updates, previously known as 'volatile'
deb http://ftp.ru.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.ru.debian.org/debian/ squeeze-updates main contrib non-free

В 1 сообщении я писал:
>отдельные настройки для хоста в /etc/apache2/ispcp/ тоже не работают

Там я и прописывал как раз <ifmodule mod_fcgid.c> и тд

По поводу обновления компонентов нужно подумать, сервер рабочий, не хотелось бы сломать что-либо.
Code:
apt-cache depends libapache2-mod-fcgid
libapache2-mod-fcgid
  Depends: libc6
  Depends: apache2.2-common
(This post was last modified: 07-25-2011 06:37 PM by lisiren.)
07-25-2011 06:32 PM
Find all posts by this user Quote this message in a reply
DragonZX Offline
Moderator
*****
Moderators

Posts: 441
Joined: Aug 2010
Reputation: 5
Post: #9
RE: mod_fcgid: read data timeout in 40 seconds
Тут такая ситуация, что вроде у тебя в конфигах все правильно.
При обновлении лично у меня была проблема с 500 ошибкой, но тут все решилось (ссылка выше). В остальном все встало как по маслу. Единственная проблема может возникнуть с PHP 5.3, но относительно современные движки и самописы работают нормально (Joomla 1.0 и с версии 1.5.20, а также последний Drupal, с форумами не замечал). Апач обновляй спокойно.
07-25-2011 11:47 PM
Visit this user's website Find all posts by this user Quote this message in a reply
lisiren Offline
Junior Member
*

Posts: 20
Joined: Dec 2010
Reputation: 0
Post: #10
RE: mod_fcgid: read data timeout in 40 seconds
(07-25-2011 11:47 PM)DragonZX Wrote:  Тут такая ситуация, что вроде у тебя в конфигах все правильно.
При обновлении лично у меня была проблема с 500 ошибкой, но тут все решилось (ссылка выше). В остальном все встало как по маслу. Единственная проблема может возникнуть с PHP 5.3, но относительно современные движки и самописы работают нормально (Joomla 1.0 и с версии 1.5.20, а также последний Drupal, с форумами не замечал). Апач обновляй спокойно.

У меня вот что:
PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 4 2010 06:06:53)
Drupal 6.2.0
(This post was last modified: 07-26-2011 12:01 AM by lisiren.)
07-25-2011 11:58 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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