unix:///tmp/supervisor.sock 没有那个文件
unix:///tmp/supervisor.sock no such file
使用 Ubuntu 16.04 LTS 部署我的 python 应用程序。配置一切,应用程序正在手动 运行ning。我想用 supervisor 自动化它,我已经安装了 supervisor 并配置了它。但是如果我 运行:
主管配置文件:
; supervisor config file
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
; The [include] section can just contain the "files" setting. This
; setting can list multiple files (separated by whitespace or
; newlines). It can also contain wildcards. The filenames are
; interpreted as relative to this file. Included files *cannot*
; include files themselves.
[include]
files = /etc/supervisor/conf.d/*.conf
supervisorctl reread
我最后得到 unix:///tmp/supervisor.sock no such file
但是supervisord
状态是运行ning,
请有想法的人。
删除 /etc/supervisor/conf.d/
中的所有配置文件后重新安装 supervisor
终于解决了这个问题。
我遇到了同样的问题。阅读 man supervisorctl
手册后,我意识到默认文件是 /etc/supervisord.conf
,在 ubuntu 中位于 /etc/supervisor/supervisord.conf
。我使用以下方法创建了一个符号链接:
sudo ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf
这解决了我的问题。
Ubuntu 管理程序包 (3.3.1-1.1) 在 /etc/supervisor/supervisord.conf
中有配置文件。
出于某种原因(我不知道为什么)/etc/supervisord.conf
中似乎有另一个配置文件,而 supervisorctl 更喜欢该文件。
您可以将配置文件位置显式定义为 supervisorctl:
sudo supervisorctl -c /etc/supervisor/supervisord.conf reread
或者只删除 /etc/supervisord.conf
.
可能其中一个配置文件有语法错误。
例如,验证[program]子句是否缺失
删除 conf.d 目录中的每个文件并重新启动主管以隔离有问题的文件。
运行 这个命令 sudo service supervisord restart
解决了我的问题。
有些回答建议重新安装,本质上就是这样
得到这个的原因:有多种原因,我发现我的主管由于电源跳闸而导致服务器不断停机而被损坏。
解决方法:先删除supervisor,再重新安装。
步骤:
sudo apt-get remove supervisor
sudo apt-get remove --auto-remove supervisor
sudo apt-get purge supervisor
sudo apt-get purge --auto-remove supervisor
Link 上面的可以在这里找到:
https://www.howtoinstall.co/en/ubuntu/trusty/supervisor?action=remove
使用 Ubuntu 16.04 LTS 部署我的 python 应用程序。配置一切,应用程序正在手动 运行ning。我想用 supervisor 自动化它,我已经安装了 supervisor 并配置了它。但是如果我 运行:
主管配置文件:
; supervisor config file
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
; The [include] section can just contain the "files" setting. This
; setting can list multiple files (separated by whitespace or
; newlines). It can also contain wildcards. The filenames are
; interpreted as relative to this file. Included files *cannot*
; include files themselves.
[include]
files = /etc/supervisor/conf.d/*.conf
supervisorctl reread
我最后得到 unix:///tmp/supervisor.sock no such file
但是supervisord
状态是运行ning,
请有想法的人。
删除 /etc/supervisor/conf.d/
中的所有配置文件后重新安装 supervisor
终于解决了这个问题。
我遇到了同样的问题。阅读 man supervisorctl
手册后,我意识到默认文件是 /etc/supervisord.conf
,在 ubuntu 中位于 /etc/supervisor/supervisord.conf
。我使用以下方法创建了一个符号链接:
sudo ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf
这解决了我的问题。
Ubuntu 管理程序包 (3.3.1-1.1) 在 /etc/supervisor/supervisord.conf
中有配置文件。
出于某种原因(我不知道为什么)/etc/supervisord.conf
中似乎有另一个配置文件,而 supervisorctl 更喜欢该文件。
您可以将配置文件位置显式定义为 supervisorctl:
sudo supervisorctl -c /etc/supervisor/supervisord.conf reread
或者只删除 /etc/supervisord.conf
.
可能其中一个配置文件有语法错误。
例如,验证[program]子句是否缺失
删除 conf.d 目录中的每个文件并重新启动主管以隔离有问题的文件。
运行 这个命令 sudo service supervisord restart
解决了我的问题。
有些回答建议重新安装,本质上就是这样
得到这个的原因:有多种原因,我发现我的主管由于电源跳闸而导致服务器不断停机而被损坏。
解决方法:先删除supervisor,再重新安装。
步骤:
sudo apt-get remove supervisor
sudo apt-get remove --auto-remove supervisor
sudo apt-get purge supervisor
sudo apt-get purge --auto-remove supervisor
Link 上面的可以在这里找到:
https://www.howtoinstall.co/en/ubuntu/trusty/supervisor?action=remove