From 8a1179d403dbf3b93c994f827c6d7ca1db0123ae Mon Sep 17 00:00:00 2001 From: Morochief Date: Sat, 24 Oct 2026 12:48:00 -0300 Subject: [PATCH] FIX: Resolve HTTP/2 PROTOCOL_ERROR during soup image pull (fixes #16342) --- salt/common/tools/sbin/so-image-common | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-image-common b/salt/common/tools/sbin/so-image-common index 833b9a7d8..f11aaa095 100755 --- a/salt/common/tools/sbin/so-image-common +++ b/salt/common/tools/sbin/so-image-common @@ -205,7 +205,13 @@ update_docker_containers() { echo "Unable to determine verified digest for $image" >> "$LOG_FILE" 2>&1 exit 1 fi - docker buildx imagetools create --tag $HOSTNAME:5000/$IMAGEREPO/$image "$VERIFIED_REF" >> "$LOG_FILE" 2>&1 || { + # Force HTTP/1.1 for Go runtime clients (docker buildx) to prevent HTTP/2 + # stream multiplexing drops (PROTOCOL_ERROR) on large image layer uploads + # to the local embedded registry. + export GODEBUG="http2client=0${GODEBUG:+,${GODEBUG}}" + + docker buildx imagetools create --tag $HOSTNAME:5000/$IMAGEREPO/$image "$VERIFIED_REF" >> "$LOG_FILE" 2>&1 || \ + docker push $HOSTNAME:5000/$IMAGEREPO/$image >> "$LOG_FILE" 2>&1 || { echo "Unable to copy $image to embedded registry" >> "$LOG_FILE" 2>&1 exit 1 }