-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Supervisor 3.3.1: CRIT uncaptured python exception, closing channel #935
Comments
From further studying the documentation, I found that there is |
The log message above shows that an illegal seek error occurred during log rotation. Your config file is this:
That config uses log rotation (it's on by default), but you've specified a log file that is not seekable:
If you really want to use stdout, it may work, but minimally you'll need to disable log rotation (set
There is no |
A late thanks to @mnaberez! If anyone stumbles upon this error like me, be aware that the mentioned options apply to the |
Supervisord is set up to rotate log files. It rotates them when the file reaches 50000000 bytes. As the log file it's looking at is now /dev/stdout this is an issue. Everytime a log line is written to the log file (stdout) supervisord attempts to seek the file. Which is an illegal operation on /dev/stdout. This causes a stack trace to be output after every log line. See here for more info: Supervisor/supervisor#935 By setting the logfile maxbytes to 0, we turn off log rotation which resolves the issue.
References Supervisor#935 References Supervisor#1224 (cherry picked from commit 1472388)
I did something like this: stdout_logfile=/dev/stdout |
We're still experiencing the problem that supervisor logs a CRIT uncaptured on every log message produced when directing logs to /dev/stdout, similar to this:
This looks similar to #638, but is still present with 3.3.1 and has a different stack trace.
I have created a minimal Dockerfile that will reproducably cause the problem on my side: https://gist.github.com/madmuffin1/33408001a402c2fd98bc0b227185b363
If you need any more details, let me know, I am happy to help.
The text was updated successfully, but these errors were encountered: