[Hotfix] Immich: revert healthcheck feature (#11427)

This commit is contained in:
Chris
2026-02-01 12:30:55 -05:00
committed by GitHub
parent 2d5e9592d7
commit 8589afb17e
2 changed files with 0 additions and 39 deletions

View File

@@ -253,25 +253,6 @@ EOF
fi
systemctl restart immich-ml immich-web
msg_ok "Updated successfully!"
msg_info "Checking health of Immich-web & Immich-ml services"
sleep 5
web=0
until curl -fs localhost:2283/api/server/ping | grep -q "pong" || [[ $web -gt 1 ]]; do
msg_warn "Problem detected with Immich-web service, restarting..."
systemctl restart immich-web && sleep 5
[[ $(curl -fs localhost:2283/api/server/ping | grep "pong") ]] && break
((web++))
done
[[ $web -lt 1 ]] && msg_ok "Immich-web service is reachable!" || msg_error "Please check '/var/log/immich/web.log' for more details"
ml=0
until [[ $(curl -fs localhost:3003/ping) == "pong" ]] || [[ $ml -gt 1 ]]; do
msg_warn "Problem detected with Immich-ml service, restarting..."
systemctl restart immich-ml && sleep 5
[[ $(curl -fs localhost:3003/ping) == "pong" ]] && break
((ml++))
done
[[ $ml -lt 1 ]] && msg_ok "Immich-ml service is reachable!" || msg_error "Please check '/var/log/immich/ml.log' for more details"
fi
exit
}

View File

@@ -477,26 +477,6 @@ chown -R immich:immich "$INSTALL_DIR" /var/log/immich
systemctl enable -q --now immich-ml.service immich-web.service
msg_ok "Modified user, created env file, scripts and services"
msg_info "Checking health of Immich-web & Immich-ml services"
sleep 5
web=0
until curl -fs localhost:2283/api/server/ping | grep -q "pong" || [[ $web -gt 1 ]]; do
msg_warn "Problem detected with Immich-web service, restarting..."
systemctl restart immich-web && sleep 5
[[ $(curl -fs localhost:2283/api/server/ping | grep "pong") ]] && break
((web++))
done
[[ $web -lt 1 ]] && msg_ok "Immich-web service is reachable!" || msg_error "Please check '/var/log/immich/web.log' for more details"
ml=0
until [[ $(curl -fs localhost:3003/ping) == "pong" ]] || [[ $ml -gt 1 ]]; do
msg_warn "Problem detected with Immich-ml service, restarting..."
systemctl restart immich-ml && sleep 5
[[ $(curl -fs localhost:3003/ping) == "pong" ]] && break
((ml++))
done
[[ $ml -lt 1 ]] && msg_ok "Immich-ml service is reachable!" || msg_error "Please check '/var/log/immich/ml.log' for more details"
motd_ssh
customize
cleanup_lxc