I am getting the following error in my laravel log:
production.ERROR: exception 'InvalidArgumentException' with message 'There are no commands defined in the "queue" namespace.' in /home/wowleade/laravel/vendor/symfony/console/Symfony/Component/Console/Application.php:514
Stack trace:
0 /home/wowleade/laravel/vendor/symfony/console/Symfony/Component/Console/Application.php(548): Symfony\Component\Console\Application->findNamespace('queue')
1 /home/wowleade/laravel/vendor/symfony/console/Symfony/Component/Console/Application.php(188): Symfony\Component\Console\Application->find('queue:work')
2 /home/wowleade/laravel/vendor/symfony/console/Symfony/Component/Console/Application.php(121): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
3 /home/wowleade/laravel/artisan(58): Symfony\Component\Console\Application->run()
4 {main} [] []
Here's the program:
[program:laravel] command=php-cli /home/wowleade/laravel/artisan queue:listen --env=production directory=/home/wowleade/laravel stdout_logfile=/home/wowleade/laravel/app/storage/logs/laravel_queue_output.log stderr_logfile=/home/wowleade/laravel/app/storage/logs/laravel_queue_error.log
I've tried reinstalling everything, because of this: https://github.com/laravel/laravel/issues/2226 However that didn't solve the problem.
Please help me!!!! :D
I am using Beanstalkd and Supervisor on Laravel 4.1. The program is running when I check the status in supervisorctl, but its not doing the "php artisan queue:listen" command, it's just spamming the above error in the Laravel log. Running "php artisan queue:listen" manually in the Laravel folder does work however.
Is something wrong with my program in the conf file I made? (see above post for program)
just out of curiosity, did you have any luck here? i'm stuck in the same exact spot - running it manually works fine, and supervisor will work on a stage version of the app, but not on my production environment
If you are working with an artisan command, it is necessary to register the new command created with:
php artisan command:make CronJobsCommand --command=myapp:cronjobs
adding the following line at myapp/app/start/artisan.php:
Artisan::resolve('CronJobsCommand');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community