[2Kimmich-machine-learning  | [2;36m[09/30/26 19:18:54][0m[2;36m [0m[34mINFO    [0m Starting gunicorn [1;36m25.3[0m.[1;36m0[0m                           
[2Kimmich-machine-learning  | [2;36m[09/30/26 19:18:54][0m[2;36m [0m[34mINFO    [0m Listening at: [4;94mhttp://[0m[1m[[0m::[1m][0m:[1;36m3003[0m [1m([0m[1;36m13[0m[1m)[0m                
[2Kimmich-machine-learning  | [2;36m[09/30/26 19:18:54][0m[2;36m [0m[34mINFO    [0m Using worker: immich_ml.config.CustomUvicornWorker 
[2Kimmich-machine-learning  | [2;36m[09/30/26 19:18:54][0m[2;36m [0m[34mINFO    [0m Booting worker with pid: [1;36m19[0m                        
[2Kimmich-machine-learning  | [2;36m[09/30/26 19:18:57][0m[2;36m [0m[34mINFO    [0m Started server process [1m[[0m[1;36m19[0m[1m][0m                        
[2Kimmich-machine-learning  | [2;36m[09/30/26 19:18:57][0m[2;36m [0m[34mINFO    [0m Waiting for application startup.                   
[2Kimmich-machine-learning  | [2;36m[09/30/26 19:18:57][0m[2;36m [0m[34mINFO    [0m Created in-memory cache with unloading after 300s  
[2Kimmich-machine-learning  | [2;36m                    [0m         of inactivity.                                     
[2Kimmich-machine-learning  | [2;36m[09/30/26 19:18:57][0m[2;36m [0m[34mINFO    [0m Initialized request thread pool with [1;36m8[0m threads.    
[2Kimmich-machine-learning  | [2;36m[09/30/26 19:18:57][0m[2;36m [0m[34mINFO    [0m Application startup complete.                      
[2Kimmich-server            | Killing api process
[2Kimmich-server            | Initializing Immich v3.0.3
[2Kimmich-server            | Detected CPU Cores: 8
[2Kimmich-server            | (node:7) ExperimentalWarning: WASI is an experimental feature and might change at any time
[2Kimmich-server            | (Use `node --trace-warnings ...` to show where the warning was created)
[2K[2Kimmich-redis             | 1:C 30 Sep 2026 19:18:52.334 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
immich-server            | Starting api worker
[2Kimmich-redis             | 1:C 30 Sep 2026 19:18:52.334 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
[2Kimmich-redis             | 1:C 30 Sep 2026 19:18:52.334 * Redis version=7.4.11, bits=64, commit=00000000, modified=0, pid=1, just started
[2Kimmich-redis             | 1:C 30 Sep 2026 19:18:52.334 * Configuration loaded
[2Kimmich-redis             | 1:M 30 Sep 2026 19:18:52.335 * monotonic clock: POSIX clock_gettime
[2Kimmich-redis             | 1:M 30 Sep 2026 19:18:52.337 * Running mode=standalone, port=6379.
[2Kimmich-redis             | 1:M 30 Sep 2026 19:18:52.337 * Server initialized
[2Kimmich-redis             | 1:M 30 Sep 2026 19:18:52.341 * Creating AOF base file appendonly.aof.1.base.rdb on server start
[2Kimmich-redis             | 1:M 30 Sep 2026 19:18:52.348 * Creating AOF incr file appendonly.aof.1.incr.aof on server start
[2Kimmich-redis             | 1:M 30 Sep 2026 19:18:52.348 * Ready to accept connections tcp
[2Kimmich-redis             | 1:M 30 Sep 2026 19:23:53.011 * 100 changes in 300 seconds. Saving...
[2Kimmich-server            | Starting microservices worker
[2Kimmich-redis             | 1:M 30 Sep 2026 19:23:53.012 * Background saving started by pid 190
[2Kimmich-redis             | 190:C 30 Sep 2026 19:23:53.019 * DB saved on disk
[2Kimmich-redis             | 190:C 30 Sep 2026 19:23:53.020 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
[2Kimmich-redis             | 1:M 30 Sep 2026 19:23:53.113 * Background saving terminated with success
[2Kimmich-redis             | 1:M 30 Sep 2026 19:28:54.051 * 100 changes in 300 seconds. Saving...
[2Kimmich-redis             | 1:M 30 Sep 2026 19:28:54.052 * Background saving started by pid 371
[2Kimmich-redis             | 371:C 30 Sep 2026 19:28:54.062 * DB saved on disk
[2Kimmich-server            | (node:7) ExperimentalWarning: WASI is an experimental feature and might change at any time
[2Kimmich-server            | (Use `node --trace-warnings ...` to show where the warning was created)
[2Kimmich-server            | (node:29) ExperimentalWarning: WASI is an experimental feature and might change at any time
[2Kimmich-server            | (Use `node --trace-warnings ...` to show where the warning was created)
[2Kimmich-server            | [32m[Nest] 7  - [39m09/30/2026, 7:32:29 PM [32m    LOG[39m [33m[Microservices:WebsocketRepository][39m [32mInitialized websocket server[39m
[2Kimmich-server            | [32m[Nest] 7  - [39m09/30/2026, 7:32:29 PM [32m    LOG[39m [33m[Microservices:DatabaseRepository][39m [32mtargetLists=1, current=1 for clip_index of 0 rows[39m
[2Kimmich-server            | [32m[Nest] 7  - [39m09/30/2026, 7:32:29 PM [32m    LOG[39m [33m[Microservices:DatabaseRepository][39m [32mtargetLists=1, current=1 for face_index of 0 rows[39m
[2Kimmich-server            | [32m[Nest] 7  - [39m09/30/2026, 7:32:29 PM [32m    LOG[39m [33m[Microservices:DatabaseRepository][39m [32mRunning migrations[39m
[2K[2Kimmich-server            | [31m[Nest] 7  - [39m09/30/2026, 7:32:29 PM [31m  ERROR[39m [33m[Microservices:DatabaseRepository][39m [31mMigrations failed: Error: corrupted migrations: previously executed migration 1784647658615-AddOAuthBearerTokenToSession is missing[39m
[2Kimmich-server            | Error: corrupted migrations: previously executed migration 1784647658615-AddOAuthBearerTokenToSession is missing
[2Kimmich-server            |     at #ensureNoMissingMigrations (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/migration/migrator.js:495:23)
[2K[2Kimmich-server            |     at #getState (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/migration/migrator.js:447:40)
[2Kimmich-server            |     at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
immich-redis             | 371:C 30 Sep 2026 19:28:54.063 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
immich-postgres          | initdb: hint: 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.
[2Kimmich-postgres          | 2026-09-30 17:18:53.381 GMT [48] LOG:  skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf"
[2Kimmich-postgres          | 2026-09-30 17:18:53.382 GMT [48] LOG:  skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf"
[2Kimmich-postgres          | waiting for server to start....2026-09-30 17:18:53.429 GMT [53] LOG:  skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf"
[2Kimmich-postgres          | 2026-09-30 17:18:53.430 GMT [53] LOG:  skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf"
[2Kimmich-postgres          | 2026-09-30 19:18:53.479 CEST [53] LOG:  starting PostgreSQL 16.10 (Debian 16.10-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit
[2Kimmich-postgres          | 2026-09-30 19:18:53.486 CEST [53] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
[2Kimmich-redis             | 1:M 30 Sep 2026 19:28:54.153 * Background saving terminated with success
[2Kimmich-postgres          | 2026-09-30 19:18:53.506 CEST [56] LOG:  database system was shut down at 2026-09-30 19:18:53 CEST
[2Kimmich-postgres          | 2026-09-30 19:18:53.519 CEST [53] LOG:  database system is ready to accept connections
[2Kimmich-postgres          |  done
[2Kimmich-postgres          | server started
[2Kimmich-postgres          | CREATE DATABASE
[2Kimmich-postgres          | 
[2Kimmich-postgres          | 
[2Kimmich-postgres          | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
[2Kimmich-postgres          | 
[2Kimmich-postgres          | waiting for server to shut down...2026-09-30 19:18:53.959 CEST [53] LOG:  received fast shutdown request
[2Kimmich-postgres          | .2026-09-30 19:18:53.964 CEST [53] LOG:  aborting any active transactions
[2Kimmich-postgres          | 2026-09-30 19:18:53.970 CEST [53] LOG:  background worker "logical replication launcher" (PID 62) exited with exit code 1
[2Kimmich-server            |     at async run (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/migration/migrator.js:417:31)
[2Kimmich-server            |     at async /usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/kysely.js:578:32
[2Kimmich-server            |     at async DefaultConnectionProvider.provideConnection (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)
[2Kimmich-server            |     at async #migrate (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/migration/migrator.js:273:20)
[2K[2Kimmich-postgres          | 2026-09-30 19:18:53.971 CEST [54] LOG:  shutting down
[2Kimmich-postgres          | 2026-09-30 19:18:53.974 CEST [54] LOG:  checkpoint starting: shutdown immediate
immich-server            |     at async DatabaseRepository.runMigrations (/usr/src/app/server/dist/repositories/database.repository.js:324:36)
[2Kimmich-server            |     at async /usr/src/app/server/dist/services/database.service.js:103:17
[2Kimmich-server            |     at async /usr/src/app/server/dist/repositories/database.repository.js:376:27
[2Kimmich-server            | microservices worker error: Error: corrupted migrations: previously executed migration 1784647658615-AddOAuthBearerTokenToSession is missing, stack: Error: corrupted migrations: previously executed migration 1784647658615-AddOAuthBearerTokenToSession is missing
[2Kimmich-server            |     at #ensureNoMissingMigrations (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/migration/migrator.js:495:23)
[2Kimmich-server            |     at #getState (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/migration/migrator.js:447:40)
[2Kimmich-server            |     at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
[2Kimmich-server            |     at async run (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/migration/migrator.js:417:31)
[2Kimmich-server            |     at async /usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/kysely.js:578:32
[2Kimmich-server            |     at async DefaultConnectionProvider.provideConnection (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)
[2Kimmich-server            |     at async #migrate (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.17/node_modules/kysely/dist/cjs/migration/migrator.js:273:20)
[2Kimmich-postgres          | 2026-09-30 19:18:54.069 CEST [54] LOG:  checkpoint complete: wrote 922 buffers (1.4%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.035 s, sync=0.048 s, total=0.098 s; sync files=301, longest=0.017 s, average=0.001 s; distance=1672 kB, estimate=1672 kB; lsn=0/18CED10, redo lsn=0/18CED10
[2Kimmich-postgres          | 2026-09-30 19:18:54.092 CEST [53] LOG:  database system is shut down
[2Kimmich-postgres          |  done
[2Kimmich-postgres          | server stopped
[2Kimmich-server            |     at async DatabaseRepository.runMigrations (/usr/src/app/server/dist/repositories/database.repository.js:324:36)
[2Kimmich-server            |     at async /usr/src/app/server/dist/services/database.service.js:103:17
[2Kimmich-server            |     at async /usr/src/app/server/dist/repositories/database.repository.js:376:27
[2Kimmich-server            | microservices worker exited with code 1
[2Kimmich-server            | Killing api process
[2Kimmich-postgres          | 
[2Kimmich-postgres          | PostgreSQL init process complete; ready for start up.
[2Kimmich-postgres          | 
[2Kimmich-postgres          | 2026-09-30 17:18:54.182 GMT [1] LOG:  skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf"
[2Kimmich-postgres          | 2026-09-30 17:18:54.182 GMT [1] LOG:  skipping missing configuration file "/var/lib/postgresql/data/postgresql.override.conf"
[2Kimmich-postgres          | 2026-09-30 19:18:54.225 CEST [1] LOG:  starting PostgreSQL 16.10 (Debian 16.10-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit
[2Kimmich-postgres          | 2026-09-30 19:18:54.225 CEST [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
[2Kimmich-postgres          | 2026-09-30 19:18:54.225 CEST [1] LOG:  listening on IPv6 address "::", port 5432
[2Kimmich-postgres          | 2026-09-30 19:18:54.232 CEST [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
[2Kimmich-postgres          | 2026-09-30 19:18:54.244 CEST [72] LOG:  database system was shut down at 2026-09-30 19:18:54 CEST
[2Kimmich-postgres          | 2026-09-30 19:18:54.259 CEST [1] LOG:  database system is ready to accept connections
[2Kimmich-postgres          | 2026-09-30 19:19:07.602 CEST [95] ERROR:  relation "system_metadata" does not exist at character 21
[2Kimmich-postgres          | 2026-09-30 19:19:07.602 CEST [95] STATEMENT:  select "value" from "system_metadata" where "key" = $1
[2Kimmich-postgres          | 2026-09-30 19:23:54.345 CEST [70] LOG:  checkpoint starting: time
[2Kimmich-postgres          | 2026-09-30 19:28:24.197 CEST [70] LOG:  checkpoint complete: wrote 16951 buffers (25.9%); 0 WAL file(s) added, 0 removed, 16 recycled; write=269.713 s, sync=0.077 s, total=269.853 s; sync files=769, longest=0.007 s, average=0.001 s; distance=269095 kB, estimate=269095 kB; lsn=0/11F98B70, redo lsn=0/11F98B38