-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Cannot run supervisorctl tail -f #1231
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
Comments
Some more information may be needed to help diagnose the problem. With the current repository version of supervisor and Python 2.7.12 (happens to be what's installed on my system), with this conf:
and this script
I'm able to run
So it may not be a simple failure to handle an ellipsis or other Unicode character. I get the same result with Supervisor 4.0.2 from PyPI. So, your help is needed in getting to a minimal configuration/script which allows us to reproduce the problem. |
I found a way to duplicate this on master (6bd04b6) using @vsajip's Python 2.7.15
|
The problem is that you can't just output Unicode to any old terminal encoding. I have "overcome" the problem on Python 2.x, but failures can still occur on Python 3.x in some scenarios. The following script:
Shows the following for various versions on Python on my system: $ .tox/py27/bin/python ../scratch/soencoding.py So, my "fix" works on 2.7 by catching the @CMajeri, what's the value of |
Thanks for looking into this, @vsajip. If I understand correctly, this issue affects more than Python 2.7. It also affects Python 3 before 3.7. It could happen when running I would merge a change that addresses this by adding a warning message, either at the time encoding fails or at startup (or both). We might consider checking
Please do let us know, @CMajeri. My attempt above setting In searching around a bit, it seems this has been an issue for running Python programs under Docker (see docker-library/python#147). Users often write into the issue tracker saying that they are running Supervisor under Docker. |
See PR #1235 |
Fixed in #1235 |
(cherry picked from commit a88c1f1)
Hello,
I've updated from 3.3.5 to 4.0.2 and I suddenly can't run
supervisorctl tail -f
on my various services.supervisorctl tail
works great.Here's a sample output:
I run python 2.7.15
Is there a workaround of some sort with environment variables to allow python to understand UTF-8? I'm guessing it has issues with ellipsis and the μ character in my other units.
The text was updated successfully, but these errors were encountered: