Supervisor/supervisor

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

fscarmen2 opened this issue · 3 comments

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?

  • Docker system
root@504abbfdc1ff:/dashboard# cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
  • supervisor.conf and run
root@504abbfdc1ff:/dashboard# cat /etc/supervisor/conf.d/supervisor.conf 
[supervisord]
nodaemon=true
logfile=/var/log/supervisord.log
pidfile=/run/supervisord.pid

[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

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

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