supervisorctl update

在执行这条命令的时候报错,第一个错误在社区查了貌似是因为脚本定义的用户和监察的用户不一样导致的。
问答:error: CANT_REREAD
但是我执行sudowww 'supervisorctl update'一样报错,这是什么问题呢?
file
是用户权限问题,还是服务器端口问题,要怎么解决?

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
leo
最佳答案

目测是 /etc/supervisor/conf.d/laravel-shop.conf 写得有问题,把内容贴上来。

另外除非报错信息里有明显的『权限』错误,不然不要随便 sudo

5年前 评论
讨论数量: 6
leo

目测是 /etc/supervisor/conf.d/laravel-shop.conf 写得有问题,把内容贴上来。

另外除非报错信息里有明显的『权限』错误,不然不要随便 sudo

5年前 评论

@leo 检查了一下文件 不小心抄错了 改回来就好了,谢谢老师。

5年前 评论

@leo 我也遇到了相同的问题

 [program:mongfu-platform-horizon]
process_name=%(program_name)s
command=php /var/www/mongfu-platform-deployer/current/artisan horizon
autostart=true
autorestart=true
user=www-data
redirect_stderr=true
stdout_logfile=/var/www/mongfu-platform-deployer/current/storage/logs/worker.log

报了这个错误

supervisorctl update
error: <class 'socket.error'>, [Errno 13] Permission denied: file: /usr/lib/python2.7/socket.py line: 228
4年前 评论
leo

@caojianx 执行 supervisorctl update 命令的必须是 root 账户

4年前 评论

@leo
还是报错了

sudo supervisorctl update
error: <class 'xmlrpclib.Fault'>, <Fault 92: "CANT_REREAD: The directory named as part of the path /var/www/mongfu-platform-deployer/current/storage/logs/worker.log does not exist. in section 'program:mongfu-platform-horizon' (file: '/etc/supervisor/conf.d/mongfu-platform.conf')">: file: /usr/lib/python2.7/xmlrpclib.py line: 800
4年前 评论
leo

@caojianx /var/www/mongfu-platform-deployer/current/storage/logs/ 这个目录不存在,或者 www-data 用户无权写入

4年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!