-
Notifications
You must be signed in to change notification settings - Fork 348
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
FPM worker output not going to logs #202
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/141848233 The labels on this github issue will be updated when the story is started. |
+1. We're currently as well fully replacing the php-fpm.conf just to set this one value as it's required by many Cloud Foundry PaaS to fully support the built-in logging. Would be great to set it by default or make it configurable! |
+1. Same here: fully replacing php-fpm.conf just to set |
@sclevine - This is your call. It has come up before. Info about the property, which does have trade-offs (i.e. can affect peformance, not inline with FastCGI spec).
If we don't want to change the default, we should definitely add an easy way to set the value of this property without needing to override the whole file. I don't think it would be too hard to control that via env variable. @lbayerl & @dwytrykus - If we're unable to change the default, would being able to set the env variable |
@dmikusa-pivotal Yes, absolutely fine if I can set it via env variable. |
Same for us, an env var would be grand. |
great! |
Story to add the env var suggested by Dan: https://www.pivotaltracker.com/story/show/141880113 |
@lbayerl - @beequeue - @dwytrykus: Could you try this branch? https://github.com/dmikusa-pivotal/php-buildpack/tree/catch_workers_output It should let you turn this feature on via Ex:
Is that OK? Turns out that could be done with a config only change. If this is OK, I can submit a PR. Thanks, Dan |
@dmikusa-pivotal That looks great, I'm happy to merge either the branch or PR when you are ready |
@dmikusa-pivotal That looks great. Have tested with our setup and I'm seeing logs 👍 |
@dmikusa-pivotal thanks for your efforts. unfortunately my test failed.
results in no logging. Did I do anything wrong how to test it? Thanks , |
Hi @lbayerl, It appears that you aren't using the Try this in your manifest.yml:
|
Sorry to chase but any idea when this might land in a release? |
Hi @beequeue, We're going to implement this more generally than the solution on @dmikusa-pivotal's branch. Follow https://www.pivotaltracker.com/story/show/141979329 for details. |
Agreed, thanks! |
Thank you to all those who worked on this, it's a great help to us 👍 |
With reference to #103, we've recently encountered the same issue and are considering using a forked buildpack to accomplish app log capture across our PHP CF deployments, which isn't ideal from a maintenance point of view.
Given that logging to stdout is fairly idiomatic when dealing with cloud environments (e.g. https://12factor.net/logs), is there any appetite to default the
catch_workers_output
php-fpm.conf setting to yes?Alternatively, could some configuration be introduced to specifically target this setting which would mitigate the need to fully replace the php-fpm.conf file?
Steps to reproduce are the same as per #103.
What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running
cf curl /v2/info && cf version
?What version of the buildpack you are using?
4.3.15
If you were attempting to accomplish a task, what was it you were attempting to do?
View application logs as output by the app to stdout
What did you expect to happen?
Application logs to appear in aggregated logging
What was the actual behavior?
Application logs are not captured
Please confirm where necessary:
The text was updated successfully, but these errors were encountered: