EliasGabr
EliasGabr
IImmich
Created by EliasGabr on 1/19/2025 in #help-desk-support
immich database shuts down immediately after a system reboot
hello, when i reboot my computer the immich server doesnt work until i restart the docker compose using docker-compose up -d although it is setup to autorestart unless stopped. In the logs i found that the immich database restarts as soon as the computer boots. I have linked a log of the database container from the start of the computer until the container stops itself. and this is a log file when i do a docker-compose up -d
immich_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
immich_postgres |
immich_postgres | 2025-01-19 15:52:08.367 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
immich_postgres | 2025-01-19 15:52:08.369 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
immich_postgres | 2025-01-19 15:52:08.370 UTC [1] LOG: could not create IPv6 socket for address "::": Address family not supported by protocol
immich_postgres | 2025-01-19 15:52:08.377 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
immich_postgres | 2025-01-19 15:52:08.384 UTC [27] LOG: database system was shut down at 2025-01-19 15:33:52 UTC
immich_postgres | [2025-01-19T15:52:08Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
immich_postgres | [2025-01-19T15:52:08Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
immich_postgres | 2025-01-19 15:52:08.404 UTC [1] LOG: database system is ready to accept connections
immich_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
immich_postgres |
immich_postgres | 2025-01-19 15:52:08.367 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
immich_postgres | 2025-01-19 15:52:08.369 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
immich_postgres | 2025-01-19 15:52:08.370 UTC [1] LOG: could not create IPv6 socket for address "::": Address family not supported by protocol
immich_postgres | 2025-01-19 15:52:08.377 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
immich_postgres | 2025-01-19 15:52:08.384 UTC [27] LOG: database system was shut down at 2025-01-19 15:33:52 UTC
immich_postgres | [2025-01-19T15:52:08Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
immich_postgres | [2025-01-19T15:52:08Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
immich_postgres | 2025-01-19 15:52:08.404 UTC [1] LOG: database system is ready to accept connections
I have also setup that docker starts after 60 seconds after system boot, so definetly no race condition. So the problem is that i dont know where this shutdown request comes from. and i was hoping someone has an idea.
59 replies