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()
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
最佳答案

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

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

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

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

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

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

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