|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-08-29 13:43 UTC] michael dot heuberger at binarykitchen dot com
Description: ------------ Hi there I recently apt-get upgraded my PHP disto on my server, adjusted, tested few lines of the current website but there is one last problem: PHP-FPM crashes always. With these log lines in NGINX: 2013/08/30 01:34:06 [error] 12282#0: *51 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 78.10.247.202, server: binarykitchen.com, request: "GET /user/register/action/why/language/de/ HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.binarykitchen.com", referrer: "http://www.binarykitchen.com/user/register/action/why/language/de/" There are many of those. Sometimes the page loads, sometimes not. I tried hard to adjust nginx and php-fpm but no success. I am using sockets. Tell me, how can I see what is exactly resetting the connection? Why it is crashing? What commands should I try? And here more details: $ php -v PHP 5.5.3-1+debphp.org~raring+2 (cli) (built: Aug 27 2013 09:16:12) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies Thanks for your help, Michael PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 11:00:01 2025 UTC |
I managed to get more logging information. In the log I see this fatal error: [30-Aug-2013 17:05:50 Pacific/Auckland] PHP Fatal error: Cannot redeclare class SGL_Request in /opt/bk/lib/SGL/Request.php on line 53 But in my spl_autoload_register function I already test with this to make sure classes won't be redeclared: public static function isLoaded($name) { return class_exists($name, false) || interface_exists($name, false); } But when, why doesn't it work?I have found the specific line in Varien_Io_File. Sometimes it will crash, sometimes it wont on chdir. The value of $this->_iwd is a valid path - : /var/www/vhosts/magento-capistrano-dev/releases/20140408102656 Code below: public function cd($dir) { if( is_dir($dir) ) { @chdir($this->_iwd); $this->_cwd = realpath($dir); return true; } else { throw new Exception('Unable to list current working directory.'); return false; } }