13

I run a PHP 5.5/5.6 instance over php-fpm without any problems (unix sockets and nginx).

Today I compiled PHP 7 and also started it as a third PHP instance. While requests get served fine with the PHP 5.5/5.6 instances for the PHP 7 instance I get:

WARNING: pid 2582, fpm_request_check_timed_out(), line 277: [pool www0] child 2813, script '' (request: " ") execution timed out (120.018160 sec), terminating

in my php-fpm log file and

[error] 1889#0: *4 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.20, server: localhost, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php70-fpm.sock:", host: "xxx.xxx.xxx.21"

in my nginx error log file.

I use fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name which also works for the PHP 5.6 instance. Although the script filename for PHP 7 seems to be empty. I'm requesting a script /info.php.

Is there any difference between using PHP 5.x and 7.0 with php-fpm?


UPDATE

At least I'm not the only one who is facing those problems as it seems. I opened a bug report here: https://bugs.php.net/bug.php?id=69850

There is also a very similar (probably identical) bug already reported over here: https://bugs.php.net/bug.php?id=69875 (thx to @crypticツ)

UPDATE 2

Try the newest alpha2. The bug is fixed there. Unix sockets work now like a charm again.

16
  • 6
    Downvote? For what reason? Commented Jun 15, 2015 at 11:52
  • 1
    I'm getting the same/similar issue. Mine could be related to this: bugs.php.net/bug.php?id=69875 Are you also getting the other errors? Commented Jun 20, 2015 at 5:25
  • 1
    @crypticツ yep that looks exactly like my log. Commented Jun 20, 2015 at 7:16
  • 1
    @Rob_vH as mentioned already in my initial post I have opened a bug report at php.net. You're right about that and so I linked the bug report in my question but I let the question open because as you see there seem to be some people who end up here with the very same problem. Commented Jun 23, 2015 at 15:09
  • 1
    Via: bugs.php.net/bug.php?id=69850 it's been confirmed by a PHP dev that UDS (Unix Domain Sockets) is broken in PHP7. So now we just wait for it to be fixed in next tagged release. This question can be closed or deleted after that since it would no longer be effecting people who get the latest test release. Commented Jun 23, 2015 at 16:56

1 Answer 1

3
+50

I am not sure if this can be considered as answer, but at this moment, when I am writing this answer, the bug you have raised has been deemed confirmed by the PHP Team:

[2015-06-23 12:47 UTC] [email protected]
I confirm
PHP 5.6.10 works
PHP 7.0.0-dev (Jun 17 2015)
- network socket: OK.
- UDS: broken

Update: I just saw that you are aware of the same too!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.