Using SSD storage chmod: changing permissions of '/var/run/postgresql': Operation not permitted The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale "en_US.utf8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are enabled. fixing permissions on existing directory /var/lib/postgresql/data ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Etc/UTC creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok initdb: warning: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. syncing data to disk ... ok Success. You can now start the database server using: pg_ctl -D /var/lib/postgresql/data -l logfile start 2025-10-02 23:13:44.427 GMT [60] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf" 2025-10-02 23:13:44.428 GMT [60] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf" waiting for server to start....2025-10-02 23:13:44.550 GMT [65] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf" 2025-10-02 23:13:44.551 GMT [65] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf" 2025-10-02 23:13:45.217 UTC [65] LOG: starting PostgreSQL 14.19 (Debian 14.19-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit 2025-10-02 23:13:45.460 UTC [65] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" .2025-10-02 23:13:46.414 UTC [66] LOG: database system was shut down at 2025-10-02 23:13:39 UTC .2025-10-02 23:13:47.026 UTC [65] LOG: database system is ready to accept connections done server started 2025-10-02 23:13:48.225 UTC [92] FATAL: database "immich" does not exist 2025-10-02 23:13:48.330 UTC [94] FATAL: database "immich" does not exist 2025-10-02 23:13:53.460 UTC [106] FATAL: database "immich" does not exist 2025-10-02 23:13:53.512 UTC [108] FATAL: database "immich" does not exist CREATE DATABASE /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/* 2025-10-02 23:13:58.221 UTC [65] LOG: received fast shutdown request waiting for server to shut down....2025-10-02 23:13:58.459 UTC [65] LOG: aborting any active transactions 2025-10-02 23:13:58.464 UTC [65] LOG: background worker "logical replication launcher" (PID 73) exited with exit code 1 2025-10-02 23:13:58.467 UTC [68] LOG: shutting down 2025-10-02 23:13:58.748 UTC [121] FATAL: the database system is shutting down .2025-10-02 23:13:59.975 UTC [65] LOG: database system is shut down done server stopped PostgreSQL init process complete; ready for start up. 2025-10-02 23:14:00.071 GMT [1] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf" 2025-10-02 23:14:00.072 GMT [1] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf" 2025-10-02 23:14:00.532 UTC [1] LOG: starting PostgreSQL 14.19 (Debian 14.19-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit 2025-10-02 23:14:00.532 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 2025-10-02 23:14:00.532 UTC [1] LOG: listening on IPv6 address "::", port 5432 2025-10-02 23:14:01.010 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2025-10-02 23:14:01.465 UTC [123] LOG: database system was shut down at 2025-10-02 23:13:59 UTC 2025-10-02 23:14:01.715 UTC [1] LOG: database system is ready to accept connections