Proxmox failed to fetch / connection failed

Cuneko

New Member
Jun 4, 2023
9
0
1
Was hoping to get some help with an issue where I cannot contact any proxmox sites using apt update

cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface enp10s0 inet manual

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.1.87/24
gateway 192.168.1.1
bridge-ports enp10s0
bridge-stp off
bridge-fd 0

deb http://ftp.uk.debian.org/debian bullseye main contrib

deb http://ftp.uk.debian.org/debian bullseye-updates main contrib

# security updates
deb http://security.debian.org bullseye-security main contrib

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

# deb http://download.proxmox.com/debian/pve bullseye pvetest

Err:1 http://ftp.uk.debian.org/debian bullseye InRelease
Connection failed [IP: 78.129.164.123 80]
Err:2 http://security.debian.org bullseye-security InRelease
Connection failed [IP: 146.75.74.132 80]
Err:3 http://download.proxmox.com/debian/pve bullseye InRelease
Connection failed [IP: 51.91.38.34 80]
Err:4 http://ftp.uk.debian.org/debian bullseye-updates InRelease
Connection failed [IP: 78.129.164.123 80]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://ftp.uk.debian.org/debian/dists/bullseye/InRelease Connection failed [IP: 78.129.164.123 80]
W: Failed to fetch http://ftp.uk.debian.org/debian/dists/bullseye-updates/InRelease Connection failed [IP: 78.129.164.123 80]
W: Failed to fetch http://security.debian.org/dists/bullseye-security/InRelease Connection failed [IP: 146.75.74.132 80]
W: Failed to fetch http://download.proxmox.com/debian/pve/dists/bullseye/InRelease Connection failed [IP: 51.91.38.34 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

Firewall is off on both the datacenter and the node

DNS servers are
search domain local
8.8.8.8
1.1.1.1
 
Can you ping 8.8.8.8?

May you also post the output of ip a command?

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=119 time=5.96 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=119 time=5.62 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=119 time=6.27 ms 64 bytes from 8.8.8.8: icmp_seq=4 ttl=119 time=5.97 ms 64 bytes from 8.8.8.8: icmp_seq=5 ttl=119 time=5.95 ms 64 bytes from 8.8.8.8: icmp_seq=6 ttl=119 time=5.01 ms 64 bytes from 8.8.8.8: icmp_seq=7 ttl=119 time=5.91 ms 64 bytes from 8.8.8.8: icmp_seq=8 ttl=119 time=5.93 ms 64 bytes from 8.8.8.8: icmp_seq=9 ttl=119 time=5.86 ms

root@proxmox:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp10s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000 link/ether 2c:56:dc:39:4b:17 brd ff:ff:ff:ff:ff:ff 3: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 2c:56:dc:38:87:c7 brd ff:ff:ff:ff:ff:ff altname enp0s25 4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 2c:56:dc:39:4b:17 brd ff:ff:ff:ff:ff:ff inet 192.168.1.87/24 scope global vmbr0 valid_lft forever preferred_lft forever inet6 fe80::2e56:dcff:fe39:4b17/64 scope link valid_lft forever preferred_lft forever
 
thank you for the output!

Can you also ping google.com? if the answer is not, then you have set the correct resolve in `/etc/resolv.conf` file.
 
Last edited:
thank you for the output!

Can you also ping google.com? if the answer is not, then you have set the correct resolve in `/etc/resolv.conf` file.
I can also ping google.com

root@proxmox:~# ping google.com PING google.com (172.217.169.46) 56(84) bytes of data. 64 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=1 ttl=119 time=5.72 ms 64 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=2 ttl=119 time=5.67 ms 64 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=3 ttl=119 time=5.55 ms 64 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=4 ttl=119 time=5.51 ms 64 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=5 ttl=119 time=5.69 ms 64 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=6 ttl=119 time=6.07 ms 64 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=7 ttl=119 time=5.73 ms 64 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=8 ttl=119 time=5.76 ms 64 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=9 ttl=119 time=5.65 ms 64 bytes from lhr48s08-in-f14.1e100.net (172.217.169.46): icmp_seq=10 ttl=119 time=5.85 ms
 
Thank you for the output!

Looks ok, do you use firewall or proxy?

Can you also check the nslookup for the debian.org like the below command:

Bash:
nslookup ftp.uk.debian.org

If everything ok, can you re-check the apt update again?
 
Thank you for the output!

Looks ok, do you use firewall or proxy?

Can you also check the nslookup for the debian.org like the below command:

Bash:
nslookup ftp.uk.debian.org

If everything ok, can you re-check the apt update again?
I have firewall disabled in both datacenter and node and firewall in router is also disabled.

root@proxmox:~# nslookup ftp.uk.debian.org Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: ftp.uk.debian.org canonical name = debian.hands.com. Name: debian.hands.com Address: 78.129.164.123 Name: debian.hands.com Address: 2001:1b40:5600:ff80:f8ee::1

Results from apt update are as follows
root@proxmox:~# apt update Err:1 http://ftp.uk.debian.org/debian bullseye InRelease Connection failed [IP: 78.129.164.123 80] Err:2 http://security.debian.org bullseye-security InRelease Connection failed [IP: 151.101.62.132 80] Err:3 http://download.proxmox.com/debian/pve bullseye InRelease Connection failed [IP: 51.91.38.34 80] Err:4 http://ftp.uk.debian.org/debian bullseye-updates InRelease Connection failed [IP: 78.129.164.123 80] Err:5 http://download.proxmox.com/debian/pbs-client bullseye InRelease Connection failed [IP: 51.91.38.34 80] Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: Failed to fetch http://ftp.uk.debian.org/debian/dists/bullseye/InRelease Connection failed [IP: 78.129.164.123 80] W: Failed to fetch http://ftp.uk.debian.org/debian/dists/bullseye-updates/InRelease Connection failed [IP: 78.129.164.123 80] W: Failed to fetch http://security.debian.org/dists/bullseye-security/InRelease Connection failed [IP: 151.101.62.132 80] W: Failed to fetch http://download.proxmox.com/debian/pve/dists/bullseye/InRelease Connection failed [IP: 51.91.38.34 80] W: Failed to fetch http://download.proxmox.com/debian/pbs-client/dists/bullseye/InRelease Connection failed [IP: 51.91.38.34 80] W: Some index files failed to download. They have been ignored, or old ones used instead.
 
Hmmm,

May you try to add the following to your /etc/hosts file in order to narrow down the issue?

Code:
78.129.164.123 ftp.uk.debian.org
151.101.62.132 security.debian.org
51.91.38.34 download.proxmox.com

After you add the above to the /etc/hosts, please try apt update again.
 
Hmmm,

May you try to add the following to your /etc/hosts file in order to narrow down the issue?

Code:
78.129.164.123 ftp.uk.debian.org
151.101.62.132 security.debian.org
51.91.38.34 download.proxmox.com

After you add the above to the /etc/hosts, please try apt update again.
Hello, I went ahead and did that.

Hosts file
127.0.0.1 localhost.localdomain localhost 192.168.1.87 proxmox.local proxmox 78.129.164.123 ftp.uk.debian.org 151.101.62.132 security.debian.org 51.91.38.34 download.proxmox.com # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts


apt update Output

root@proxmox:~# apt update Err:1 http://download.proxmox.com/debian/pve bullseye InRelease Connection failed [IP: 51.91.38.34 80] Err:2 http://ftp.uk.debian.org/debian bullseye InRelease Connection failed [IP: 78.129.164.123 80] Err:3 http://security.debian.org bullseye-security InRelease Connection failed [IP: 151.101.62.132 80] Err:4 http://download.proxmox.com/debian/pbs-client bullseye InRelease Connection failed [IP: 51.91.38.34 80] Err:5 http://ftp.uk.debian.org/debian bullseye-updates InRelease Connection failed [IP: 78.129.164.123 80] Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: Failed to fetch http://ftp.uk.debian.org/debian/dists/bullseye/InRelease Connection failed [IP: 78.129.164.123 80] W: Failed to fetch http://ftp.uk.debian.org/debian/dists/bullseye-updates/InRelease Connection failed [IP: 78.129.164.123 80] W: Failed to fetch http://security.debian.org/dists/bullseye-security/InRelease Connection failed [IP: 151.101.62.132 80] W: Failed to fetch http://download.proxmox.com/debian/pve/dists/bullseye/InRelease Connection failed [IP: 51.91.38.34 80] W: Failed to fetch http://download.proxmox.com/debian/pbs-client/dists/bullseye/InRelease Connection failed [IP: 51.91.38.34 80] W: Some index files failed to download. They have been ignored, or old ones used instead.
 
I meant port 80 towards the internet, not locally.

On your PVE host, have you tried:
# apt clean all
# pveupdate
# pveupgrade
this is the return from those commands

root@proxmox:/# apt clean all
root@proxmox:/# pveupdate
error reading cached package status in '/var/lib/pve-manager/pkgupdates' - malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "UPID:proxmox:00000A3...") at /usr/share/perl5/PVE/API2/APT.pm line 158.

root@proxmox:/# pveupgrade
Starting system upgrade: apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Your System is up-to-date
 
Issue is resolved : after hours of googling, multiple reinstalls. found out i just needed a proxy.

For anyone that has a similar issue, I used a HTTP proxy and made a file in /etc/apt/apt.conf and added the lines
Acquire::http::Proxy "http://USERNAME:PASSWORD@SERVER:PORT"; Acquire::https::Proxy "https://USERNAME:PASSWORD@SERVER:PORT";

Ofcourse changing the details as needed.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!