mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-05 00:54:09 -04:00
[Hotfix] Immich: revert healthcheck feature (#11427)
This commit is contained in:
19
ct/immich.sh
19
ct/immich.sh
@@ -253,25 +253,6 @@ EOF
|
|||||||
fi
|
fi
|
||||||
systemctl restart immich-ml immich-web
|
systemctl restart immich-ml immich-web
|
||||||
msg_ok "Updated successfully!"
|
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
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -477,26 +477,6 @@ chown -R immich:immich "$INSTALL_DIR" /var/log/immich
|
|||||||
systemctl enable -q --now immich-ml.service immich-web.service
|
systemctl enable -q --now immich-ml.service immich-web.service
|
||||||
msg_ok "Modified user, created env file, scripts and services"
|
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
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
|||||||
Reference in New Issue
Block a user