Supervisor启动队列失败

Supervisor配置(基于宝塔)

[program:laravel-queue]
command=php artisan queue:work –tries=3
directory=/www/wwwroot/private.saas.com/
autorestart=true
startsecs=3
startretries=3
stdout_logfile=/www/server/panel/plugin/supervisor/log/laravel-queue.out.log
stderr_logfile=/www/server/panel/plugin/supervisor/log/laravel-queue.err.log
stdout_logfile_maxbytes=2MB
stderr_logfile_maxbytes=2MB
user=www
priority=999
numprocs=1
process_name=%(program_name)s_%(process_num)02d

日志信息


   ErrorException 

  Trying to access array offset on value of type null

  at vendor/laravel/framework/src/Illuminate/Queue/QueueManager.php:156
    152protected function resolve($name)
    153{
    154▕         $config = $this->getConfig($name);
    155▕ 
  ➜ 156return $this->getConnector($config['driver'])
    157->connect($config)
    158->setConnectionName($name);
    159}
    160[2m+18 vendor frames [22m
  19  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
最佳答案

命令写错了,应该是 php artisan queue:work --tries=3

2年前 评论
91it (楼主) 2年前
讨论数量: 4

和 supervisor 没关系,队列配置问题,先在命令行启动队列排 bug

2年前 评论
91it (楼主) 2年前

命令写错了,应该是 php artisan queue:work --tries=3

2年前 评论
91it (楼主) 2年前

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!