Skip to content

supervisorctl shutdown hangs if supervisord.log was moved/deleted #914

Open
@woutervh

Description

@woutervh

tested with

  • pypy5.7 (linux, 64-bits, python2.7), supervisor 3.3.1
  • python2.7, supervisor 3.3.1

start supervisord, these files are created

bin/supervisord
var/log/supervisord.log
var/log/supervisord-*.log
var/run/supervisord.pid
var/run/supervisord.socket

Nowdelete the log-files

rm var/log/supervisor*.log

status is still OK

bin/supervisorctl status
uwsgi RUNNING Not started

1° attempt to shutdown

bin/supervisorctl shutdown
Shut down

-> shutdown seems to be happening
-> but fails: var/run/supervisord.pid and var/run/supervisord.pid still remain

status now gives error

bin/supervisorctl status
error: <class 'xmlrpclib.Fault'>, <Fault 6: 'SHUTDOWN_STATE'>: file: /opt/pypy-5.7/lib-python/2.7/xmlrpclib.py line: 800

2° attempt to shutdown -> FAIL

bin/supervisorctl shutdown
ERROR: already shutting down

the shutdown-process hangs.

On pypy: creating the logfile unblocks the shutdown-process

touch var/log/supervisord.log

--> var/run/supervisord.pid en
var/run/supervisord.pid are now gone

On Cpython2.7 it keeps hanging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions