The officially official Devuan Forum!

You are not logged in.

#1 2022-01-04 16:35:57

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 98  

[SOLVED] apt-cacher-ng fails to download most of the time

since about Xmas my automatic updating  via apt-cacher-ng fails.
It fails to download the release files, packages list and the packages completely or sometimes it is extremely slow.

retrieving the files via a browser or with aptitude excluding the apt-cacher-ng works without problem.

this is an error , which comes up from time to time now after 5 month of no trouble .

aptitude update              
Err http://deb.devuan.org/merged beowulf InRelease
  Connection failed [IP: 127.0.0.1 3142]
Err http://deb.devuan.org/merged beowulf-security InRelease
  Connection failed [IP: 127.0.0.1 3142]
Get: 1 http://deb.devuan.org/merged beowulf-updates InRelease [26.7 kB]
Get: 2 http://deb.devuan.org/merged beowulf-backports InRelease [26.9 kB]
Fetched 53.6 kB in 2min 31s (353 B/s)                                                                                                         
W: Failed to fetch http://deb.devuan.org/merged/dists/beowulf/InRelease: Connection failed [IP: 127.0.0.1 3142]
W: Failed to fetch http://deb.devuan.org/merged/dists/beowulf-security/InRelease: Connection failed [IP: 127.0.0.1 3142]
W: Some index files failed to download. They have been ignored, or old ones used instead.

so sometimes it works, sometimes not. what causes it?

Last edited by bai4Iej2need (2022-01-04 16:55:26)


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

#2 2022-01-04 16:54:47

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 98  

Re: [SOLVED] apt-cacher-ng fails to download most of the time

https://unix.stackexchange.com/question … pdate-acgn

: acng.conf in lines 
48:BindAddress: 127.0.0.1 192.168.4.1
353:ConnectProto: v4

fixed it.


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

#3 2022-08-27 23:12:06

webman
Member
Registered: 2022-08-27
Posts: 22  

Re: [SOLVED] apt-cacher-ng fails to download most of the time

Hallo!
I have the same problem.
The answer does'nt fit.
I have ipv6 disabled on all computers (acp-cacher-ng, proxy, chimera-host).
Just to be sure, I applied the same settings like in your answer, but no changes.
Additionally, on the chimera-box I have a lxc-container (running debian buster), which updates fine.
I found a similar post regarding ubuntu and then, I made a try to load one of the failing urls
using curl over acng:.

curl -p http://192.168.12.132:4455 http://pkgmaster.devuan.org/merged/pool/DEBIAN-SECURITY/updates/main/x/xorg-server/xvfb_1.20.11-1%2bdeb11u2_amd64.deb
curl: (56) Received HTTP code 403 from proxy after CONNECT

Went to the acng-box and I see the response from the final squid-proxy and I get:

<p>Some aspect of the requested URL is incorrect.</p>

<p>Some possible problems are:</p>
<ul>
<li><p>Missing or incorrect access protocol (should be <q>http://</q> or similar)</p></li>
<li><p>Missing hostname</p></li>
<li><p>Illegal double-escape in the URL-Path</p></li>
<li><p>Illegal character in hostname; underscores are not allowed.</p></li>
</ul>

Changing apt-settings from acng to squid, doing update, changing back to acng following an upgrade
works.
There were wrong urls/hostnames in the apt-sources (which were probably very old, because
it is an experiment (which I use to see devuan instead of debian/systemd).

Hope this helps someone, wo felt over this too.

Regards,
Manfred

Offline

Board footer