Make store downloads more robust
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Critical
|
Sergio Schvezov |
Bug Description
We constantly get reset by the peer which slows down our development and makes for an unhappy user as well:
=======
ERROR: test_classic_
test_stage.
-------
testtools.
Starting snapcraft devel from /home/travis/
Setting up part 'hello' with plugin 'make' and properties {'snap': [], 'prime': [], 'plugin': 'make', 'stage': []}.
Getting details for core
Starting new HTTPS connection (1): search.
"GET /api/v1/
Downloading core
Starting new HTTPS connection (1): public.
"GET /anon/download-
Starting new HTTPS connection (1): 068ed04f23.
"GET /download-
Downloading 'core.snap' 0%
Downloading 'core.snap' 1%
Downloading 'core.snap' 2%
Downloading 'core.snap' 3%
Downloading 'core.snap' 4%
Downloading 'core.snap' 5%
Downloading 'core.snap' 6%
Downloading 'core.snap' 7%
Downloading 'core.snap' 8%
Downloading 'core.snap' 9%
Downloading 'core.snap' 10%
Downloading 'core.snap' 11%
Downloading 'core.snap' 12%
Traceback (most recent call last):
File "/usr/local/
yield
File "/usr/local/
data = self._fp.read(amt)
File "/usr/lib/
n = self.readinto(b)
File "/usr/lib/
n = self.fp.readinto(b)
File "/usr/lib/
return self._sock.
File "/usr/lib/
return self.read(nbytes, buffer)
File "/usr/lib/
return self._sslobj.
File "/usr/lib/
v = self._sslobj.
ConnectionReset
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
milestone: | 2.28 → none |
Changed in snapcraft: | |
milestone: | none → 2.29 |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
Are you trying to debug the CDN? or the download tool?
I just downloaded this snap 110 times via the URLs above and got identical results each time regardless of which CDN IP I hit.
Thanks