apt-mirror by default uses a retry setting of "-t 0" meaning infinite retries

Bug #385763 reported by Salimane Adjao Moustapha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-mirror (Ubuntu)
Fix Released
Low
Brandon Holtsclaw
Nominated for Hardy by Salimane Adjao Moustapha

Bug Description

Binary package hint: apt-mirror

apt-mirror by default uses a retry setting of "-t 0" meaning infinite retries, it will keep trying when it hits the non working IP. For some reason this IP does not supply a fatal error that makes wget stop retrying. To avoid this I edited apt-mirror the following way:

old:
exec 'wget', '-t', '0', '-r', '-N', '-l', 'inf', '-o', get_variable("var_path") . "/$stage-log.$i", '-i', get_variable("var_path") . "/$stage-urls.$i";

new:
exec 'wget', '-t', '5', '-r', '-N', '-l', 'inf', '-o', get_variable("var_path") . "/$stage-log.$i", '-i', get_variable("var_path") . "/$stage-urls.$i";

But i don't think it's the best solution. there should be a way to notify the user of the bad links or unreachable ips, blocked ips, bad dns....

Revision history for this message
Salimane Adjao Moustapha (salimane) wrote : Re: apt-mirror get stalled while it only remains 241Kb to download in 4 archives
description: updated
summary: - apt-mirror get stalled while it's only remains 241Kb to download in 4
+ apt-mirror get stalled while it only remains 241Kb to download in 4
archives
description: updated
summary: - apt-mirror get stalled while it only remains 241Kb to download in 4
- archives
+ apt-mirror by default uses a retry setting of "-t 0" meaning infinite
+ retries
Revision history for this message
Brandon Holtsclaw (imbrandon) wrote :

this has been fixed upstream in the 0.4.8 release and will be backported

Changed in apt-mirror (Ubuntu):
importance: Undecided → Low
assignee: nobody → Brandon Holtsclaw (imbrandon)
status: New → Confirmed
Changed in apt-mirror (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.