lephleg/laravel-lumen-docker

Supervisor seems to have issues

jking6884 opened this issue · 4 comments

When running docker-compose up I am seeing this issue (screenshot below) with supervisor spawning and exiting nginx and php-fpm until it gives up

image

If I docker exec into the app container, both nginx and php-fpm seem to be running.

However, if I try to run:
php artisan migrate --seed

I get this error:

image

Didn't know if you had any insight on the issue that could be occurring.

I just needed to change 127.0.0.1 to 'mysql' in the .env file

image

Does anyone know if the supervisor issue here is normal?

image

Hey @jking6884,

Those warnings are by no means fatal, as they don't affect the actual execution as you have already confirmed.

They are produced cause both services are executed using their daemon/background modes. Those states do not return the expected exit codes for the supervisor to verify they are running. So supervisor tries to restart them as it is considering them stuck until it exhausts its maximum attempts and finally gives up.

I fixed this by switching both services to be executed in their foreground mode. You can fetch the latest changes and rebuild your app image in order to keep your logs clean of those warnings.

@lephleg

Awesome. Thanks for pushing that out so quickly.