[SOLVED] pveam update failed / unable to unpack

SuperManni72

New Member
Mar 29, 2025
7
1
3
Hello,

since yesterday afternoon, there are "update failed" error-messages in my /var/log/pveam.log file. Before, the daily-morning update was successful.

2025-04-04 05:17:47 starting update
2025-04-04 05:17:47 start download http://download.proxmox.com/images/aplinfo-pve-8.dat.asc
2025-04-04 05:17:47 download finished: 200 OK
2025-04-04 05:17:47 start download http://download.proxmox.com/images/aplinfo-pve-8.dat.gz
2025-04-04 05:17:47 download finished: 200 OK
2025-04-04 05:17:48 signature verification: gpgv: Signature made Fri Feb 28 15:23:10 2025 CET
2025-04-04 05:17:48 signature verification: gpgv: using RSA key F4E136C67CDCE41AE6DE6FC81140AF8F639E0C39
2025-04-04 05:17:48 signature verification: gpgv: Good signature from "Proxmox Bookworm Release Key <proxmox-release@proxmox.com>"
2025-04-04 05:17:48 update successful
2025-04-04 05:17:48 start download https://releases.turnkeylinux.org/pve/aplinfo.dat.asc
2025-04-04 05:17:48 download finished: 200 OK
2025-04-04 05:17:48 start download https://releases.turnkeylinux.org/pve/aplinfo.dat.gz
2025-04-04 05:17:48 download finished: 200 OK
2025-04-04 05:17:48 signature verification: gpgv: Signature made Wed Nov 20 08:20:35 2024 CET
2025-04-04 05:17:48 signature verification: gpgv: using RSA key 694CFF26795A29BAE07B4EB585C25E95A16EB94D
2025-04-04 05:17:48 signature verification: gpgv: Good signature from "Turnkey Linux Release Key <release@turnkeylinux.com>"
2025-04-04 05:17:48 update successful
2025-04-04 19:49:11 starting update
2025-04-04 19:49:11 start download http://download.proxmox.com/images/aplinfo-pve-8.dat.asc
2025-04-04 19:49:11 download finished: 200 OK
2025-04-04 19:49:11 start download http://download.proxmox.com/images/aplinfo-pve-8.dat.gz
2025-04-04 19:49:11 download finished: 200 OK
2025-04-04 19:49:11 update failed: unable to unpack '/var/lib/pve-manager/apl-info/pveam-download.proxmox.com.tmp.1534489.gz'
2025-04-04 19:49:11 start download https://releases.turnkeylinux.org/pve/aplinfo.dat.asc
2025-04-04 19:49:12 download finished: 200 OK
2025-04-04 19:49:12 start download https://releases.turnkeylinux.org/pve/aplinfo.dat.gz
2025-04-04 19:49:12 download finished: 200 OK
2025-04-04 19:49:12 update failed: unable to unpack '/var/lib/pve-manager/apl-info/pveam-releases.turnkeylinux.org.tmp.1534489.gz'

I have already executed apt-get update && apt-get upgrade.
Everytime, when I execute "pveam update" from pve shell, the same errors will occur.

Here is the content of the library directory
root@pve:> ls -l /var/lib/pve-manager/apl-info
total 72
-rw-r--r-- 1 root root 11664 Apr 5 05:30 download.proxmox.com
-rw-r--r-- 1 root root 58118 Apr 5 05:30 releases.turnkeylinux.org

First, I thought this could be a problem with access-rights ..., but when I download / gunzip manually, it works…

cd /var/lib/pve-manager/apl-info
wget https://releases.turnkeylinux.org/pve/aplinfo.dat.gz
gunzip aplinfo.dat.gz
ls -l
total 132
-rw-r--r-- 1 root root 58118 Nov 20 08:22 aplinfo.dat
-rw-r--r-- 1 root root 11664 Apr 5 05:30 download.proxmox.com
-rw-r--r-- 1 root root 58118 Apr 5 05:30 releases.turnkeylinux.org

So, currently the problem is, that I cannot setup new LXC-Containers based on Proxmox Helper Scripts, because they make an update of the templates and breaks before creating the container with "update failed - see /var/log/pveam.log for details".

Has someone an idea ?

Thanks,
Markus
 
I have already executed apt-get update && apt-get upgrade.
Don't use apt-get upgrade on Proxmox; always use apt-get dist-upgrade: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#system_software_updates
Everytime, when I execute "pveam update" from pve shell, the same errors will occur.
It works fine here (but I have never run community helper scripts). What is your Proxmox version (pveversion -v)? Maybe your drive is almost full (df -h /)?
So, currently the problem is, that I cannot setup new LXC-Containers based on Proxmox Helper Scripts,
Those scripts are not provided by Proxmox. Maybe the people that do develop and maintain them can help you here: https://github.com/community-scripts/ProxmoxVE/discussions ?
 
Don't use apt-get upgrade on Proxmox; always use apt-get dist-upgrade: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#system_software_updates
Ok, thanks. Executed.
Code:
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.
It works fine here (but I have never run community helper scripts). What is your Proxmox version (pveversion -v)? Maybe your drive is almost full (df -h /)?
Code:
pveversion -v
proxmox-ve: 8.3.0 (running kernel: 6.8.12-9-pve)
pve-manager: 8.3.5 (running version: 8.3.5/dac3aa88bac3f300)
proxmox-kernel-helper: 8.1.1
proxmox-kernel-6.8: 6.8.12-9
proxmox-kernel-6.8.12-9-pve-signed: 6.8.12-9
proxmox-kernel-6.8.12-4-pve-signed: 6.8.12-4

Code:
df -h
/dev/fuse                                   fuse            1G    1G        1G   1% /etc/pve
/dev/mapper/pve-root                        ext4           94G    5G       85G   6% /
Those scripts are not provided by Proxmox. Maybe the people that do develop and maintain them can help you here: https://github.com/community-scripts/ProxmoxVE/discussions ?
But the problem is a general problem with pveam update

I have done additional tests: pveupdate is working (which is called from the daily-executed service-unit)
Code:
pveupdate
cat /var/log/pveam.log
2025-04-05 12:05:16 starting update
2025-04-05 12:05:16 start download http://download.proxmox.com/images/aplinfo-pve-8.dat.asc
2025-04-05 12:05:16 download finished: 200 OK
2025-04-05 12:05:16 start download http://download.proxmox.com/images/aplinfo-pve-8.dat.gz
2025-04-05 12:05:16 download finished: 200 OK
2025-04-05 12:05:16 signature verification: gpgv: Signature made Fri Feb 28 15:23:10 2025 CET
2025-04-05 12:05:16 signature verification: gpgv:                using RSA key F4E136C67CDCE41AE6DE6FC81140AF8F639E0C39
2025-04-05 12:05:16 signature verification: gpgv: Good signature from "Proxmox Bookworm Release Key <proxmox-release@proxmox.com>"
2025-04-05 12:05:16 update successful

So, why there is a problem only with pveam update but not with pveupdate ?
What is the difference between pveam update and pveupdate ?


I have looked into the source-code, but seen nothing special with the gunzip:
pve-manager / VE / APLInfo.PM,
sub download_aplinfo {
...
eval { run_command(["gunzip", "-f", $tmpgz]) };
die "update failed: unable to unpack '$tmpgz'\n" if $@;
...
 
Last edited:
Hi,
please share the full output of pveversion -v. Do you have any proxy/firewall/similar configured (e.g. http_proxy in /etc/pve/datacenter.cfg)?

You could try to modify the line for the error message and then re-run pveam update on the CLI to hopefully get a more descriptive error:
die "update failed: unable to unpack '$tmpgz' - $@\n" if $@;