after update immich from v1.115.0 to v1.120.1 docker is unable to start with Invalid URL that because 1.115 tolerate absense of http:// or https:// prefix, but for v1.120.1 that is fatal error
So we need to roll-back 1.115.0 to update this setting.
immich.example.com should be replaced with https://immich.example.com
Initializing Immich v1.120.1 Detected CPU Cores: 4 Starting api worker Starting microservices worker (node:7) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead. (Use `node --trace-deprecation ...` to show where the warning was created) (node:17) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead. (Use `node --trace-deprecation ...` to show where the warning was created) (node:7) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead. (Use `node --trace-deprecation ...` to show where the warning was created) [Nest] 7 - 11/10/2024, 8:17:50 PM LOG [Microservices:EventRepository] Initialized websocket server [Nest] 7 - 11/10/2024, 8:17:50 PM LOG [Microservices:MetadataService] Bootstrapping metadata service [Nest] 7 - 11/10/2024, 8:17:50 PM LOG [Microservices:MetadataService] Initializing metadata service [Nest] 7 - 11/10/2024, 8:17:50 PM LOG [Microservices:MapRepository] Initializing metadata repository [Nest] 17 - 11/10/2024, 8:17:50 PM LOG [Api:EventRepository] Initialized websocket server [Nest] 17 - 11/10/2024, 8:17:50 PM ERROR [Api:An instance of SystemConfigDto has failed the validation: - property server.externalDomain has failed the following constraints: isUrl ] Validation error TypeError: Invalid URL at new URL (node:internal/url:816:29) at buildConfig (/usr/src/app/dist/utils/config.js:118:40) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async /usr/src/app/dist/utils/config.js:53:26 { code: 'ERR_INVALID_URL', input: 'immich.example.com' } api worker exited with code 1 |
Use already existed previous iamge, if not purged yet
root@200:~/immich-app# docker images --digests REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE ghcr.io/immich-app/immich-server release sha256:4193f3cc99bb4d99f53007f07d45e2efbcd531f4e81a765470b2cce433f33131 8fde224bdb23 3 days ago 2.04GB ghcr.io/immich-app/immich-server <none> sha256:544fcfc41ce97833e33126e5041fb3b821e3db7bf405b54ac06689247a170a90 77516c9b0412 8 weeks ago 2.12GB |
we can rollback to it
#get old immich hash docker images --digests # replace release with old image hash (and old port mapping 2283:3001) vi docker-compose.yml # Restart old (1.115.0) version docker compose down docker compose up -d # change setting from immich web # reverse the changes vi docker-compose.yml docker compose down docker compose up -d |
image: ghcr.io/immich-app/immich-server:release@sha256:544fcfc41ce97833e33126e5041fb3b821e3db7bf405b54ac06689247a170a90 #${IMMICH_VERSION:-release} extends: file: hwaccel.transcoding.yml service: quicksync # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - /docker/nextcloud/var/www/html:/nextcloud:ro env_file: - .env ports: - 2283:3001 |
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} extends: file: hwaccel.transcoding.yml service: quicksync # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - /docker/nextcloud/var/www/html:/nextcloud:ro env_file: - .env ports: - 2283:2283 |