laravel-5supervisord

Supervisor FATAL Exited too quickly (process log may have details)


I am using supervisor in laravel some time my supervisor work fine and some time got error. FATAL Exited too quickly (process log may have details).

This is my supervisor file.

[program:laravel-worker-mail]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/html/new-project/artisan queue:work mongodb --sleep=10 --tries=3
autostart=true
autorestart=true
user=www-data
numprocs=2
redirect_stderr=true
stdout_logfile=/var/www/html/new-project//storage/logs/worker.log

Please suggest me if anybody have good idea about this.


Solution

  • I solved the problem myself by searching and applying a number of methods, I found my solution by adding --daemon in command updated code below

    [program:laravel-worker-mail]
    process_name=%(program_name)s_%(process_num)02d
    command=php /var/www/html/new-project/artisan queue:work mongodb --sleep=10 --tries=3 --daemon
    autostart=true
    autorestart=true
    user=www-data
    numprocs=2
    redirect_stderr=true
    stdout_logfile=/var/www/html/new-project/storage/logs/worker.log