[英]No connector for [] error, supervisor and Laravel?
I'm trying to setup Supervisor on a VPS with Inmotion Hosting.我正在尝试在带有 Inmotion Hosting 的 VPS 上设置 Supervisor。 I keep getting this error in the worker.log file:
我在 worker.log 文件中不断收到此错误:
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: .env:
QUEUE_CONNECTION=database
laravel-worker.conf 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?我究竟做错了什么?
I found the error.我发现了错误。 In the laravel-worker.conf file, in the
command
line, default
should be database
.在 laravel-worker.conf 文件中,在
command
行中, default
应该是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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.