Replies: 11 comments 3 replies
-
It can't reach postgres. Please post the postgres container logs, as well as your compose and .env files. |
Beta Was this translation helpful? Give feedback.
-
2025-03-29 19:50:44.957 UTC [1] LOG: received fast shutdown request 2025-03-29 19:51:21.530 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 2025-03-29 20:02:54.654 UTC [1] LOG: starting PostgreSQL 14.17 (Debian 14.17-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 2025-03-29 20:17:35.534 UTC [1] LOG: starting PostgreSQL 14.17 (Debian 14.17-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 2025-03-29 21:19:53.360 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 |
Beta Was this translation helpful? Give feedback.
-
You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variablesThe location where your uploaded files are storedUPLOAD_LOCATION=./library The location where your database files are storedDB_DATA_LOCATION=./pgdata To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#ListTZ=Etc/UTCThe Immich version to use. You can pin this to a specific version like "v1.71.0"IMMICH_VERSION=release Connection secret for postgres. You should change it to a random passwordDB_PASSWORD=password The values below this line do not need to be changed################################################################################### WARNING: Make sure to use the docker-compose.yml of the current release:https://github.com/immich-app/immich/releases/latest/download/docker-compose.ymlThe compose file on main may not be compatible with the latest release.name: immich services: immich-machine-learning: redis: database: |
Beta Was this translation helpful? Give feedback.
-
Your database is corrupted. |
Beta Was this translation helpful? Give feedback.
-
Going back to 1.127.0 makes it work perfectly. Can you explain why that is the case? |
Beta Was this translation helpful? Give feedback.
-
Any way I can fix the DB do that I can upgrade? |
Beta Was this translation helpful? Give feedback.
-
It is on a synology nas and there was a sudden power loss 2 weeks ago. did a complete backup and restore, this is the log of the new DB after being freshly restored 2025-03-30 15:27:15.518 UTC [50] LOG: starting PostgreSQL 14.17 (Debian 14.17-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 2025-03-30 15:27:20.456 UTC [1] LOG: starting PostgreSQL 14.17 (Debian 14.17-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 2025-03-30 16:03:32.343 UTC [1] LOG: starting PostgreSQL 14.17 (Debian 14.17-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit |
Beta Was this translation helpful? Give feedback.
-
With |
Beta Was this translation helpful? Give feedback.
-
2025-03-30 16:19:33.616 UTC [1] LOG: starting PostgreSQL 14.17 (Debian 14.17-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit |
Beta Was this translation helpful? Give feedback.
-
Have you tried setting DB_HOSTNAME on immich_server? I had a very similar issue and I found out this variable is not set on the official .env file you get from the installation guide, I set mine to immich_postgres and now it works :) |
Beta Was this translation helpful? Give feedback.
-
I have this error now as well and my server does not allow me to open the webpage
immich_server | Initializing Immich v1.130.3
immich_server | Detected CPU Cores: 4
immich_server | Starting api worker
immich_server | Starting microservices worker
immich_server | [Nest] 6 - 03/29/2025, 8:17:53 PM LOG [Microservices:EventRepository] Initialized websocket server
immich_server | microservices worker error: TypeError: Cannot read properties of undefined (reading 'replace'), stack: TypeError: Cannot read properties of undefined (reading 'replace')
immich_server | at queryError (/usr/src/app/node_modules/postgres/cjs/src/connection.js:389:48)
immich_server | microservices worker exited with code 1
immich_server | Killing api process
immich_server exited with code 0
It is working when going back to v1.127.0
What else can I provide you to help debug
Beta Was this translation helpful? Give feedback.
All reactions