[Testing - Trixie] apt-listbugs error: proxy failed with status 502 CONNECT error: Resource temporarily unavailable

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
hknox
Posts: 9
Joined: 2024-10-06 02:33

[Testing - Trixie] apt-listbugs error: proxy failed with status 502 CONNECT error: Resource temporarily unavailable

#1 Post by hknox »

I have recently been getting the following error when installing packages via aptitude:

Error retrieving bug reports from the server with the following error message:
E: connect to ssl proxy failed with status 502 CONNECT error: Resource temporarily unavailable
It could be because your network is down, or because of broken proxy servers, or the BTS server itself is down. Check network configuration and try again

But I can open bugs.debian.org in a browser so I don't think the BTS server is down (unless it's a different URL?). Can anyone shed light on this?

Thanks in advance,
Hank Knox
Last edited by hknox on 2024-10-08 20:51, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 4036
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 112 times
Been thanked: 532 times

Re: [Testing - Trixie] listbugs proxy error?

#2 Post by Aki »

Hello,
hknox wrote: 2024-10-06 02:36 Error retrieving bug reports from the server with the following error message:

Code: Select all

E: connect to ssl proxy failed with status 502 CONNECT error: Resource temporarily unavailable
It could be because your network is down, or because of broken proxy servers, or the BTS server itself is down. Check network configuration and try again
But I can open bugs.debian.org in a browser so I don't think the BTS server is down (unless it's a different URL?). Can anyone shed light on this?
I have tested apt-listbugs in the current Debian testing and it seems to work fine:

Code: Select all

$ apt-listbugs -s all list apt-listbugs 
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
normal bugs of apt-listbugs (-> ) <Outstanding>
 b1 - #536613 - apt-listbugs: lists no bugs and returns 0 for non existing packages
 b2 - #693291 - apt-listbugs: gets confused about version tracking when versions for other packages are present
wishlist bugs of apt-listbugs (-> ) <Outstanding>
 b3 - #1021290 - apt-listbugs: pinning explanation: add requester and apt command-line
 b4 - #1023111 - apt-listbugs: Ignores release-related tags (sid, bookwork, etc.) in bug reports causing false positives, e.g. lists bugs in stable which are only tagged sid and bookworm
 b5 - #1030249 - unexpected "prefclean output on ..." emails since bookworm upgrade
 b6 - #192787 - apt-get invokes apt-list-bugs after downloading
   Merged with: 324317 476951 549595 633872 929259
 b7 - #257873 - apt-listbugs: gets confused about version tracking when source version differs from binary version
wishlist bugs of apt-listbugs (-> ) <Pending Upload>
 b8 - #1075873 - apt-listbugs: [INTL:nl] Dutch translation for the apt-listbugs package
Summary:
 apt-listbugs(8 bugs)
The error from your previous message is printed by the program ruby-httpclient in the following package here: Maybe you have configured a proxy for Debian repositories that is not currently available.

This is what the apt-listbugs manual page says about it:
[..]
ENVIRONMENT VARIABLES

APT_LISTBUGS_FRONTEND
If this variable is set to "none", apt-listbugs will not execute at all; this might be useful if you would like to script the
use of a program that calls apt-listbugs.

http_proxy
If $http_proxy is set, the value is used for HTTP Proxy, unless proxy settings are found in APT configuration (see below).

APT_HOOK_INFO_FD
File descriptor from which package actions will be read (APT or other compatible package managers are expected to write informa‐
tion to this file descriptor and to properly set this environment variable).

CONFIGURATION FILE
apt-listbugs reads the APT configuration (see apt.conf(5) for more details). The following configuration options are recognized:

Acquire::http::Proxy
Default HTTP Proxy setting (overrides any $http_proxy environment variable value). An empty string or the special keyword "DI‐
RECT" will disable proxy.

Acquire::http::Proxy-Auto-Detect
Automatic HTTP Proxy discovery (overrides the default HTTP Proxy setting and any $http_proxy environment variable value). It can
be used to specify an external command that is expected to output the proxy on stdout.

Acquire::http::Proxy::bugs.debian.org
Specific HTTP Proxy setting (overrides any other proxy setting). Useful for setting HTTP proxy for apt-listbugs. The special
keyword "DIRECT" will disable proxy.
Hope this helps.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

hknox
Posts: 9
Joined: 2024-10-06 02:33

Re: [Testing - Trixie] listbugs proxy error?

#3 Post by hknox »

Thanks for that! I recently enabled apt-cacher-ng which involved setting up a proxy which is probably where the issue comes from. I'll try disabling that and see if it makes a difference.

hknox
Posts: 9
Joined: 2024-10-06 02:33

Re: [Testing - Trixie] listbugs proxy error?

#4 Post by hknox »

I found a script at https://stephan.lachnit.xyz/posts/2023- ... cacher-ng/ (provide "if you encounter weird issues on apt update at some point the future") to clean out the apt-cacher-ng cache and that seems to have solved the issue.

Aki
Global Moderator
Global Moderator
Posts: 4036
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 112 times
Been thanked: 532 times

Re: [Testing - Trixie] listbugs proxy error?

#5 Post by Aki »

Hello,
hknox wrote: 2024-10-08 01:37 I found a script at https://stephan.lachnit.xyz/posts/2023- ... cacher-ng/ (provide "if you encounter weird issues on apt update at some point the future") to clean out the apt-cacher-ng cache and that seems to have solved the issue.
Thank you for reporting back.

I regularly use apt-cacher-ng, but I never encountered this error, but I don't use a proxy configuration (since it is not required in my configuration).

It would be interesting to see what is the http proxy configuration in your installation for apt.

You may consider updating the subject of the first message in something like:
apt-listbugs error: proxy failed with status 502 CONNECT error: Resource temporarily unavailable
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

hknox
Posts: 9
Joined: 2024-10-06 02:33

Re: [Testing - Trixie] apt-listbugs error: proxy failed with status 502 CONNECT error: Resource temporarily unavailable

#6 Post by hknox »

The proxy setup I used comes from the link above. I confess I treated it like a cookbook recipe and just used it without considering alternatives. It had me put

Code: Select all

 
 Acquire::http::proxy "http://127.0.0.1:3142";
Acquire::https::proxy "DIRECT";
Into /etc/apt/apt.conf.d/02proxy

Post Reply