Compare commits

...
Author SHA1 Message Date
MickLesk 590db0d47f Immich: retry the base image download
skopeo gives up on the first failed request. In a week that ended eight
installs: ghcr.io answering 429 with a retry-after of under a millisecond,
DNS and connect timeouts, a dropped connection. --retry-times repeats the
copy for exactly these, after 1, 2 and 4 seconds, and keeps the layers it
already has.
2026-12-06 10:09:55 +01:00
2 changed files with 2 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -459,7 +459,7 @@ function fetch_prebuilt_libs() {
local oci_dir
oci_dir="$(mktemp -d)"
PREBUILT_BUNDLE="$(mktemp -d)"
if ! $STD skopeo copy --override-os linux --override-arch "$(arch_resolve amd64 arm64)" "docker://${image}" "oci:${oci_dir}:img"; then
if ! $STD skopeo copy --retry-times 3 --override-os linux --override-arch "$(arch_resolve amd64 arm64)" "docker://${image}" "oci:${oci_dir}:img"; then
rm -rf "$oci_dir" "$PREBUILT_BUNDLE"
msg_error "Could not download Immich's base image (${image}). Immich was not updated."
exit 115
+1 -1
View File
@@ -220,7 +220,7 @@ if ! $STD apt install -y --no-install-recommends skopeo umoci; then
fi
OCI_DIR="$(mktemp -d)"
OCI_BUNDLE="$(mktemp -d)"
if ! $STD skopeo copy --override-os linux --override-arch "$(arch_resolve amd64 arm64)" "docker://${BASE_IMAGE}" "oci:${OCI_DIR}:img"; then
if ! $STD skopeo copy --retry-times 3 --override-os linux --override-arch "$(arch_resolve amd64 arm64)" "docker://${BASE_IMAGE}" "oci:${OCI_DIR}:img"; then
rm -rf "$OCI_DIR" "$OCI_BUNDLE"
msg_error "Could not download Immich's base image (${BASE_IMAGE})."
exit 115