Activity log for bug #1998022

Date Who What changed Old value New value Message
2022-11-26 18:40:20 giacof bug added bug
2022-11-26 18:41:05 giacof description I'm trying to update firefox package on an unstable network which frequently disconnects and then reconnects. Snap manager is expected to react to network conditions and adapt download speed accordingly. What happens instead is that as soon as network bandwidth starts to shrink, the download starts to slow down to 0.00 bytes/sec and then hangs. The download will never recover, even when network connection is established back, so in the end the process will exit with an error code. Then if I run again the command: snap refresh firefox, the download will restart from zero instead of resuming the failed download! 1) Ubuntu Release: 22.04 2) apt-cache policy snap snap: Installato: (nessuno) Candidato: 2013-11-29-11 Tabella versione: 2013-11-29-11 500 500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages 3) What you expected to happen When the network is back after a disconnection, the download speed should start to raise back to the maximum available bandwidth. Moreover, in case the download fails, when snap refresh is relaunched it should resume the failed download from where it stopped. 4) What happened instead When snap starts to download the package, it creates the file: /var/lib/snapd/snaps/firefox_2088.snap.xdelta3-2067-to-2088.partial where 2067 is the current version and 2088 the newest one. Then the network connection starts to get unstable and eventually disconnects for a few seconds. The refresh process starts to slow down the download speed accordingly. When network connection is back, the snap process doesn't seem to realize it and the download speed keeps to fall all the way down to zero. In the end, the refresh command fails with the following error: $ snap refresh firefox errore: cannot perform the following tasks: - Scarica lo snap "firefox" (2088) dal canale "latest/stable" (download too slow: 0.00 bytes/sec) Even more severe problem: the firefox_2088.snap.xdelta3-2067-to-2088.partial gets deleted, so the download restarts from the beginning instead of resumed the failed partial download! That makes update virtually impossible on my network, since each time it will start from the beginning and eventually fail, as soon as the network disconnects. I'm trying to update firefox package on an unstable network which frequently disconnects and then reconnects. Snap manager is expected to react to network conditions and adapt download speed accordingly. What happens instead is that as soon as network bandwidth starts to shrink, the download starts to slow down to 0.00 bytes/sec and then hangs. The download will never recover, even when network connection is established back, so in the end the process will exit with an error code. Then if I run again the command: snap refresh firefox, the download will restart from zero instead of resuming the failed download! 1) Ubuntu Release: 22.04 2) apt-cache policy snap snap:   Installato: (nessuno)   Candidato: 2013-11-29-11   Tabella versione:      2013-11-29-11 500         500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages 3) What you expected to happen When the network is back after a disconnection, the download speed should start to raise back to the maximum available bandwidth. Moreover, in case the download fails, when snap refresh is relaunched it should resume the failed download from where it stopped. 4) What happened instead When snap starts to download the package, it creates the file: /var/lib/snapd/snaps/firefox_2088.snap.xdelta3-2067-to-2088.partial where 2067 is the current version and 2088 the newest one. Then the network connection starts to get unstable and eventually disconnects for a few seconds. The refresh process starts to slow down the download speed accordingly. When network connection is back, the snap process doesn't seem to realize it and the download speed keeps to fall all the way down to zero. In the end, the refresh command fails with the following error: $ snap refresh firefox errore: cannot perform the following tasks: - Scarica lo snap "firefox" (2088) dal canale "latest/stable" (download too slow: 0.00 bytes/sec) Even more severe problem: the firefox_2088.snap.xdelta3-2067-to-2088.partial gets deleted, so the download restarts from the beginning instead of resuming the failed partial download! That makes update virtually impossible on my network, since each time it will start from the beginning and eventually fail, as soon as the network disconnects.
2022-11-28 10:54:11 Miguel Pires snapd (Ubuntu): importance Undecided Medium
2022-11-28 10:54:11 Miguel Pires snapd (Ubuntu): status New Confirmed
2022-11-28 18:21:35 giacof attachment added output of: journalctl -u snapd > snapd.log https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1998022/+attachment/5633031/+files/snapd.log