-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Meet error on supervisorctl reread&&reload while sending start command via rpc #975
Comments
I do some supervisorctl reread/reload work while I send startProcess/stopProcess request to supervisord service via golang RPC package. And I get error above. I have been trying to figure it out, but not done yet |
and here is stack traces of the exception |
and the corresponding code snippet
why there is a process state assertion? what is it designed for? Can I just bypass the code? |
The assertion is to find bugs in
No,
From your log above, it looks like |
Thank you for your answer, which does a lot of help. @mnaberez I've checked the stack trace and I found that in the upper frame My golang code does By the way I am still keeping the pdb debug available all the time if that would be help |
I am trying to local the stack of UNKNOWN assertion failure. I set the break point at
through hours of running, it has come to a hanging up. There is no more log in pdb output, and I try to connect the supersord by supervisorctl but connection has blocked. here is the net status
but supervisord seems to be blocked somewhere, and followed are strace info:
it's weird.. |
I have traced the stack info into rpcinterface.py,
I guess what we are doing here is: when we want to stop a process we check it status first, if the process state is in the Whether it's a racing condition if there is some threads scheduling in between the @mnaberez
|
there is a possible racing condition, or I misunderstood? @mnaberez @alex @devrieda @anandology @joshk please notice that it seems like that there is same problem in the latest version |
os: ubuntu14.04
python: 2.7.6
version: 3.0b2
golang rpc client.
what I've seen:
supervisord crash and restart after a exception of error killing
what I am expecting:
No crash down or something like that.
log:
Note that the CRIT log above means the restarting of the program.
The text was updated successfully, but these errors were encountered: