Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
427 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 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...