apt update ceph enterprise repo file unexpected size

Jul 24, 2024
3
0
1
When I run apt update on two of my three 7.4 pve nodes it fails.

root@pve2:~# apt clean
root@pve2:~# apt update
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://ftp.us.debian.org/debian bullseye InRelease
Hit:3 http://ftp.us.debian.org/debian bullseye-updates InRelease
Get:4 http://download.proxmox.com/debian/ceph-quincy bullseye InRelease [2,655 B]
Hit:5 https://enterprise.proxmox.com/debian/pve bullseye InRelease
Get:6 http://download.proxmox.com/debian/ceph-quincy bullseye/main amd64 Packages [68.1 kB]
Err:6 http://download.proxmox.com/debian/ceph-quincy bullseye/main amd64 Packages
File has unexpected size (1246 != 68094). Mirror sync in progress? [IP: 144.217.225.162 80]
Hashes of expected file:
- Filesize:68094 [weak]
- SHA512:114eb0d57347e6a10c6282a4c9e1c59375be7a80a9d9ccbe7111b987ffa5a8964d29a270c38df0e804598af3024e9eb02885bd14df137e9b4751f331a35f80af
- SHA256:5e892e6ee0d6420da4ff9433738f770e95c6a8b7d84bd3d00214c1fcacb79ff1
- MD5Sum:d19a198bf5cccff9086d498ca78814c4 [weak]
Release file created at: Thu, 22 Feb 2024 14:47:20 +0000
Fetched 2,655 B in 1s (4,461 B/s)
Reading package lists... Done
E: Failed to fetch http://download.proxmox.com/debian/ceph-quincy/dists/bullseye/main/binary-amd64/Packages.gz File has unexpected size (1246 != 68094). Mirror sync in progress? [IP: 144.217.225.162 80]
Hashes of expected file:
- Filesize:68094 [weak]
- SHA512:114eb0d57347e6a10c6282a4c9e1c59375be7a80a9d9ccbe7111b987ffa5a8964d29a270c38df0e804598af3024e9eb02885bd14df137e9b4751f331a35f80af
- SHA256:5e892e6ee0d6420da4ff9433738f770e95c6a8b7d84bd3d00214c1fcacb79ff1
- MD5Sum:d19a198bf5cccff9086d498ca78814c4 [weak]
Release file created at: Thu, 22 Feb 2024 14:47:20 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@pve2:~# more /etc/apt/sources.list.d/ceph.list
deb http://download.proxmox.com/debian/ceph-quincy bullseye main
 
Hi,
is the error still present? As the message suggests, this is usually a transient failure during a sync (Mirror sync in progress) which should not take too much time.
 
Then you might receive a short file for some other reason. Any difference in network configuration with these nodes? Are firewall or proxies present? Is other network traffic for the problematic node fine?
 
These servers are a few years old. Nothing has changed except I am trying to upgrade them from 7.4 to 8.2. I changed the CEPH repo on all three nodes to upgrade from Pacific to Quincy, but I only get this error on two of them. I have checked the network config, and apt config. It matches exactly. The only issue is the CEPH repo and you can see the address for it in the output. All other repos work fine if I comment out the CEPH repo. The old CEPH repo Pacific works fine too. The 3 nodes are on the same subnet and all traffic from the subnet is treated the same in the firewall.
 
What size does the file have if you manually download it via e.g. wget? If nothing helps, you could still try
Code:
rm -rf /var/lib/apt/lists/*
apt update
 

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!