Supervisor / supervisor

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

How to fix this: `error: <class 'OSError'>, [Errno 99] Cannot assign requested address:file: /usr/lib/python3.8/socket.py line: 796` #1590

Closed fscarmen2 closed 1 year ago

fscarmen2 commented 1 year ago

I installed supervisor in Ubuntu 20.04 Docker. And it reported an error when i ran supervisorctl status and supervisorctl stop nezha. How to fix it?

[program:nginx] command=nginx -g "daemon off;" autostart=true autorestart=true stderr_logfile=/var/log/nginx.err.log stdout_logfile=/var/log/nginx.out.log

[program:nezha] command=/dashboard/app autostart=true autorestart=true stderr_logfile=/var/log/nezha.err.log stdout_logfile=/var/log/nezha.out.log

[program:argo] command=cloudflared tunnel --edge-ip-version auto --config /dashboard/argo.yml run autostart=true autorestart=true stderr_logfile=/var/log/web_argo.err.log stdout_logfile=/var/log/web_argo.out.log

root@504abbfdc1ff:/dashboard# ps aux | grep supervisord root ... 0:00 /usr/bin/python3 /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisor.conf


+ Error logs

root@504abbfdc1ff:/dashboard# supervisorctl stop nezha error: <class 'OSError'>, [Errno 99] Cannot assign requested address: file: /usr/lib/python3.8/socket.py line: 796

root@504abbfdc1ff:/dashboard# supervisorctl status error: <class 'OSError'>, [Errno 99] Cannot assign requested address: file: /usr/lib/python3.8/socket.py line: 796

peifeng-tal commented 1 year ago

i have same problem,how to fix it? tell me please,i`m crazy!

fscarmen2 commented 1 year ago

Run supervisord -c /etc/supervisor/supervisord.conf instead of supervisord -c /etc/supervisor/conf.d/supervisor.conf

peifeng-tal commented 1 year ago

Thanks,I really need it!     ------------------ Original ------------------ From: @.>; Date:  Mon, Jul 10, 2023 03:01 PM To: @.>; Cc: @.>; @.>; Subject:  Re: [Supervisor/supervisor] How to fix this: error: <class 'OSError'&gt;, [Errno 99] Cannot assign requested address:file: /usr/lib/python3.8/socket.py line: 796 (Issue #1590)

 

Run supervisord -c /etc/supervisor/supervisord.conf instead of supervisord -c /etc/supervisor/conf.d/supervisor.conf

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>