You are not logged in.
I've been sharing my pacman cache using darkhttpd. Obviously, I can only share the packages I have installed on my "server" computer. If the "client" wants to install something else, they get a 404 error, and pacman tries the next server. Unfortunately pacman 6 times out when there are too many errors and won't use the server any more. I think the limit is three errors.
error: failed retrieving file 'amdvlk-2021.Q3.1-1-x86_64.pkg.tar.zst' from 192.168.1.81:8081 : The requested URL returned error: 404
error: failed retrieving file 'lib32-amdvlk-2021.Q3.1-1-x86_64.pkg.tar.zst' from 192.168.1.81:8081 : The requested URL returned error: 404
error: failed retrieving file 'vulkan-intel-21.1.5-1-x86_64.pkg.tar.zst' from 192.168.1.81:8081 : The requested URL returned error: 404
warning: too many errors from 192.168.1.81:8081, skipping for the remainder of this transaction
Is there a way to prevent this timeout, and keep trying the first server?
Last edited by Salkay (2021-08-03 22:48:40)
Offline
Offline
Thanks Allan. Looks like pacman is too clever!
Offline
What about https://archlinux.org/packages/communit … 4/pacoloco or https://xyne.archlinux.ca/projects/pacserve for sharing your pacman cache??
Offline
What about https://archlinux.org/packages/communit … 4/pacoloco or https://xyne.archlinux.ca/projects/pacserve for sharing your pacman cache??
I haven't tried those options, but I assume they would suffer from the same issues? If your "server" doesn't have the files, pacman on the "client" will have an error.
Offline
a821 wrote:What about https://archlinux.org/packages/communit … 4/pacoloco or https://xyne.archlinux.ca/projects/pacserve for sharing your pacman cache??
I haven't tried those options, but I assume they would suffer from the same issues? If your "server" doesn't have the files, pacman on the "client" will have an error.
Not according to their doc, see here and the About section of pacserve.
Offline
Not according to their doc, see here and the About section of pacserve.
Oh nice! Sorry I should have been more thorough in my reading. Thanks!
pacserve looks fiddly to incorporate with AUR helpers, but pacoloco looks like it should been seen as a normal server by the client, so that might work quite well!
Offline
Might be a good feature to add to pacman..
Offline