On 07.05.20 20:13, Henning Schild wrote:
> The idea is good but the patch is incomplete.
>
> To find all places where we download you might want to look at bitbake
> fetchers in general - do they have a retry count?
>
> Is there a variable controlling that?
As explained in the commit log, it's not consistent in bitbake. At least
wget has such a retry counter. In other cases, bitbake seems to quickly
fall back to mirrors and fail.
>
> After that look at all debian downloaders. You will find them when
> looking for "download-only", "apt-get update" any maybe more. They
> should use the central bitbake count or switch if available.
>
> Your patch found one of many "download-only" and ignores bitbake. Might
> be the most likely ... but we should try to be consistent.
Yes, we likely also need this when fetching build deps. All images are
covered this way already, I also checked debootstrap but found no retry
switch there. So the result will remain "best effort" in general.
Therefore, I was also wondering if it's worth it.
Background was may lengthy attempt yesterday to install a complex image
from
snapshot.debian.org. The "solution" (that avoided a first complete
local mirror) was to throttle the download bandwidth to some 1 MBit/s.
Maybe there was just one bad mirror on the other side, but it constantly
killed the image installed. Retrying was a futile attempt there, but
I've also seen (few) nightly builds in the past that stumbled over
individual packet downloads where this might have helped.
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux