[Bug 1825001] Re: Allow archives to send a 4xx response to tell apt to try again later

Julian Andres Klode julian.klode at canonical.com
Tue Apr 16 15:50:55 UTC 2019


apt currently considers the following errors transient:

	    constexpr unsigned int TransientCodes[] = {
	       408, // Request Timeout
	       429, // Too Many Requests
	       500, // Internal Server Error
	       502, // Bad Gateway
	       503, // Service Unavailable
	       504, // Gateway Timeout
	       599, // Network Connect Timeout Error
	    };

and thus does not report them as errors, only as warnings.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1825001

Title:
  Allow archives to send a 4xx response to tell apt to try again later

Status in apt package in Ubuntu:
  New

Bug description:
  As part of a broad plan to improve our ability to manage traffic to
  the archive servers, it would be useful if the archives could return a
  4xx response to indicate to apt that they were over capacity and it
  should try again later, where later could be defined on the client
  side as several hours, the next day for unattended-upgrades runs, etc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1825001/+subscriptions



More information about the foundations-bugs mailing list