Try harder to avoid CDNs in snap downloads from builders

Bug #1945712 reported by Ondrej Kubik
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
launchpad-buildd
Fix Released
High
Colin Watson

Bug Description

Snap build fails at snap download stage
- Launchpad build through GitHub integration
- fail rate is not 100% as sometime it passes, but since I have 2 snap downloads in one build overall fail is 9 out of 10
Error log from snapcraft:
+ snap download yq
Fetching snap "yq"
[30/Sep/2021:21:15:06 +0000] "CONNECT canonical-lgw01.cdn.snapcraftcontent.com:443 HTTP/1.1" 403 1952 "-" "snapd/2.51.7 (series 16; classic) snap ubuntu/20.04 (amd64) linux/4.15.0-159-generic"
error: Get https://canonical-lgw01.cdn.snapcraftcontent.com/download-origin/canonical-lgw01/b1xa1ED1Aw4HN9BnJVP3Je95pyEVN6gu_1321.snap?token=1633050000_ff23e1c5e0f12265d33c05f4774a4d75022f5e60: Forbidden
[30/Sep/2021:21:15:06 +0000] "CONNECT api.snapcraft.io:443 HTTP/1.1" 200 5407 "-" "snapd/2.51.7 (series 16; classic) snap ubuntu/20.04 (amd64) linux/4.15.0-159-generic"
[30/Sep/2021:21:15:06 +0000] "CONNECT api.snapcraft.io:443 HTTP/1.1" 200 4622 "-" "snapd/2.51.7 (series 16; classic) snap ubuntu/20.04 (amd64) linux/4.15.0-159-generic"
Failed to run 'override-build': Exit code was 1.

Using SNAPPY_STORE_NO_CDN=1 snap download .... does seem to work around this

Related branches

Revision history for this message
Colin Watson (cjwatson) wrote :
summary: - snap build fails at snap download
+ Try harder to avoid CDNs in snap downloads
summary: - Try harder to avoid CDNs in snap downloads
+ Try harder to avoid CDNs in snap downloads from builders
Changed in launchpad-buildd:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
Colin Watson (cjwatson)
Changed in launchpad-buildd:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
Changed in launchpad-buildd:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.