Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

allcdnboy12's avatar

Database Worker failing

I set up a worker, but receive this in worker logs: exited: worker-326379_00 (exit status 1; not expected)

... and this in Laravel logs: Trying to access array offset on value of type null at /home/paintosca/paintos.ca/vendor/laravel/framework/src/Illuminate/Queue/QueueManager.php:156)

That line is:

return $this->getConnector($config['driver'])

from this

protected function resolve($name)
    {
        $config = $this->getConfig($name);

        return $this->getConnector($config['driver'])
                        ->connect($config)
                        ->setConnectionName($name);
    }

I don't have run config:cache and config:clear to the same result.

The configuration is

[program:worker-326379]
command=php7.4 /home/username/domain.com/artisan queue:work datatabase --sleep=3 --tries=3

process_name=%(program_name)s_%(process_num)02d
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=username
numprocs=1
stdout_logfile=/home/domain.com/.forge/worker-326379.log

If I run this manually:

php7.4 /home/username/domain.com/artisan queue:work datatabase --sleep=3 --tries=3

it works fine

0 likes
1 reply
allcdnboy12's avatar

... I'm a dummy ... I don't know how to spell database

Please or to participate in this conversation.