Starting supervisorctl gives ERROR (spawn error) on laravel queue worker process Starting supervisorctl gives ERROR (spawn error) on laravel queue worker process linux linux

Starting supervisorctl gives ERROR (spawn error) on laravel queue worker process


I got resolve by restarting supervisor

sudo service supervisor reload


So the problem apparently was with my laravel-workerI needed to complete command path by adding '/artisan' to the path like so -

[program:laravel-worker]process_name=%(program_name)s_%(process_num)02dcommand=php /var/www/html/artisan queue:work database --sleep=3 --tries=2 --daemon


The same issue I was also facing, after specifying the queue name properly issue resolved

command=php /home/vagrant/code/prject1/artisan queue:work redis --queue=email --sleep=3 --tries=1 --daemon

Here is my worker file laravel-worker.conf

execution