@nnnayeem You shouldn’t use the scheduler to run the queue worker.
Feb 3, 2021
7
Level 2
Debug Cpanel Cronjob Error
Hello everyone,
I am trying to run artisan command using the following command in cpanel:
/usr/local/bin/ea-php74 /home2/nemanufacturer/website/core1 artisan schedule:run >/home2/nemanufacturer/website/core1/cron.log 2>&1
This command output empty cron.log file but no job is being processed. In my local environment everything works fine. My kernel.php:
$schedule->command('queue:work --tries=3')->everyMinute()->withoutOverlapping();
If I don't have root and whm access how do I find the error? I have checked error.log file but no error is logged.
Level 33
Well, for starters you're missing a directory separator between the project folder and the artisan command:
/usr/local/bin/ea-php74 /home2/nemanufacturer/website/core1/artisan queue:work --tries=3 > /home2/nemanufacturer/website/core1/cron.log 2>&1
1 like
Please or to participate in this conversation.