From a907b71b7bace7eecd8aaf41c0db6eb249a3210a Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 22 Sep 2026 15:45:49 +0200 Subject: [PATCH] immich: keep geodata linked and the build deps present on update The update wipes $APP_DIR before redeploying, which takes the geodata symlink the install created with it, and never puts it back. The app then finds no reverse-geocoding data and the web UI does not come up. The library recompile assumes headers that only reached the install list later, so a container built before that fails at the first missing one - LCMS2 in the reported case. --- ct/immich.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ct/immich.sh b/ct/immich.sh index 5e48333e5..529b21b2e 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -105,9 +105,7 @@ EOF libraries=("libjxl" "jpegli" "libheif" "libraw" "imagemagick" "libvips") cd "$BASE_DIR" msg_warn "Checking for updates to custom image-processing libraries (recompile time: 2-15min per library)" - # Containers built before these landed in the install list have none of - # them, and the recompile below fails on the first missing header. - $STD apt install -y liblcms2-dev libjpeg62-turbo-dev libspng-dev libexif-dev + ensure_dependencies liblcms2-dev libjpeg62-turbo-dev libspng-dev libexif-dev $STD git pull for library in "${libraries[@]}"; do compile_"$library" @@ -195,8 +193,6 @@ EOF export SHARP_FORCE_GLOBAL_LIBVIPS=true $STD pnpm --dir "$APP_DIR/node_modules/sharp" exec npm run build - # The rm -rf above took the geodata symlink with it. Without it the app - # finds no reverse-geocoding data and the web UI never comes up. ln -sfn "$GEO_DIR" "$APP_DIR/geodata" # Patch helmet.json: disable upgrade-insecure-requests for HTTP access