-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php:8.2-fpm (bullseye) docker (swarm) no log #1411
Comments
Having the same issue. Haven't found a solution atm. |
I'm also having this issue, with the 8.2-fpm-alpine3.18 images. |
I think it's normal that only |
Maybe this part of the Dockerfile is relevant: https://github.com/docker-library/php/blob/master/8.3/bookworm/fpm/Dockerfile#L271-L272 |
For anyone who wants to log to kubernetes stdout: As stupid as it may look putting the
EDIT: As suggested by @yosifkit not recommended
Sry, but found this issue when searching for that problem... |
CMD ["/bin/bash", "-c", "tail -f /var/logs/some/error.log & php-fpm"] I would strongly suggest caution before using this. This leaves |
@yosifkit Hey, thanks for your feedback, just a few questions regarding that... So, Just tested this using the image with Do you know any other problems that might occur using that workaround in kubernetes? |
I found another working solution:
@yosifkit Do you see any issues with that? |
Try catch_workers_output = yes in php-fpm.d/domain.conf php.ini not work any more Try it with [www] -> /usr/local/etc/php-fpm.d/www.conf |
hi, after some time i am convinced that there is a bug in php:8.2-fpm image or in connection with docker swarm or in docker?
When using the php:8.2-fpm image, this repo writes a docker config which redirects the access and error log to the proc self fd 2. Unfortunately all logs that should end up in the docker logs are lost.
Environment
further information
Inside docker container:
I'm not the only one with this behavior, for example: #878 (comment)
The text was updated successfully, but these errors were encountered: