php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60199 enhance FPM error log when the primary script can't be open
Submitted: 2011-11-02 08:56 UTC Modified: 2011-11-15 22:30 UTC
From: julien at palard dot fr Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: Irrelevant OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: julien at palard dot fr
New email:
PHP Version: OS:

 

 [2011-11-02 08:56 UTC] julien at palard dot fr
Description:
------------
When php-fpm hits a "too many open files", it returns a 404 and don't log anything, so typically for people using nginx they got a "No input file specified." that is hard to debug.

I dropped an strace here :
http://pastebin.com/PVCqF9cD

I think that php-fpm should log something to let people diagnose why they open so much file and/or modify their rlimit.



Patches

fpm-bug60199.patch (last revision 2011-11-02 13:39 UTC by fat@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-02 13:38 UTC] fat@php.net
-Assigned To: +Assigned To: fat
 [2011-11-02 13:39 UTC] fat@php.net
The following patch has been added/updated:

Patch Name: fpm-bug60199.patch
Revision:   1320241144
URL:        https://bugs.php.net/patch-display.php?bug=60199&patch=fpm-bug60199.patch&revision=1320241144
 [2011-11-02 13:40 UTC] fat@php.net
-Status: Assigned +Status: Feedback
 [2011-11-02 13:40 UTC] fat@php.net
Can you please test the attached patch and confirm it fixes your problem.

Then reopen the bug.

++ Jerome
 [2011-11-15 22:29 UTC] fat@php.net
Automatic comment from SVN on behalf of fat
Revision: http://svn.php.net/viewvc/?view=revision&revision=319281
Log: - FR #60199 (enhance FPM error log when the primary script can't be open)
 [2011-11-15 22:30 UTC] fat@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2011-11-15 22:30 UTC] fat@php.net
-Summary: php-fpm does not log an error for "too many open files" +Summary: enhance FPM error log when the primary script can't be open -Status: Feedback +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC