You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Zulip in docker setup using the docker compose file from this repository (with environment variables changed to what I need) and I run it behind a reverse proxy. That requires some configuration of Zulip, as stated in the so far excellent docs 👍 .
However, it seems I made some mistake configuring the IP address of the reverse proxy. The error log at /var/log/zulip/errors.log says:
I am not sure yet why it is wrong, but that is not the point of this issue. The point of this issue is, that this error is not visible in docker logs zulip, which is quite confusing. The UI shows:
Internal server error
Your Zulip chat cannot be loaded because the server is experiencing technical difficulties.
[...]
But one does not see any error in docker logs. That is quite counter common practices. I concluded, that maybe Zulip does not log to stdout and searched for "logging" in the docs. The docs are great and I found what I needed to know: https://zulip.readthedocs.io/en/9.0/subsystems/logging.html#backend-logging. There is lists the file that Zulip logged the error to.
I propose an improvement: Make the logging target an environment variable with a default, that is the file shown in the docs. Then in the zulip-docker setup set this environment variable to stdout.
The text was updated successfully, but these errors were encountered:
timabbott
changed the title
Error logging not visible on stdout
Make /var/log/zulip/errors.log also available in docker logs zulipSep 26, 2024
Thanks for the report, I've edited the title to make the feature request more clear without reading the whole description. I'm not sure what's best practice here.
In large infrastructures, there are often mechanisms that automatically collect Docker logs, so they need to be written not to files inside the container, but to stdout (or at least make such a setting)
I have a Zulip in docker setup using the docker compose file from this repository (with environment variables changed to what I need) and I run it behind a reverse proxy. That requires some configuration of Zulip, as stated in the so far excellent docs 👍 .
However, it seems I made some mistake configuring the IP address of the reverse proxy. The error log at
/var/log/zulip/errors.log
says:I am not sure yet why it is wrong, but that is not the point of this issue. The point of this issue is, that this error is not visible in
docker logs zulip
, which is quite confusing. The UI shows:But one does not see any error in docker logs. That is quite counter common practices. I concluded, that maybe Zulip does not log to stdout and searched for "logging" in the docs. The docs are great and I found what I needed to know: https://zulip.readthedocs.io/en/9.0/subsystems/logging.html#backend-logging. There is lists the file that Zulip logged the error to.
I propose an improvement: Make the logging target an environment variable with a default, that is the file shown in the docs. Then in the zulip-docker setup set this environment variable to stdout.
The text was updated successfully, but these errors were encountered: