anatol / pacoloco

Caching proxy server for Arch Linux pacman
MIT License
216 stars 30 forks source link

download is killed unfinished #19

Closed solsticedhiver closed 4 years ago

solsticedhiver commented 4 years ago

When running pacman -Syu, I get while donwloading libreoffice-fresh:

error: failed retrieving file 'libreoffice-fresh-7.0.1-1-x86_64.pkg.tar.zst' from ymir:9129 : transfer closed with 32344552 bytes remaining to read#---------------]  76%
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

This seems to come from that error in pacoloco log

Sep 05 19:09:30 ymir pacoloco[19235]: pacoloco.go:196: downloading http://mir.archlinux.fr//extra/os/x86_64/libreoffice-fresh-7.0.1-1-x86_64.pkg.tar.zst
Sep 05 19:09:50 ymir pacoloco[19235]: pacoloco.go:206: context deadline exceeded

This is because of commit abe6bf69006134149b00e7786fa0446ce99bea29

I have a fiber connexion and 20 seconds is not enough to download the 134MB package. I don't even speak for the ADSL guys.

Toolybird commented 4 years ago

Confirmed. I cannot even download a kernel at the moment.

solsticedhiver commented 4 years ago

In the mean time, you can do:

cd pacoloco-git
makepkg -o
cd src/pacoloco
git revert abe6bf69006134149b00e7786fa0446ce99bea29
cd ../..
makepkg -e
anatol commented 4 years ago

Oops, sorry for the issue. I am going to revert the original change and then work on better solution (like one proposed in #21).