Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
409 views
in Technique[技术] by (71.8m points)

supervisord - No connector for [] error, supervisor and Laravel?

I'm trying to setup Supervisor on a VPS with Inmotion Hosting. I keep getting this error in the worker.log file:

No connector for [].

When trying to start the worker.

First I run these two commands:

sudo supervisorctl reread
sudo supervisorctl update

Then this:

sudo supervisorctl start laravel-worker:*

And that's when I get the error.

.env:

QUEUE_CONNECTION=database

laravel-worker.conf

[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=/opt/cpanel/ea-php72/root/bin/php xxx/artisan queue:work default --sleep=3 --tries=3
autostart=true
autorestart=true
user=xxx
numprocs=8
redirect_stderr=true
stdout_logfile=xxx/worker.log
stopwaitsecs=3600

I also tried running these commands:

php artisan config:cache
php artisan config:clear

But it didn't solve it.

What am I doing wrong?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I found the error. In the laravel-worker.conf file, in the command line, default should be database. Now it's working.

[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=/opt/cpanel/ea-php72/root/bin/php xxx/artisan queue:work database --sleep=3 --tries=3
autostart=true
autorestart=true
user=xxx
numprocs=8
redirect_stderr=true
stdout_logfile=xxx/worker.log
stopwaitsecs=3600

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...