Current time: 05-04-2024, 03:33 PM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[REOPEN]mod_fcgid: read data timeout
Author Message
Yetie Offline
Newbie
*

Posts: 7
Joined: Jun 2008
Reputation: 0
Post: #1
[REOPEN]mod_fcgid: read data timeout
Hallo zusammen eventuell kann mir jemand einen Tipp bzw eine Lösung geben.

Ich habe ein php script erstellt, welches Videos von einer "bekannten" Plattform herunterläd und anschließend mittels ffmepg umwandelt.

Bei kleineren Videos klappt das ohne Probleme.. nur bei großen erhalte ich den unten stehenden Fehler:

Code:
Wed Nov 04 00:55:19 2009] [warn] mod_fcgid: read data timeout in 40 seconds
[Wed Nov 04 00:55:19 2009] [error] [client xx.xx.xx.xxx] Premature end of script headers: index2.php, referer: http://domain.de/xxxxxx/index2.php

Auszug der Datei: /etc/apache2/mods-enabled/fcgid_ispcp.conf

Code:
#
# ispCP � (OMEGA) a Virtual Hosting Control System
#
# @copyright    2006-2009 by ispCP | http://isp-control.net
# @version              SVN: $Id: fcgid_ispcp.conf 1674 2009-04-20 17:39:53Z malte $
# @link                 http://isp-control.net
# @author               ispCP Team
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​.

<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 7200
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 250
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 0
  IPCConnectTimeout 600
  IPCCommTimeout 7200
  MaxRequestsPerProcess 500
</IfModule>


Die Datei "php.ini" habe ich auch schon angepasst. Jedoch kein Erfolg.

Ich hoffe, es hat jemand einen Tipp für mich! Smile

Gruß
Yetie
(This post was last modified: 11-09-2009 10:57 PM by ZooL.)
11-04-2009 10:21 AM
Find all posts by this user
Yetie Offline
Newbie
*

Posts: 7
Joined: Jun 2008
Reputation: 0
Post: #2
RE: mod_fcgid: read data timeout
So hab den Fehler gefunden!

Damit die Werte von mod_fcgi verändert und aktiviert werden können, muss die folgende Datei:

"/etc/apache2/ispcp/domainname.conf" mit den folgenden Werten befüllt werden.


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 7200
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 250
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 0
  IPCConnectTimeout 600
  IPCCommTimeout 7200
  MaxRequestsPerProcess 500
</IfModule>

Danach natürlich /etc/init.d/apache2 restart durchführen Wink

Thema kann somit geschlossen werden.
11-04-2009 11:25 PM
Find all posts by this user
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #3
RE: mod_fcgid: read data timeout
mach ich doch glatt selbst helfer Wink


REOPEN
(This post was last modified: 11-09-2009 10:56 PM by ZooL.)
11-05-2009 09:04 AM
Visit this user's website Find all posts by this user
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #4
RE: [REOPEN]mod_fcgid: read data timeout
PUSH
11-09-2009 10:58 PM
Visit this user's website Find all posts by this user
Yetie Offline
Newbie
*

Posts: 7
Joined: Jun 2008
Reputation: 0
Post: #5
RE: [REOPEN]mod_fcgid: read data timeout
Sooo, leider habe ich doch keine Lösung.

Der Fehler besteht immer noch!

Mon Nov 09 14:58:48 2009] [warn] mod_fcgid: read data timeout in 40 seconds
[Mon Nov 09 14:58:48 2009] [error] [client xxx.xxx.xxx.xxx Premature end of script headers: index.php, referer: http://domaine.de/blaindex.php
[Mon Nov 09 14:58:48 2009] [notice] mod_fcgid: process 1716 going graceful shutdown, sending SIGTERM

Hat eventuell jemand eine Lösung?

Die Suche mit grep -r "IPCConnectTimeout" /etc/ ergab:

/etc/apache2/ispcp/g0ne.de.conf: IPCConnectTimeout 600
/etc/apache2/mods-enabled/fcgid_ispcp.conf: IPCConnectTimeout 600
/etc/apache2/mods-available/fcgid.conf: IPCConnectTimeout 600
/etc/apache2/mods-available/fcgid_ispcp.conf: IPCConnectTimeout 600
/etc/ispcp/apache/backup/fcgid_ispcp.conf.ispcp: IPCConnectTimeout 20
/etc/ispcp/apache/working/fcgid_ispcp.conf: IPCConnectTimeout 600


Alle Werte nun auf 600 ausser das Backup-File.

Welche Werte müssen noch geändert werden? Ich bitte um Hilfe.

Ich bin echt ratlos Sad
11-10-2009 12:06 AM
Find all posts by this user
Nuxwin
Unregistered

 
Post: #6
RE: [REOPEN]mod_fcgid: read data timeout
Hello ;

Just for the issue, you've seen it? --> http://httpd.apache.org/docs/1.3/misc/FA...pt-headers
11-20-2009 08:03 PM
Thread Closed 


Forum Jump:


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