Bug #73886 [NEW]: Handle access log & error log on Docker
| From: | tchiot dot ludo at gmail dot com | Date: | Sat, 07 Jan 2017 08:23:51 +0000 |
| Subject: | Bug #73886 [NEW]: Handle access log & error log on Docker | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-206346@lists.php.net to get a copy of this message | ||
From: tchiot dot ludo at gmail dot com
Operating system: Docker
PHP version: 7.1.0
Package: FPM related
Bug Type: Bug
Bug description:Handle access log & error log on Docker
Description:
------------
On Dockerfile, the official distribution of php have this configuration
:
[global]
error_log = /proc/self/fd/2
; if we send this to /proc/self/fd/1, it never appears
access.log = /proc/self/fd/2
seems related to this configuration :
catch_workers_output boolean
Redirect worker stdout and stderr into main error log. If not set,
stdout and stderr will be redirected to /dev/null according to FastCGI
specs. Default value: no.
With this configuration, we can't really parse log file (or monitor log)
because access log & php fpm stdout & error log in not separated.
see dockerfile maintainer response :
https://github.com/docker-library/php/issues/358#issuecomment-271033464
So there is 2 issues here :
- access log won't write to docker special files : /dev/stdout
- fpm main log with catch_workers_output = yes output stdout & stderr on
the same log file, maybe we need a new configuration options in order to
have workers output error to stderr & fpm master process std*** to
std***
--
Edit bug report at https://bugs.php.net/bug.php?id=73886&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73886&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73886&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73886&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73886&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73886&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73886&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73886&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73886&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73886&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73886&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73886&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73886&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73886&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73886&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73886&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73886&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73886&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73886&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73886&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73886&r=mysqlcfg