mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-03 20:03:25 +01: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
|
||||
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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user