From 7dbdc713bd06b7d577abe968e03de97dcfd56ad0 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Fri, 9 Oct 2026 08:09:40 +0200 Subject: [PATCH] Immich: point immich-ml at the moved ml_start.sh and clear failed units The update moves ml_start.sh into app/machine-learning, but only rewrote immich-web's ExecStart, so older containers kept starting ML from /opt/immich/ml_start.sh and failed with 203/EXEC. Rewrite immich-ml the same way. A crash loop before the update can also leave both units rate-limited, which makes the final restart fail; reset them first. --- ct/immich.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ct/immich.sh b/ct/immich.sh index f9524ccdc..eeeef4148 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -353,6 +353,10 @@ EOF sed -i "s|^ExecStart=.*|ExecStart=${APP_DIR}/bin/start.sh|" /etc/systemd/system/immich-web.service systemctl daemon-reload fi + if grep -q "^ExecStart=${INSTALL_DIR}/ml_start.sh" /etc/systemd/system/immich-ml.service; then + sed -i "s|^ExecStart=.*|ExecStart=${ML_DIR}/ml_start.sh|" /etc/systemd/system/immich-ml.service + systemctl daemon-reload + fi # MickLesk temporary patch for HEIC thumbnail gen MEDIA_REPO_JS="/opt/immich/app/dist/repositories/media.repository.js" @@ -374,6 +378,8 @@ EOF $STD cd - msg_ok "Disabled Maintenance Mode" fi + # A crash loop before the update leaves the units rate-limited, and restart would refuse. + systemctl reset-failed immich-ml immich-web 2>/dev/null || true if [[ "${ML_FAILED:-0}" == 1 ]]; then systemctl restart immich-web || true [[ -f /etc/systemd/system/immich-proxy.service ]] && systemctl restart immich-proxy