-
Notifications
You must be signed in to change notification settings - Fork 548
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
no Phusion Passenger(R) log file configured, discarding log output #2541
Comments
You cannot use modules compiled for one nginx version with another nginx version. Our nginx module package is compiled for the distro nginx not the one provided by f5. If you want to use an nginx other than the distro provided package, you need to compile the passenger module yourself. there are instructions here: https://www.phusionpassenger.com/docs/advanced_guides/install_and_upgrade/nginx/install_as_nginx_module.html As for the log output, by default logs are added to the nginx error log, which you can tail to stdout with a simple script like our docker images do. I'm not actually sure where the error you see is coming from. |
Okay, the error is written over here
Yes i do the same from the dockerfile though its not sending any logs here and the /dev/stdout and /dev/stderr are empty when i do tail of them
Is passenger version >= 6.0.18 is not compiled with nginx 1.24.0 version? as i can see in changelog it is suggested that we need to upgrade to 1.24.0 from 1.22.1 version. and is there anything changed for the latest version of passenger for the logs config?. Per doc the log would written to |
Passenger standalone (ie running That no logs are currently being forwarded makes no sense because nginx itself should be producing some logs at least. I'd recommend getting nginx configured to log how you like first, then try turning passenger back on. |
Hi @CamJN, I've tried with debian 11 (bullseye) docker image and latest passenger version 6.0.20 and by default nginx version installed in here is 1.18.0 and its showing logs when i do It is only giving issue with debian 12(bookworm) with passenger version 6.0.20 and nginx version 1.22.1 is not working. Is there any idea why it is failing?. seems it might be due to nginx but i am following the passenger doc to install same on ruby image 3.3.1-slim. Would you please suggest here? |
I would recommend getting it working without passenger, then turn passenger on. |
@CamJN what is it you're suggesting should be working without passenger? We're seeing this same behavior with It seems that this scenario is arising when nothing is being set for passenger/src/nginx_module/ngx_http_passenger_module.c Lines 397 to 410 in 58592fd
One potentially relevant change between Nginx 1.18 (the version in |
I'm also seeing this alert while trying to update the passenger docker container to base it on Ubuntu Noble, which uses Nginx 1.24. Was just starting to try to track it down. This still uses the log forwarder.
|
@md5 I was suggesting that hariapollo get nginx log forwarding to stdout to work and then worrying about Passenger if it doesn't write into the nginx logs. They previously indicated that their nginx logs weren't being written to stdout, so that's the first thing they should fix. |
Thanks @CamJN. In our case, we are definitely seeing the Nginx access logging to stdout (via the |
The strange thing is, it doesn't reproduce for me, I can create a new noble or bookworm vm, and install passenger + nginx and when I start nginx the passenger logs are written to nginx's error log. |
I was able to get rid of this error by configuring the I didn't dig into why this behavior would have changed on either the Nginx or the Passenger side since we're only configuring a single |
error_log appears to have always been declared at the root scope in Nginx's default config (at least back to 1.18). Ubuntu has moved the declaration to the root scope in their default config for Nginx 1.24 (included in Noble). Moving it to the root scope does appear to resolve the error in a Noble container and results in passenger errors being written correctly. |
Update changelog regarding available python versions Reflect Redis upgrade Allow setting http_proxy via EXTRA_BUILD_ARGS to cache apt packages during image build. Move error_log definition to root scope, refs: phusion/passenger#2541 Explicitly install ncurses for CRuby<3.3 Only create instance dir if not already present Make Python 3.12 the default python version
We are encountering the issue with log output to the container for passenger. This is the logs which shows when we do kubectl logs -f pod
[alert] 7#7: no Phusion Passenger(R) log file configured, discarding log output
Installed packages:
passenger verison: 6.0.20
nginx - 1.22.1
Os version - debian 12 (bookworm)
Installation details - https://www.phusionpassenger.com/docs/advanced_guides/install_and_upgrade/standalone/install/oss/bookworm.html
We've also tried to move nginx 1.22.1 from 1.24.0 as suggested by the passenger changelog though its giving trouble with package dependency.
We tried to install passenger and nginx using below.
Installation error:
The text was updated successfully, but these errors were encountered: