Supervisor / supervisor

Supervisor process control system for Unix (supervisord)
http://supervisord.org
Other
8.53k stars 1.25k forks source link

inet_http_server running issue in service mode. #1591

Open sokolnikov911 opened 1 year ago

sokolnikov911 commented 1 year ago

Hello! I want to run supervisord with inet_http_server.

When I run it in command line: supervisord -c /etc/supervisor/supervisord.conf it is working correctly, and I can use SupervisorD status through http.

But when I try to run supervisor as a service: sudo service supervisor start, supervisord is working, but I can't enter into SupervisorD status through http. And in the log file I see this:

2023-05-08 18:34:28,200 TRAC 127.0.0.1:warning: server accept() threw an exception
2023-05-08 18:34:28,200 TRAC 127.0.0.1:warning: server accept() threw an exception
2023-05-08 18:34:28,201 TRAC 127.0.0.1:warning: server accept() threw an exception
2023-05-08 18:34:28,201 TRAC 127.0.0.1:warning: server accept() threw an exception
2023-05-08 18:34:28,201 TRAC 127.0.0.1:warning: server accept() threw an exception
2023-05-08 18:34:28,202 TRAC 127.0.0.1:warning: server accept() threw an exception

Config file:

[unix_http_server]
file=/var/run/supervisor.sock  
chmod=0700

[supervisord]
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
childlogdir=/var/log/supervisor
loglevel=trace

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock

[inet_http_server]
port=*:9001
username=user
password=password

[include]
files = /etc/supervisor/conf.d/*.conf

Supervisord version: 4.1.0 OS: Ubuntu 20.04.6 LTS