Can't download snaps from ARM hardware running Classic

Bug #1632130 reported by Olivier Paroz
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
snapd
Incomplete
Undecided
gerald.yang

Bug Description

1 amd64 VM tried to download the ubuntu-core snap

```
# snap download ubuntu-core
Fetching snap "ubuntu-core"
74.93 MB / 74.93 MB [==========================================================================================================================] 100.00 % 3.07 MB/s
Fetching assertions for "ubuntu-core"
```

No problem there.

1 ARM based Nextcloud Box tried to download ubuntu-core snap

```
Fetching snap "ubuntu-core"
879.41 KB / 55.77 MB [>_______________________________________________________________________________________________________________________] 1.54 % 1.39 MB/s 39s
error: read tcp 1.2.3.4:35990->95.172.71.38:443: read: connection reset by peer
```

It can never download it and it's the same for every snap

Both are behind the same network.

snapd/xenial-updates,now 2.15.2ubuntu1 armhf [installed]
snap-confine/xenial-updates,now 1.0.43-0ubuntu1~16.04.1 armhf [installed,automatic]

Olivier Paroz (oparoz)
description: updated
Changed in snappy:
assignee: nobody → gerald.yang (gerald-yang-tw)
status: New → In Progress
Revision history for this message
gerald.yang (gerald-yang-tw) wrote :

@Olivier

I'm trying to reproduce this issue, but it looks everything works fine.
I can 'snap download' or 'snap refresh' snaps, like ubuntu-core or nextcloud on my nextcloud box.

Here is my steps:
1. install the server image we released ubuntu-standard-16.04-server-armhf-raspberry-pi-installer-20160825.img
2. upgrade the system to the latest by 'sudo apt dist-upgrade'
3. reboot
4. refresh/download snaps.

ubuntu@ubuntu-standard:~$ 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
ubuntu@ubuntu-standard:~$ snap list
Name Version Rev Developer Notes
nextcloud 9.0.53snap2 48 nextcloud -
ubuntu-core 16.04+20160531.12-01 120 canonical -
ubuntu@ubuntu-standard:~$ sudo snap download ubuntu-core
[sudo] password for ubuntu:
Fetching snap "ubuntu-core"
55.77 MB / 55.77 MB [=============================================================================================================================] 100.00 % 1.90 MB/s
Fetching assertions for "ubuntu-core"
ubuntu@ubuntu-standard:~$ sudo snap refresh ubuntu-core
55.77 MB / 55.77 MB [===========================================================================================================================] 100.00 % 789.45 KB/s

ubuntu-core (stable) 16.04.1 from 'canonical' upgraded
ubuntu@ubuntu-standard:~$ sudo snap refresh nextcloud
127.24 MB / 127.24 MB [=======================================================================================================================>_] 100.00 % 674.35 KB/s

nextcloud (stable) 9.0.53snap4 from 'nextcloud' upgraded
ubuntu@ubuntu-standard:~$ sudo snap download nextcloud
Fetching snap "nextcloud"
127.24 MB / 127.24 MB [===========================================================================================================================] 100.00 % 1.92 MB/s
Fetching assertions for "nextcloud"
ubuntu@ubuntu-standard:~$ snap list
Name Version Rev Developer Notes
nextcloud 9.0.53snap4 99 nextcloud -
ubuntu-core 16.04.1 424 canonical -

Download and refresh work fine, could you give me more detail steps to reproduce this issue?
and could you also try to upgrade ubuntu-core-launcher first if it's not the latest one and see if this issue still can be reproduced?

Revision history for this message
Olivier Paroz (oparoz) wrote :
Download full text (4.0 KiB)

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.sn...

Read more...

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

I also wanted to add that the disconnection problems come from the snap store. If I download something from Launchpad, then everything is fine.

```
# wget https://code.launchpad.net/~oparoz/+snap/transmissionbt/+build/5841/+files/transmissionbt_2.92oparoz3_armhf.snap
--2016-10-11 15:08:47-- https://code.launchpad.net/~oparoz/+snap/transmissionbt/+build/5841/+files/transmissionbt_2.92oparoz3_armhf.snap
Resolving code.launchpad.net (code.launchpad.net)... 91.189.89.224, 91.189.89.225
Connecting to code.launchpad.net (code.launchpad.net)|91.189.89.224|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://launchpadlibrarian.net/287544939/transmissionbt_2.92oparoz3_armhf.snap [following]
--2016-10-11 15:08:48-- https://launchpadlibrarian.net/287544939/transmissionbt_2.92oparoz3_armhf.snap
Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 91.189.89.228, 91.189.89.229
Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|91.189.89.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9711616 (9.3M) [application/octet-stream]
Saving to: 'transmissionbt_2.92oparoz3_armhf.snap'

transmissionbt_2.92oparoz3_armhf.snap 100%[==================================================================================>] 9.26M 584KB/s in 17s

2016-10-11 15:09:06 (545 KB/s) - 'transmissionbt_2.92oparoz3_armhf.snap' saved [9711616/9711616]
```

Revision history for this message
Michael Vogt (mvo) wrote :

Is this still an issue? Can this still be reproduced with the current snapd on an armhf based system? Fwiw, we do a lot of testing on the pi2/pi3 and have not noticed this. However we are rarely use classic on this device.

Changed in snappy:
status: In Progress → Incomplete
Revision history for this message
Olivier Paroz (oparoz) wrote :

Yes, this is still a problem.
Impossible to refresh any snap from within my network.

The Nextcloud Box I'm using is still on Nextcloud 9.0.53snap3 which is probably what came with the original image delivered with the box.

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

Same problem from the Ubuntu Core images.

# snap refresh
error: cannot perform the following tasks:
- Download snap "core" (645) from channel "stable" (sha3-384 mismatch downloading core: got 0f33a51d65f41b3de7080ae462823bbf13508a4830d5ca098d1ab5488f8dcfa283a2c1df9aa3c2b7cf6cddba40c1d682 but expected fef53f6c34166784c1dfe7c5fe2bc24185659b06ad19c52d8ef08afc95c7a4e59b2844a960acc0bf2634824007ae22fd)
- Download snap "nextcloud" (389) from channel "stable" (sha3-384 mismatch downloading nextcloud: got 7c860fa885d46bda1a6adc6df0ddf239345469f6611be198f2303fb702c1214390a2056834e63db541314da636f8572e but expected 1e1e7c31dfacb413910a0fb2c28bc84e8e324a2798f827f465efc06ce021d0665e0263523312ded537fca8f9b2fa7718)

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

This works now

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

Nope, still doesn't work.

# snap refresh
error: cannot perform the following tasks:
- Download snap "nextcloud" (1190) from channel "stable" (read tcp 192.168.1.2:38754->95.172.71.47:443: read: connection reset by peer)
- Download snap "core" (1443) from channel "stable" (read tcp 192.168.1.2:38755->95.172.71.47:443: read: connection reset by peer)

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

Using snapd 2.22.6

Revision history for this message
Alan R (alanraison) wrote :

On a fresh core-16 install:

alanraison@localhost:~$ snap version
snap 2.23.1
snapd 2.23.1
series 16
kernel 4.4.0-1030-raspi2
alanraison@localhost:~$ snap list
Name Version Rev Developer Notes
core 16-2 1443 canonical -
pi2 16.04-0.17 29 canonical -
pi2-kernel 4.4.0-1030-3 22 canonical -
alanraison@localhost:~$ snap refresh
error: cannot perform the following tasks:
- Download snap "core" (1580) from channel "stable" (read tcp 10.0.0.91:37050->77.242.195.170:443: read: connection reset by peer)

Revision history for this message
Karl Tiedt (ktiedt) wrote :

I concur wit Alan here... just installed this for a small rPi3 monitoring unit and... cant install anything via snap

-snap version:
snap 2.23.1
snapd 2.23.1
series 16
kernel 4.4.0-1030-raspi2

-snap list:
Name Version Rev Developer Notes
core 16-2 1443 canonical -
pi2-kernel 4.4.0-1030-3 22 canonical -
pi3 16.04-0.5 6 canonical -

-snap refresh:
error: cannot perform the following tasks:
- Download snap "core" (1580) from channel "stable" (read tcp 192.168.1.101:42746->64.74.126.8:443: read: connection reset by peer)

Revision history for this message
Ian Johnson (anonymouse67) wrote :

Hi,

I am unable to reproduce this with my Raspberry Pi 3B+ and a recent snapd, if this is still a problem can you comment with more details?

Michael Vogt (mvo)
affects: snappy → snapd
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.