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

Rediska's avatar

Why does Supervisor give an error with NGINX PHP?

I am running a project with Laravel. I use Dokploy, Docker, Nginx, PHP 7.4. From time to time there is a high load on the server. I checked the logs and see the following errors:

2024-11-28 05:25:55,583 INFO exited: laravel-queue_04 (exit status 1; not expected)
2024-11-28 05:25:55,595 INFO spawned: 'laravel-queue_03' with pid 1119923
2024-11-28 05:25:55,598 INFO spawned: 'laravel-queue_04' with pid 1119924
2024-11-28 05:25:56,437 INFO success: laravel-queue_00 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-11-28 05:25:56,437 INFO success: laravel-queue_02 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-11-28 05:25:56,552 INFO success: laravel-queue_01 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

The Supervisor.conf file has the following set:

The Dockerfile file has the following set:

What am I doing wrong and what needs to be corrected?

0 likes
1 reply
JussiMannisto's avatar

You say you're running PHP 7.4, but the program name in Supervisor is php8-fpm, indicating version 8. Which one is it? The newest versions of Laravel don't work with 7.4.

You get an unexpected exit status from one of the queue workers. Have you checked their logs at /var/log/nginx/worker.log?

Ps. Nginx is the web server software. Queue workers are run from the command line and don't use Nginx at all.

Please or to participate in this conversation.