Skip to content

Commit 33de14e

Browse files
authored
Immich: retry mise install on transient npm download failures (#16301)
1 parent 156f5ae commit 33de14e

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

ct/immich.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,16 @@ EOF
214214
cd "$SRC_DIR"
215215
export MISE_TRUSTED_CONFIG_PATHS="$SRC_DIR"/mise.toml
216216
export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg
217-
$STD mise install
217+
mise_ok=0
218+
for i in 1 2 3; do
219+
$STD mise install && {
220+
mise_ok=1
221+
break
222+
}
223+
msg_warn "mise install failed (attempt $i/3) - retrying"
224+
sleep 5
225+
done
226+
[[ "$mise_ok" -eq 1 ]] || exit 1
218227
export PATH="$(mise bin-paths 2>/dev/null | tr '\n' ':')$PATH"
219228
if ! command -v extism-js >/dev/null 2>&1; then
220229
# extism-js ships as a bare gzip-compressed single binary (.gz) that

install/immich-install.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,16 @@ cp LICENSE "$APP_DIR"
355355
cd "$SRC_DIR"
356356
export MISE_TRUSTED_CONFIG_PATHS="$SRC_DIR"/mise.toml
357357
export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg
358-
$STD mise install
358+
mise_ok=0
359+
for i in 1 2 3; do
360+
$STD mise install && {
361+
mise_ok=1
362+
break
363+
}
364+
msg_warn "mise install failed (attempt $i/3) - retrying"
365+
sleep 5
366+
done
367+
[[ "$mise_ok" -eq 1 ]] || exit 1
359368
export PATH="$(mise bin-paths 2>/dev/null | tr '\n' ':')$PATH"
360369
if ! command -v extism-js >/dev/null 2>&1; then
361370
# extism-js is published as a bare gzip-compressed single binary (.gz), which

0 commit comments

Comments
 (0)