FS#67865 - Download progress not shown when using Cloudflare mirrors
Attached to Project:
Pacman
Opened by Yuval Adam (yuvadm) - Thursday, 10 September 2020, 10:53 GMT
Last edited by Allan McRae (Allan) - Thursday, 15 December 2022, 00:53 GMT
Opened by Yuval Adam (yuvadm) - Thursday, 10 September 2020, 10:53 GMT
Last edited by Allan McRae (Allan) - Thursday, 15 December 2022, 00:53 GMT
|
Details
Description:
Cloudflare have recently launched a new mirror service - https://cloudflaremirrors.com/ To the best of my understanding they simply mirror the existing mirrors and serve them from their CDN. When using their mirror service, pacman doesn't output any package download progress. This is most likely due to missing Content-Length headers in the response. At the very least, it would be better to gracefully degrade and at least show which packages are *currently* being downloaded, even if the specific package progress is missing. Additional info: * pacman 5.2.2 Steps to reproduce: 1. Add Server = https://cloudflaremirrors.com/archlinux/$repo/os/$arch to your mirrorlist 2. pacman -Syu |
This task depends upon
error: failed retrieving file '.......' from cloudflaremirrors.com : HTTP server doesn't seem to support byte ranges. Cannot resume.
pacman 5.2.2 *does* show download progress, but pacman from git doesn't. pacman from git also doesn't emit errors for the failing byte range.
pacman from git will still show this, though:
<foo>-x86_64.pkg.tar.zst downloading...
Then reports the average at the end.
pacman stable merely quietly shows nothing for them.
This is definitely broken somehow. Though, the worst breakage -- the completely silent failure to report anything -- is incidentally fixed due to the parallel download rewrite.
```
Total Download Size: 24.07 MiB
:: Proceed with download? [Y/n]
:: Retrieving packages...
^Ceph-15.2.14-6-x86_64 18.3 MiB 14.2 MiB/s 00:00 [----------------------------------------------co o o o o ] 75%
Interrupt signal received
0620 182047 daurnimator@daurn-z170 ~ exit=130 $ sudo pacman -Sw ceph
resolving dependencies...
Packages (2) ceph-libs-15.2.14-6 ceph-15.2.14-6
Total Download Size: 2.51 MiB
:: Proceed with download? [Y/n]
:: Retrieving packages...
^Ceph-15.2.14-6-x86_64 1378.4 KiB 1587 KiB/s 00:00 [--------------------------------C o o o o o o o o o ] 53%
Interrupt signal received
0620 182057 daurnimator@daurn-z170 ~ exit=130 $ sudo pacman -Sw ceph
resolving dependencies...
Packages (2) ceph-libs-15.2.14-6 ceph-15.2.14-6
Total Download Size: 1.03 MiB
:: Proceed with download? [Y/n]
:: Retrieving packages...
^Ceph-15.2.14-6-x86_64 398.5 KiB 518 KiB/s 00:01 [----------------------Co o o o o o o o o o o o o ] 37%
Interrupt signal received
```
On the same computer as my previous comment, I ran `pacman -Syuw` today and got:
error: failed retrieving file 'ceph-15.2.14-6-x86_64.pkg.tar.zst' from cloudflaremirrors.com : HTTP server doesn't seem to support byte ranges. Cannot resume.