Version v5.12.30 Environment Shared Hosting
I only use Invoice Ninja during certain times of the year, and last year it was working well. I regularly update the software through Softaculous, but now when I need it again, it does not want to import clients or send an email. When I test the emails, it works, but it looks like the queue is not processing. I saw there were lots of errors in the queue, and I cleared it by deleting all the entries in the jobs table. Since then, I again tried to import clients and send an invoice through email, but the queue does not process.
In the env file I have QUEUE_CONNECTION=database like always.
My cron jobs are the same as last year. Here is the error log.
Illuminate\Queue\TimeoutExceededException: App\Jobs\Invoice\ZipInvoices has timed out. in /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/TimeoutExceededException.php:15
Stack trace:
#0 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(796): Illuminate\Queue\TimeoutExceededException::forJob()
#1 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(217): Illuminate\Queue\Worker->timeoutExceededException()
#2 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(595): Illuminate\Queue\Worker->Illuminate\Queue{closure}()
#3 [internal function]: GuzzleHttp\Handler\CurlFactory::GuzzleHttp\Handler{closure}()
#4 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(44): curl_exec()
#5 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke()
#6 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(48): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#7 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(64): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#8 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke()
#9 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(71): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#10 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\RedirectMiddleware->__invoke()
#11 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#12 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Client.php(333): GuzzleHttp\HandlerStack->__invoke()
#13 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Client.php(169): GuzzleHttp\Client->transfer()
#14 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Client->requestAsync()
#15 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/ClientTrait.php(95): GuzzleHttp\Client->request()
#16 /home/ttgroupi/public_html/invoices/app/Utils/HostedPDF/NinjaPdf.php(28): GuzzleHttp\Client->post()
#17 /home/ttgroupi/public_html/invoices/app/Services/Pdf/PdfService.php(167): App\Utils\HostedPDF\NinjaPdf->build()
#18 /home/ttgroupi/public_html/invoices/app/Services/Pdf/PdfService.php(92): App\Services\Pdf\PdfService->resolvePdfEngine()
#19 /home/ttgroupi/public_html/invoices/app/Jobs/Entity/CreateRawPdf.php(106): App\Services\Pdf\PdfService->getPdf()
#20 /home/ttgroupi/public_html/invoices/app/Services/Invoice/InvoiceService.php(194): App\Jobs\Entity\CreateRawPdf->handle()
#21 /home/ttgroupi/public_html/invoices/app/Jobs/Invoice/ZipInvoices.php(74): App\Services\Invoice\InvoiceService->getRawInvoicePdf()
#22 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Jobs\Invoice\ZipInvoices->handle()
#23 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#24 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#25 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#26 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#27 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\Container\Container->call()
#28 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}()
#29 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#30 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#31 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\Bus\Dispatcher->dispatchNow()
#32 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue{closure}()
#33 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#34 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\Pipeline\Pipeline->then()
#35 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware()
#36 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(102): Illuminate\Queue\CallQueuedHandler->call()
#37 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(439): Illuminate\Queue\Jobs\Job->fire()
#38 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(389): Illuminate\Queue\Worker->process()
#39 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(176): Illuminate\Queue\Worker->runJob()
#40 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(138): Illuminate\Queue\Worker->daemon()
#41 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(121): Illuminate\Queue\Console\WorkCommand->runWorker()
#42 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#43 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#44 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#45 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#46 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#47 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#48 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute()
#49 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\Component\Console\Command\Command->run()
#50 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Application.php(1096): Illuminate\Console\Command->run()
#51 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#52 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#53 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\Component\Console\Application->run()
#54 /home/ttgroupi/public_html/invoices/artisan(37): Illuminate\Foundation\Console\Kernel->handle()
#55 {main}
Please help.
Thank you very much.
hillel
June 22, 2025, 1:53pm
2
Hi,
If you have a queue:work cron it may help to set a longer timeout, ie.
php artisan queue:work --timeout=120 --stop-when-empty
hillel:
--timeout=120
Thank you so much for replying @Hillel . I changed my cron job from:
cd /home/ttgroupi/public_html/invoices && /opt/alt/php81/usr/bin/php -d register_argc_argv=On artisan queue:work --stop-when-empty
to
cd /home/ttgroupi/public_html/invoices && /opt/alt/php81/usr/bin/php -d register_argc_argv=On artisan queue:work --timeout=120 --stop-when-empty
There was no change, it still would not work. Could it be that the requirements for the cron job may have changed, because I was also on version 5 last year?
The log files
Illuminate\Queue\TimeoutExceededException: App\Jobs\Invoice\ZipInvoices has timed out. in /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/TimeoutExceededException.php:15
Stack trace:
#0 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(796): Illuminate\Queue\TimeoutExceededException::forJob()
#1 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(217): Illuminate\Queue\Worker->timeoutExceededException()
#2 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(595): Illuminate\Queue\Worker->Illuminate\Queue{closure}()
#3 [internal function]: GuzzleHttp\Handler\CurlFactory::GuzzleHttp\Handler{closure}()
#4 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(44): curl_exec()
#5 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke()
#6 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(48): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#7 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(64): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#8 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke()
#9 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(71): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#10 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\RedirectMiddleware->__invoke()
#11 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#12 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Client.php(333): GuzzleHttp\HandlerStack->__invoke()
#13 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Client.php(169): GuzzleHttp\Client->transfer()
#14 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Client->requestAsync()
#15 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/ClientTrait.php(95): GuzzleHttp\Client->request()
#16 /home/ttgroupi/public_html/invoices/app/Utils/HostedPDF/NinjaPdf.php(28): GuzzleHttp\Client->post()
#17 /home/ttgroupi/public_html/invoices/app/Services/Pdf/PdfService.php(167): App\Utils\HostedPDF\NinjaPdf->build()
#18 /home/ttgroupi/public_html/invoices/app/Services/Pdf/PdfService.php(92): App\Services\Pdf\PdfService->resolvePdfEngine()
#19 /home/ttgroupi/public_html/invoices/app/Jobs/Entity/CreateRawPdf.php(106): App\Services\Pdf\PdfService->getPdf()
#20 /home/ttgroupi/public_html/invoices/app/Services/Invoice/InvoiceService.php(194): App\Jobs\Entity\CreateRawPdf->handle()
#21 /home/ttgroupi/public_html/invoices/app/Jobs/Invoice/ZipInvoices.php(74): App\Services\Invoice\InvoiceService->getRawInvoicePdf()
#22 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Jobs\Invoice\ZipInvoices->handle()
#23 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#24 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#25 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#26 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#27 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\Container\Container->call()
#28 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}()
#29 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#30 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#31 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\Bus\Dispatcher->dispatchNow()
#32 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue{closure}()
#33 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#34 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\Pipeline\Pipeline->then()
#35 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware()
#36 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(102): Illuminate\Queue\CallQueuedHandler->call()
#37 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(439): Illuminate\Queue\Jobs\Job->fire()
#38 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(389): Illuminate\Queue\Worker->process()
#39 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(176): Illuminate\Queue\Worker->runJob()
#40 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(138): Illuminate\Queue\Worker->daemon()
#41 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(121): Illuminate\Queue\Console\WorkCommand->runWorker()
#42 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#43 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#44 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#45 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#46 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#47 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#48 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute()
#49 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\Component\Console\Command\Command->run()
#50 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Application.php(1096): Illuminate\Console\Command->run()
#51 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#52 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#53 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\Component\Console\Application->run()
#54 /home/ttgroupi/public_html/invoices/artisan(37): Illuminate\Foundation\Console\Kernel->handle()
#55 {main}
I really appreciate your help, thank you.
hillel
June 22, 2025, 2:23pm
4
I suggest trying to increase the timeout value
I’m not aware of any changes, you could try disabling the queue by chaning to sync
in the .env file
Hi Hillel
Thank you so much, by setting the queue to sync, I could at least import the clients, and send the email. At least it is working.
I there perhaps any other suggestions you have, as to what I should look at to fix the queue? It is such an odd thing to suddenly stop working.
Thank you so much for what you did so far. At least the system works in manual mode.
hillel
June 22, 2025, 3:55pm
6
Maybe there were changes by your webhost to limit the length of requests?
I will contact my web host, but today I tried to send one email, and import one client at one stage, and it would not work, so I cannot think that the timeout would be an issue.
I cannot think a reinstallation would help, and today I upgraded from a quite recent, to the most recent version available on softaculous.
Furthermore, I will further scour the forum to find an answer, and try everything.
If there are any possible answers, I will appreciate it, and I will try everything because I am very dependent on this software, and I really like using it.
Thank you for all your help.
hillel
June 22, 2025, 6:17pm
8
What error are you seeing when trying to send an email?
The emails are just not being sent, and the import of the client does not happen. The error logs I attached at the end of this message.
Current situation:
Previous error logs displayed as follows:
Illuminate\Queue\TimeoutExceededException: App\Jobs\Invoice\ZipInvoices has timed out. in /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/TimeoutExceededException.php:15
Stack trace:
#0 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(796): Illuminate\Queue\TimeoutExceededException::forJob()
#1 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(217): Illuminate\Queue\Worker->timeoutExceededException()
#2 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(595): Illuminate\Queue\Worker->Illuminate\Queue{closure}()
#3 [internal function]: GuzzleHttp\Handler\CurlFactory::GuzzleHttp\Handler{closure}()
#4 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(44): curl_exec()
#5 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke()
#6 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(48): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#7 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(64): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#8 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke()
#9 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(71): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#10 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\RedirectMiddleware->__invoke()
#11 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp{closure}()
#12 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Client.php(333): GuzzleHttp\HandlerStack->__invoke()
#13 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Client.php(169): GuzzleHttp\Client->transfer()
#14 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Client->requestAsync()
#15 /home/ttgroupi/public_html/invoices/vendor/guzzlehttp/guzzle/src/ClientTrait.php(95): GuzzleHttp\Client->request()
#16 /home/ttgroupi/public_html/invoices/app/Utils/HostedPDF/NinjaPdf.php(28): GuzzleHttp\Client->post()
#17 /home/ttgroupi/public_html/invoices/app/Services/Pdf/PdfService.php(167): App\Utils\HostedPDF\NinjaPdf->build()
#18 /home/ttgroupi/public_html/invoices/app/Services/Pdf/PdfService.php(92): App\Services\Pdf\PdfService->resolvePdfEngine()
#19 /home/ttgroupi/public_html/invoices/app/Jobs/Entity/CreateRawPdf.php(106): App\Services\Pdf\PdfService->getPdf()
#20 /home/ttgroupi/public_html/invoices/app/Services/Invoice/InvoiceService.php(194): App\Jobs\Entity\CreateRawPdf->handle()
#21 /home/ttgroupi/public_html/invoices/app/Jobs/Invoice/ZipInvoices.php(74): App\Services\Invoice\InvoiceService->getRawInvoicePdf()
#22 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Jobs\Invoice\ZipInvoices->handle()
#23 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#24 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#25 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#26 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#27 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\Container\Container->call()
#28 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}()
#29 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#30 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#31 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\Bus\Dispatcher->dispatchNow()
#32 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue{closure}()
#33 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#34 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\Pipeline\Pipeline->then()
#35 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware()
#36 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(102): Illuminate\Queue\CallQueuedHandler->call()
#37 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(439): Illuminate\Queue\Jobs\Job->fire()
#38 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(389): Illuminate\Queue\Worker->process()
#39 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(176): Illuminate\Queue\Worker->runJob()
#40 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(138): Illuminate\Queue\Worker->daemon()
#41 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(121): Illuminate\Queue\Console\WorkCommand->runWorker()
#42 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#43 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#44 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#45 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#46 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#47 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#48 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute()
#49 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Console/Command.php(181): Symfony\Component\Console\Command\Command->run()
#50 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Application.php(1096): Illuminate\Console\Command->run()
#51 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#52 /home/ttgroupi/public_html/invoices/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#53 /home/ttgroupi/public_html/invoices/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\Component\Console\Application->run()
#54 /home/ttgroupi/public_html/invoices/artisan(37): Illuminate\Foundation\Console\Kernel->handle()
#55 {main}
Thank you for helping.
hillel
June 22, 2025, 7:13pm
10
I suggest checking storage/logs and the web server error logs
Hi Hillel
I finally figured out what was wrong, and could get my cron job going again with QUEUE_CONNECTION=database. The server php version changed, and I had to change it in the cron jobs as well. It changed from php 8.1 to 8.3
cd /home/user/public_html/subdomain
&& /opt/alt/php83/usr/bin/php -d register_argc_argv=On artisan
queue:work --stop-when-empty
previously it said:
cd /home/user/public_html/subdomain
&& /opt/alt/php81/usr/bin/php -d register_argc_argv=On artisan
queue:work --stop-when-empty
Thank you again to Hillel for all your help.
hillel
June 25, 2025, 11:50am
12
Awesome, thanks for sharing the solution!