-
Notifications
You must be signed in to change notification settings - Fork 1.2k
"supervisorctl start xxx"command stuck #942
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
When you start a process with |
[program: foo] the startsecs value in the configuration is used by default (1s). Starting foo, supervisord log has a tip: When supervisorctl start foo stuck, press ctrl + c, then supervisorctl status foo show the foo is RUNNING status Not clear supervisord reply "200 OK" in normal, when stuck just close the socket without sending anything. |
I found a way to reproduce the problem. For example, the host current time is "2017/6/8 17:00" When the supervisorctl start foo is executing, the host time is changed to "2017/6/8 16:00" The supervisorctl start foo command is stuck at this time. |
Closing this issue in favor of #1043 which has an explanation of the cause and a pull request to fix it. |
Hello everybody
I had a problem with supversior 3.2.0 on ubuntu:
When running "supervisorctl start xxx"command will be stuck.
The strace supervisorctl and supervisord processes found that supervisorctl stuck in recvform calls
Analysis supervisord log, it is because there is no send a message, so supervisorctl has been blocked.
Correct behavior seems to be supervisord will reply message "HTTP / 1.1 200 OK", supervisorctl exit after receiving.
I don't know if anyone have this problem, thank you very much for any help.
Good log (excerpt) :
Supervisord:
Recvfrom (5, "POST/RPC2 HTTP / 1.1 \ r \ nHost: local"..., 4096, 0, NULL) = 362
Sendto (5, "HTTP / 1.1 200 OK \ r \ nDate: Sat, 03 J"..., 251, 0, NULL, 0) = 251
Recvfrom (5, ", 4096, 0, NULL, NULL) = 0
Close (5)
Supervisorctl:
The socket (PF_LOCAL, SOCK_STREAM, 0) = 3
Connect (3, {sa_family = AF_LOCAL, sun_path = "/ var/run/supervisor.") = 0
Sendto (3, "POST/RPC2 HTTP / 1.1 \ r \ nHost: local"..., 362, 0, NULL, 0) = 362
Recvfrom (3, "H", 1, 0, NULL) = 1
Recvfrom (3, "T", 1, 0, NULL) = 1
Recvfrom (3, "T", 1, 0, NULL) = 1
Recvfrom (3, P, 1, 0, NULL, NULL) = 1
...
Stuck log (excerpt) :
Supervisord:
Recvfrom (5, "POST/RPC2 HTTP / 1.1 \ r \ nHost: local"..., 4096, 0, NULL) = 362
Recvfrom (5, ", 4096, 0, NULL, NULL) = 0
Close (5) = 0
Supervisorctl:
The socket (PF_LOCAL, SOCK_STREAM, 0) = 3
Connect (3, {sa_family = AF_LOCAL, sun_path = "/ var/run/supervisor.") = 0
Sendto (3, "POST/RPC2 HTTP / 1.1 \ r \ nHost: local"..., 362, 0, NULL, 0) = 362
Recvfrom (3,
The text was updated successfully, but these errors were encountered: