Skip to content
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

CRIT uncaptured python exception, closing channel #1103

Closed
nvjkmr opened this issue May 18, 2018 · 4 comments
Closed

CRIT uncaptured python exception, closing channel #1103

nvjkmr opened this issue May 18, 2018 · 4 comments
Labels

Comments

@nvjkmr
Copy link

nvjkmr commented May 18, 2018

I had a look at this issue #935, but this looks different from what we have because we do not use docker.

<POutputDispatcher at 140420557428712 for <Subprocess at 140420557661752 with name celery_worker in state STOPPING>
(stdout)> (<type 'exceptions.IOError'>: [Errno 29] Illegal seek 
[/usr/lib/python2.7/dist-packages/supervisor/supervisord.py|runforever|233] 
[/usr/lib/python2.7/dist-packages/supervisor/dispatchers.py|handle_read_event|231] 
[/usr/lib/python2.7/dist-packages/supervisor/dispatchers.py|record_output|165] 
[/usr/lib/python2.7/dist-packages/supervisor/dispatchers.py|_log|141] 
[/usr/lib/python2.7/dist-packages/supervisor/loggers.py|info|273] 
[/usr/lib/python2.7/dist-packages/supervisor/loggers.py|log|291] 
[/usr/lib/python2.7/dist-packages/supervisor/loggers.py|emit|186] 
[/usr/lib/python2.7/dist-packages/supervisor/loggers.py|doRollover|195])
@mnaberez
Copy link
Member

Please provide:

  • supervisord --version
  • Contents of [program:celery_worker] in the config file
  • Operating System

@nvjkmr
Copy link
Author

nvjkmr commented May 19, 2018

supervisord --version = 3.0b2
Operating System: Ubuntu

[program:celery_worker]
directory=/home/ubuntu/project
;command=/home/ubuntu/venv/bin/python manage.py celeryd -Q queue-name
command=/home/ubuntu/venv/bin/celery -A webapp -Q process_task_queue -l debug -c 8 worker
;CELERYD_OPTS= "--concurrency=4"
user=ubuntu
group=ubuntu
stdout_logfile=/var/log/celery-worker.log
stderr_logfile=/var/log/celery-worker.log
autostart=true
autorestart=true
startsecs=10
numprocs=1
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600
environment=C_FORCE_ROOT="true"
; When resorting to send SIGKILL to the program to terminate it
; send SIGKILL to its whole process group instead,
; taking care of its children as well.
killasgroup=true

; if rabbitmq is supervised, set its priority higher
; so it starts first
priority=1000  ;first_name,=1000  ;first_name,

@daniel1302
Copy link

If you log to stdout/stderr or sth other buffer please try to disable log rotation.
http://veithen.io/2015/01/08/supervisord-redirecting-stdout.html

@mnaberez
Copy link
Member

supervisord --version = 3.0b2

This version of Supervisor is nearly 6 years old. There were many changes and bug fixes since then. Please upgrade to a newer version. If you still have the issue, we can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants