cachethq / Docker

A Dockerized version of Cachet.
https://cachethq.io
BSD 3-Clause "New" or "Revised" License
416 stars 280 forks source link

docker:latest can't start #401

Closed apinter closed 8 months ago

apinter commented 3 years ago

Hi,

Trying to get the latest built image running with Podman, but for some reason I can't get it to work. Tried multiple versions already and I seem to get the same error with every version:

Initializing Cachet container ...
Attempting to connect to database ...

Table sessions exists! ...
Nothing to migrate.
Database seeding completed successfully.
Starting Cachet! ...
Configuration cache cleared!
Configuration cached successfully!
2021-02-12 18:20:09,526 WARN For [program:queue-worker], AUTO logging used for stderr_logfile without rollover, set maxbytes > 0 to avoid filling up filesystem unintentionally
2021-02-12 18:20:09,527 INFO supervisord started with pid 74
2021-02-12 18:20:10,530 INFO spawned: 'nginx' with pid 76
2021-02-12 18:20:10,532 INFO spawned: 'php-fpm' with pid 77
2021-02-12 18:20:10,535 INFO spawned: 'queue-worker' with pid 78
[12-Feb-2021 18:20:10] ERROR: Unable to create the PID file (/tmp/php-fpm.pid).: Permission denied (13)
[12-Feb-2021 18:20:10] ERROR: Unable to create the PID file (/tmp/php-fpm.pid).: Permission denied (13)
[12-Feb-2021 18:20:10] ERROR: FPM initialization failed
[12-Feb-2021 18:20:10] ERROR: FPM initialization failed
2021-02-12 18:20:10,560 INFO exited: php-fpm (exit status 78; not expected)
2021-02-12 18:20:11,561 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-02-12 18:20:11,563 INFO spawned: 'php-fpm' with pid 97
2021-02-12 18:20:11,564 INFO success: queue-worker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[12-Feb-2021 18:20:11] ERROR: Unable to create the PID file (/tmp/php-fpm.pid).: Permission denied (13)
[12-Feb-2021 18:20:11] ERROR: Unable to create the PID file (/tmp/php-fpm.pid).: Permission denied (13)
[12-Feb-2021 18:20:11] ERROR: FPM initialization failed
[12-Feb-2021 18:20:11] ERROR: FPM initialization failed
2021-02-12 18:20:11,592 INFO exited: php-fpm (exit status 78; not expected)
2021-02-12 18:20:13,596 INFO spawned: 'php-fpm' with pid 98
[12-Feb-2021 18:20:13] ERROR: Unable to create the PID file (/tmp/php-fpm.pid).: Permission denied (13)
[12-Feb-2021 18:20:13] ERROR: Unable to create the PID file (/tmp/php-fpm.pid).: Permission denied (13)
[12-Feb-2021 18:20:13] ERROR: FPM initialization failed
[12-Feb-2021 18:20:13] ERROR: FPM initialization failed
2021-02-12 18:20:13,625 INFO exited: php-fpm (exit status 78; not expected)
2021-02-12 18:20:16,631 INFO spawned: 'php-fpm' with pid 100
[12-Feb-2021 18:20:16] ERROR: Unable to create the PID file (/tmp/php-fpm.pid).: Permission denied (13)
[12-Feb-2021 18:20:16] ERROR: Unable to create the PID file (/tmp/php-fpm.pid).: Permission denied (13)
[12-Feb-2021 18:20:16] ERROR: FPM initialization failed
[12-Feb-2021 18:20:16] ERROR: FPM initialization failed
2021-02-12 18:20:16,659 INFO exited: php-fpm (exit status 78; not expected)
2021-02-12 18:20:17,660 INFO gave up: php-fpm entered FATAL state, too many start retries too quickly

Postgres and Cachet are both running in the same pod and cachet can connect with psql on 127.0.0.1. Any ideas what can go wrong?

podman pod create --name cachet -p 8000:8000
podman run -d --name cachet-www2 --pod cachet -e APP_KEY=base64:801Ow41m+hCoHSHTxJzslpU7GEUb5iqtGbJdIrI4Dxs= -e DB_DRIVER=pgsql -e DB_HOST=127.0.0.1 -e DB_DATABASE=postgres -e DB_USERNAME=postgres -e DB_PASSWORD=postgres -d cachethq/docker:latest
podman run -d --name cachet-www --pod cachet -e DB_DRIVER=pgsql -e DB_HOST=127.0.0.1 -e DB_DATABASE=postgres -e DB_USERNAME=postgres -e DB_PASSWORD=postgres -d cachethq/docker:latest