Comment 2 for bug 1632130

Revision history for this message
Olivier Paroz (oparoz) wrote :

Here is the list of debs

```
# dpkg -l | grep snap
ii snap-confine 1.0.43-0ubuntu1~16.04.1 armhf Support executable to apply confinement for snappy apps
ii snapd 2.15.2ubuntu1 armhf Tool to interact with Ubuntu Core Snappy.
ii ubuntu-core-launcher 1.0.43-0ubuntu1~16.04.1 armhf Launcher for ubuntu-core (snappy) apps
```

The list of snaps:
```
$ snap list

Name Version Rev Developer Notes
nextcloud 9.0.53snap2 48 -
ubuntu-core 16.04+20160531.12-01 120 canonical -
```

But impossible to download anything using the snap command

```
sudo snap download ubuntu-core
Fetching snap "ubuntu-core"
1.08 MB / 55.77 MB [=>________________________________________________________________________________________________________________________] 1.93 % 1.57 MB/s 34s
error: read tcp 1.2.3.4:34404->95.172.71.45:443: read: connection reset by peer
```

Trying to get a snap directly from the store works, but with constant disconnects, so I think the problem comes from the fact that snap just gives up after one disconnect.

```
# wget https://public.apps.ubuntu.com/anon/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.snap
--2016-10-11 15:11:28-- https://public.apps.ubuntu.com/anon/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.snap
Resolving public.apps.ubuntu.com (public.apps.ubuntu.com)... 162.213.33.91, 162.213.33.92
Connecting to public.apps.ubuntu.com (public.apps.ubuntu.com)|162.213.33.91|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://068ed04f23.site.internapcdn.net/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.snap?t=2016-10-12T15:11:29Z&h=4350edc2fc1d1cfb5870fb55fc0b26745b3762bb [following]
--2016-10-11 15:11:29-- https://068ed04f23.site.internapcdn.net/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.snap?t=2016-10-12T15:11:29Z&h=4350edc2fc1d1cfb5870fb55fc0b26745b3762bb
Resolving 068ed04f23.site.internapcdn.net (068ed04f23.site.internapcdn.net)... 95.172.71.42, 95.172.71.38, 95.172.71.43, ...
Connecting to 068ed04f23.site.internapcdn.net (068ed04f23.site.internapcdn.net)|95.172.71.42|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58474496 (56M) [application/octet-stream]
Saving to: 'b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.snap'

b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.sna 0%[ ] 47.43K --.-KB/s in 0.005s

2016-10-11 15:11:39 (9.09 MB/s) - Read error at byte 48571/58474496 (Connection reset by peer). Retrying.

--2016-10-11 15:11:40-- (try: 2) https://068ed04f23.site.internapcdn.net/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.snap?t=2016-10-12T15:11:29Z&h=4350edc2fc1d1cfb5870fb55fc0b26745b3762bb
Connecting to 068ed04f23.site.internapcdn.net (068ed04f23.site.internapcdn.net)|95.172.71.42|:443... connected.
HTTP request sent, awaiting response... 206 PARTIAL CONTENT
Length: 58474496 (56M), 58425925 (56M) remaining [application/octet-stream]
Saving to: 'b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.snap'

b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.sna 0%[ ] 94.81K --.-KB/s in 0.006s

2016-10-11 15:11:55 (7.95 MB/s) - Read error at byte 97083/58474496 (Connection reset by peer). Retrying.

--2016-10-11 15:11:57-- (try: 3) https://068ed04f23.site.internapcdn.net/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.snap?t=2016-10-12T15:11:29Z&h=4350edc2fc1d1cfb5870fb55fc0b26745b3762bb
Connecting to 068ed04f23.site.internapcdn.net (068ed04f23.site.internapcdn.net)|95.172.71.42|:443... connected.
HTTP request sent, awaiting response... 206 PARTIAL CONTENT
Length: 58474496 (56M), 58377413 (56M) remaining [application/octet-stream]
Saving to: 'b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.snap'

b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_424.sna 100%[==================================================================================>] 55.77M 2.26MB/s in 23s
```