Bubble Posted July 31, 2010 Share Posted July 31, 2010 Hallo, ich hab festgestellt, das in unregelm?ssigen Abst?nden der Apache nicht mehr startet, nach dem der CronJob gelaufen ist. Wenn ich den Apache dann von Hand nochmal starte geht alles wieder. Ich finde das seltsam. Die Log-Datei unter /var/run/ ist auch weg, was ja wohl hei?t das der Cronjob soweit komplett durchgelaufen ist. Wenn Logs ben?tigt werden kann ich diese gerne noch nachreichen. Vielleicht kann einer das Problem reproduzieren oder hat zumindest eine Idee f?r eine L?sung. Gruss cardman Link to comment Share on other sites More sharing options...
Bubble Posted August 4, 2010 Author Share Posted August 4, 2010 So, ich glaube ich hab das Problem gefunden. ?ber ulimit -a gibt er bei open Files 1024 aus. Und darin scheint das Problem zu liegen. Da er mehr Dateien ?ffnen will aber nicht darf. Danke f?r deine Hilfe d00p. Gruss cardman Link to comment Share on other sites More sharing options...
d00p Posted August 1, 2010 Share Posted August 1, 2010 - Welche Distribution? - Was sagt die apache-errorlog - Was sagt die systemlog? Link to comment Share on other sites More sharing options...
Bubble Posted August 1, 2010 Author Share Posted August 1, 2010 Hallo, Distribution: Linux: Debian Lenny PHP: PHP 5.2.6-1+lenny8 with Suhosin-Patch 0.9.6.2 MySQL: mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (x86_64) using readline 5.2 Apache Error-Log System-Log Das sind jeweils die letzten 30 Minuten etwa, ich hoffe das reicht. Ansonsten kann ich auch noch mehr posten. Danke schonmal f?r die Hilfe. Gruss cardman Link to comment Share on other sites More sharing options...
Bubble Posted August 1, 2010 Author Share Posted August 1, 2010 Hallo, ich hatte gerade um 14:00 uhr nochmal ein Ausfall gehabt. Hier mal der Error-Log von dieser Zeit: Vielleicht bringt das was bei der Fehler suche. Gruss cardman Link to comment Share on other sites More sharing options...
d00p Posted August 1, 2010 Share Posted August 1, 2010 notices sind nicht relevant, allerdings hast du in der anderen log viele SIGTERMs und Fehler beim Aufrufen des FCGID-prozesses....vllt stimmt da was mit php nicht bei dir? Link to comment Share on other sites More sharing options...
Bubble Posted August 1, 2010 Author Share Posted August 1, 2010 Hier mal die fcgid.conf: <IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi # IPCConnectTimeout 20 IPCConnectTimeout 900 IdleTimeout 600 IdleScanInterval 120 ProcessLifeTime 900 MaxProcessCount 200 DefaultMinClassProcessCount 1 DefaultMaxClassProcessCount 10 IPCCommTimeout 900 BusyTimeout 300 BusyScanInterval 320 ErrorScanInterval 3 MaxRequestsPerProcess 500 ZombieScanInterval 3 </IfModule> Dann noch eine php-fcgi-starter: #!/bin/sh # # starter created/changed on 2010.08.01 13:35:04 for domain 'xxx.de' with id #23 from php template 'Default Config' with id #1 # Do not change anything in this file, it will be overwritten by the Froxlor Cronjob! # PHPRC='/var/www/php-fcgi-scripts/xxx/xxx.de/' export PHPRC PHP_FCGI_CHILDREN=0 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=250 export PHP_FCGI_MAX_REQUESTS exec /usr/bin/php-cgi -c '/var/www/php-fcgi-scripts/xxx/xxx.de/' und zum Schluss noch eine php.ini ; ; php.ini created/changed on 2010.08.01 13:35:04 for domain 'xxx.de' with id #23 from php template 'Default Config' with id #1 ; Do not change anything in this file, it will be overwritten by the Froxlor Cronjob! ; short_open_tag = On asp_tags = Off precision = 14 output_buffering = 4096 allow_call_time_pass_reference = On safe_mode = Off safe_mode_gid = Off safe_mode_include_dir = "/usr/share/php/:/usr/share/php5/" safe_mode_allowed_env_vars = PHP_ safe_mode_protected_env_vars = LD_LIBRARY_PATH ;open_basedir = none disable_functions = exec,passthru,shell_exec,system,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate disable_classes = expose_php = Off max_execution_time = 30 max_input_time = 60 memory_limit = 64M post_max_size = 64M error_reporting = E_ALL & ~E_NOTICE display_errors = On display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On track_errors = Off html_errors = Off variables_order = "GPCS" register_globals = Off register_argc_argv = Off gpc_order = "GPC" magic_quotes_gpc = Off magic_quotes_runtime = Off magic_quotes_sybase = Off include_path = ".:/usr/share/php/:/usr/share/php5/" enable_dl = Off file_uploads = On upload_tmp_dir = "/var/kunden/tmp/xxx/" upload_max_filesize = 64M allow_url_fopen = On sendmail_path = "/usr/sbin/sendmail -t -f postmaster@xxx.eu" session.save_handler = files session.save_path = "/var/kunden/tmp/xxx/" session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability = 1 session.gc_divisor = 1000 session.gc_maxlifetime = 14400 session.bug_compat_42 = 0 session.bug_compat_warn = 1 session.referer_check = session.entropy_length = 16 session.entropy_file = /dev/urandom session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 0 suhosin.simulation = Off suhosin.mail.protect = 1 ; Defines the default timezone used by the date functions date.timezone = "Europe/Berlin" [Zend] zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3 ;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3 ;zend_optimizer.version=3.3.3 ;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so ;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so zend_optimizer.optimization_level=15 zend_extension="/usr/local/Zend/ZendOptimizer.so" [eAccelerator] extension="eaccelerator.so" eaccelerator.shm_size="16" eaccelerator.cache_dir="/var/kunden/tmp/xxx/" eaccelerator.enable="1" eaccelerator.optimizer="1" eaccelerator.check_mtime="1" eaccelerator.debug="0" eaccelerator.filter=" eaccelerator.shm_max="0" eaccelerator.shm_ttl="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_only="0" eaccelerator.compress="1" eaccelerator.compress_level="9" Siehst du da einen Fehler drin, bzw eine bessere Einstellm?glichkeit. Gruss cardman Link to comment Share on other sites More sharing options...
Bubble Posted August 1, 2010 Author Share Posted August 1, 2010 Hallo, ich hab mal weiter gesucht und festgestellt das bei: ps -Af | grep cgi | wc -l nur 35 Prozesse laufen. Ich hab aber alleine fast 150 Accounts laufen. Da passt was nicht. Ich wei? aber nicht wie ich mehr Prozesse ans laufen bekomme. Gruss cardman Link to comment Share on other sites More sharing options...
d00p Posted August 2, 2010 Share Posted August 2, 2010 Ruf mal alle Kunden-Domains im Browser auf, dann hast du auch alle php-cgi-Prozesse (Der php-fcgi-starter wird erst beim ersten Request aufgerufen) Link to comment Share on other sites More sharing options...
Bubble Posted August 2, 2010 Author Share Posted August 2, 2010 Ich hab nicht alle Domains augerufen aber einige und was mir dabei auffiel ist, jenachdem welchen Rechner ich benutze kann es sein das eine Domain auf dem einen Rechner geht und auf dem anderen nicht. Das sieht dann so aus, als sei die maximale Anzahl an Zugriffen f?r diese Domain erreicht. Link to comment Share on other sites More sharing options...
d00p Posted August 2, 2010 Share Posted August 2, 2010 es gibt sowas wie "maximale anzahl zugriffe f?r domain" nicht, und wenn die auf einem rechnet geht und auf einem anderen nicht, dann stimmt wohl eher was mit dem DNS nicht Link to comment Share on other sites More sharing options...
Bubble Posted August 2, 2010 Author Share Posted August 2, 2010 Beide Rechner, von denen ich aus getestet haben h?ngen am gleichen DSL-Anschluss und generell gehen sie auf beiden Rechnern. Nur eben manchmal nicht. Als meldung kommt ein 503. Kann Apache eventuell die Zugriffe limitieren? Link to comment Share on other sites More sharing options...
d00p Posted August 2, 2010 Share Posted August 2, 2010 schau doch mal in die error_log, die sagt dir doch was los ist, deine fcgi-prozesse sterben alle, da stimmt bei dir was nicht (eventuell rechte, o.?.). Poste bitte mal ein ls -la /var/www/php-fcgi-scripts/SaarServer/saarserver.de/ Link to comment Share on other sites More sharing options...
Bubble Posted August 2, 2010 Author Share Posted August 2, 2010 Hier das Ergebnis von ls -la /var/www/php-fcgi-scripts/: drwxr-xr-x 2 4,0K 30. Mär 22:40 . drwxr-xr-x 30 root root 4,0K 3. Jul 19:00 .. -rwxr-x--- 1 499 2. Aug 07:07 php-fcgi-starter -rw-r--r-- 1 root root 3,0K 2. Aug 07:07 php.ini Da wurde aber nichts dran ver?ndert, das wurde so von Froxlor erstellt. Link to comment Share on other sites More sharing options...
d00p Posted August 2, 2010 Share Posted August 2, 2010 M?sst ich mir mal anschauen, mir gehen so die ideen aus, kannst dich gerne per PM bei mir melden Link to comment Share on other sites More sharing options...
Bubble Posted August 2, 2010 Author Share Posted August 2, 2010 Sind die Berechtigungen den Richtig? Link to comment Share on other sites More sharing options...
d00p Posted August 2, 2010 Share Posted August 2, 2010 ja Link to comment Share on other sites More sharing options...
Bubble Posted August 2, 2010 Author Share Posted August 2, 2010 K?nnte es noch an der php-fcgi-starter liegen? Da hatte ich die die Childrens und die Max requests angepasst gehabt und zu testen, ob es daran liegt. export PHPRCPHP_FCGI_CHILDREN=3 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=2500 export PHP_FCGI_MAX_REQUESTS Link to comment Share on other sites More sharing options...
d00p Posted August 2, 2010 Share Posted August 2, 2010 setz PHP_FCGI_CHILDREN mal auf 0 (automatisch) Link to comment Share on other sites More sharing options...
Bubble Posted August 2, 2010 Author Share Posted August 2, 2010 Okay, hab ich gemacht. Ich teste dann mal aus, ob es jetzt besser ist Link to comment Share on other sites More sharing options...
Bubble Posted August 2, 2010 Author Share Posted August 2, 2010 Ich hab gerade nochmal in die error.log vom Apache reingeschaut und interessante Fehler gefunden: [Mon Aug 02 11:31:09 2010] [error] (24)Too many open files: mod_fcgid: couldn't set child process attributes: /var/lib/apache2/fcgid/sock/5169.87976 [Mon Aug 02 11:31:09 2010] [warn] (24)Too many open files: mod_fcgid: spawn process /var/www/kunden/xxx/webseiten/_cron/cronjob.php error Und mit den beiden Meldungen ist die Log-Datei voll Link to comment Share on other sites More sharing options...
Bubble Posted August 2, 2010 Author Share Posted August 2, 2010 Hier noch die Berechtigungen de Sock-Ordners und den Dateien dadrin: drwxr-xr-x 2 www-data www-data 52K 2. Aug 11:40 sock srwx------ 1 www-data www-data 0 26. Jul 13:51 9950.19 Damit l?sst sich wahrscheinlich ehr was sagen Link to comment Share on other sites More sharing options...
d00p Posted August 2, 2010 Share Posted August 2, 2010 dann w?rde ich den kundan "xxx" mal anhalten seine scripts zu ?berpr?fen Link to comment Share on other sites More sharing options...
Bubble Posted August 2, 2010 Author Share Posted August 2, 2010 es ist ja nicht nur 1 Kunde, es sind fast alle Kunden. Und die k?nnen ja nicht alle das gleiche Problem haben Link to comment Share on other sites More sharing options...
d00p Posted August 2, 2010 Share Posted August 2, 2010 naja, "too many open files"...sagt doch alles...irgendwas is da komisch bei dir, vorallem versteh ich auch nicht was du mit sockets zu tun hast, das normale Froxlor-FCGID ruft lediglich einen FCGIDWrapper auf... Link to comment Share on other sites More sharing options...
Question
Bubble
Hallo,
ich hab festgestellt, das in unregelm?ssigen Abst?nden der Apache nicht mehr startet, nach dem der CronJob gelaufen ist.
Wenn ich den Apache dann von Hand nochmal starte geht alles wieder.
Ich finde das seltsam.
Die Log-Datei unter /var/run/ ist auch weg, was ja wohl hei?t das der Cronjob soweit komplett durchgelaufen ist.
Wenn Logs ben?tigt werden kann ich diese gerne noch nachreichen.
Vielleicht kann einer das Problem reproduzieren oder hat zumindest eine Idee f?r eine L?sung.
Gruss
cardman
Link to comment
Share on other sites
24 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.