Edit report at https://bugs.php.net/bug.php?id=65584&edit=1
ID: 65584
Comment by: vlad dot rusu at gmail dot com
Reported by: michael dot heuberger at binarykitchen dot com
Summary: recv() failed (104: Connection reset by peer) while
reading response ...
Status: Open
Type: Bug
Package: FPM related
Operating System: Ubuntu 13.04
PHP Version: 5.5.3
Block user comment: N
Private report: N
New Comment:
I am experience the same problems on Ubuntu Server 12.04 / NGINX 1.4.7 & PHP 5.5.10 FPM
(installed from ppa:ondrej/php5).
More specifically, I have two BIG problems, which made me revert to using PHP 5.4 (which works ok,
btw):
1. A LOT of "recv() failed (104: Connection reset by peer)" in NGINX's error.log
This is when using 127.0.0.1:9000 to listen. If I use sockets, I receive also connect() failed
erros.
2. No matter what options tried, PHP-FPM does not log errors.
All that is logs is "NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is
successful" lines.
This is in spite having error_log = /var/log/php-fpm/fpm.log, log_level = notice, and
catch_workers_output = yes !!
(Opcache disabled/enabled... no difference).
I tried all the possible settings but to no avail.
Reverting to PHP 5.4.26 fixes this issues.
Previous Comments:
------------------------------------------------------------------------
[2013-12-19 12:04:26] hornung dot frank at gmail dot com
This problem only occours with sockets. If i etablish the connection over a network port is all ok.
------------------------------------------------------------------------
[2013-12-19 10:56:04] hornung dot frank at gmail dot com
OS: Debian GNU/Linux 7 \n \l
PHP Version: 5.5.7 (git tag)
Lua Version 5.2.3
Lua extension: 1.1.1-dev
Core File is not possible.
This Bug occurs with Lua::registerCallback(). It's not necessary to call the callback from Lua.
On CLI seems to be all fine.
------------------------------------------------------------------------
[2013-08-30 05:30:31] michael dot heuberger at binarykitchen dot com
I also found out, that when I comment out logic around $_COOKIE (auto-login feature), then my site
is back up working.
Does PHP 5.5.3 have issues with $_COOKIE?
------------------------------------------------------------------------
[2013-08-30 05:12:09] michael dot heuberger at binarykitchen dot com
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?
------------------------------------------------------------------------
[2013-08-30 04:31:59] michael dot heuberger at binarykitchen dot com
Happy to give your snapshots a try but do not how to install these. I installed PHP-FPM via apt-get.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=65584
--
Edit this bug report at https://bugs.php.net/bug.php?id=65584&edit=1