ci(release): AppImage artifact upload fails with HTTP 520 during large file transfer #106
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The release workflow fails when uploading the AppImage artifact (~800 MB). The
.debupload completes successfully, but the AppImage upload hits an HTTP 520 error from Cloudflare at ~93% (around 746 MB transferred), aborting the entire artifact upload step.The upload uses ~8 MB chunks. The
.deb(~719 MB) finishes, but the AppImage fails partway through, suggesting a timeout or connection reset on the Cloudflare/origin side during sustained large transfers.Artifacts involved
kindred-create_0~main_amd64.debFreeCAD_main-Linux-x86_64-py311.AppImageTotal attempted: ~1.53 GB, uploaded: ~1.47 GB.
Likely cause
HTTP 520 is a Cloudflare "Web server returned an unknown error" -- typically means the origin (Gitea) closed the connection or timed out. Possible factors:
Possible fixes
continue-on-error+ a retry wrapperReproduction
Push any tag matching
v*to trigger the release workflow. The failure occurs in theUpload Linux artifactsstep.Fixed by adding a host-level
/etc/hostsoverride on the runner machine:Added via
/etc/cloud/templates/hosts.debian.tmpl(cloud-init managed). This routes all Gitea traffic from the runner through the internal network, bypassing Cloudflare entirely. No CI workflow changes needed.The artifact upload was failing because the runner was routing ~800 MB uploads through Cloudflare's proxy, which timed out (HTTP 520) on sustained large transfers.