2015-01-26 14 views
12

Tôi đã nhìn thấy câu hỏi này được hỏi trước đây, nhưng không có giải pháp nào phù hợp với tôi.supervisorctl ERROR (không có quy trình như vậy)

Tôi đang gặp sự cố khi sử dụng trình giám sát trên rpi b + của mình. Mỗi lần tôi cố gắng chạy bắt đầu của tôi quá trình của tôi, tôi nhận được một lỗi nói:

pi @ Raspberry Pi ~ $ sudo supervisorctl khởi động máy chủ

server: ERROR (không có quá trình như vậy)

tôi có cấu hình của tôi tệp được thiết lập tại /etc/supervisord.conf

[program:server] 
directory=/home/pi/ledticker 
command=/usr/bin/python NetworkServer.py 
autostart=false 
autorestart=true 
stopsignal=QUIT 

[supervisord] 
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log) 
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB) 
logfile_backups=10 ; (num of main logfile rotation backups;default 10) 
loglevel=info ; (log level;default info; others: debug,warn,trace) 
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid) 
nodaemon=false ; (start in foreground if true;default false) 
minfds=1024 ; (min. avail startup file descriptors;default 1024) 
minprocs=200 ; (min. avail process descriptors;default 200) 

[supervisorctl] 
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket 

[unix_http_server] 
file=/tmp/supervisor.sock ; (the path to the socket file) 

Tôi đã thử thực hiện đọc lại, cập nhật, tải lại lệnh nhưng chưa hoạt động. Bất kỳ ý tưởng?

+0

Bạn đã tìm thấy một giải pháp cho điều này? – Ajoy

+0

Bạn có muốn chấp nhận một trong hai câu trả lời được đề xuất không? –

Trả lời

6

tôi đã phải đối mặt với cùng một vấn đề trước đây. Nó đã được giải quyết bằng cách làm theo các giải pháp. Đầu tiên chỉnh sửa tập tin supervisord.conf của bạn và thêm bên dưới dòng:

[unix_http_server] 

file=/tmp/supervisor.sock 

chmod=0777 
  • bắt đầu dịch vụ SupervisorD đầu tiên sử dụng lệnh sau:

    $ sudo /usr/bin/supervisord -c /etc/supervisord.conf 
    
  • Bạn có thể xác minh bằng: ps-ef | grep python

  • Sau khi bắt đầu supervisord, Cố gắng để bắt đầu chương trình của bạn sử dụng lệnh sau:

    $ sudo /usr/bin/supervisorctl -c /etc/supervisord.conf start all 
    
20

Bạn nên cố gắng tải lại supervisord:

# supervisorctl reload 
[y/N] ? y 

Trong nhiều trường hợp, lỗi này được giải quyết bằng cách tải lại.

0

On Fedora22 của tôi, tôi sửa đổi dưới dòng trong /etc/supervisord.conf:

[include] 
files = supervisord.d/*.ini 

để

[include] 
files = supervisord.d/*.conf 

và sau đó tải lại

Các vấn đề liên quan