cannot upgrade PBS: No space left on device

onlineapps

Active Member
Jan 21, 2020
71
6
28
hi, i get this error after tried to upgrade PBS, but i have enough space.
Code:
root@pbs1:~# df -h
Filesystem        Size  Used Avail Use% Mounted on
udev              1.9G     0  1.9G   0% /dev
tmpfs             391M  1.3M  390M   1% /run
rpool/ROOT/pbs-1   30G  4.1G   26G  14% /
tmpfs             2.0G     0  2.0G   0% /dev/shm
tmpfs             5.0M     0  5.0M   0% /run/lock
rpool              26G  128K   26G   1% /rpool
rpool/ROOT         26G  128K   26G   1% /rpool/ROOT
tmpfs             391M  8.0K  391M   1% /run/user/0

error log:
Code:
root@pbs1:/# apt autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
root@pbs1:/# apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Setting up proxmox-kernel-6.5.13-5-pve-signed (6.5.13-5) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.5.13-5-pve /boot/vmlinuz-6.5.13-5-pve
update-initramfs: Generating /boot/initrd.img-6.5.13-5-pve
W: No zstd in /usr/bin:/sbin:/bin, using gzip
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/16F0-7057
        Copying kernel 6.2.16-20-pve
        Copying kernel 6.5.11-8-pve
        Copying kernel 6.5.13-5-pve
cp: error writing '/var/tmp/espmounts/16F0-7057/initrd.img-6.5.13-5-pve': No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.5.13-5-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.13-5-pve-signed (--configure):
 installed proxmox-kernel-6.5.13-5-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.5:
 proxmox-kernel-6.5 depends on proxmox-kernel-6.5.13-5-pve-signed | proxmox-kernel-6.5.13-5-pve; however:
  Package proxmox-kernel-6.5.13-5-pve-signed is not configured yet.
  Package proxmox-kernel-6.5.13-5-pve is not installed.
  Package proxmox-kernel-6.5.13-5-pve-signed which provides proxmox-kernel-6.5.13-5-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.5 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.5.13-5-pve
W: No zstd in /usr/bin:/sbin:/bin, using gzip
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/16F0-7057
        Copying kernel 6.2.16-20-pve
        Copying kernel 6.5.11-8-pve
        Copying kernel 6.5.13-5-pve
cp: error writing '/var/tmp/espmounts/16F0-7057/initrd.img-6.5.13-5-pve': No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 proxmox-kernel-6.5.13-5-pve-signed
 proxmox-kernel-6.5
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

when i tried to upgrade i get same error, and after i tried to autoclean, but not help.
 
I always run apt autoremove after each upgrade so old kernels get removed to not run into this problem, of boot partition running out of space, in the first place.
 
I always run apt autoremove after each upgrade so old kernels get removed to not run into this problem, of boot partition running out of space, in the first place.
i made
Code:
root@pbs1:~# apt autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
 
Try to first remove 6.2.16-20-pve to free up space in the ESP area - if you do not need this old kernel anymore.

Possibly (not tested) by apt purge proxmox-kernel-6.2...
Code:
root@pbs1:~# apt purge proxmox-kernel-6.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  proxmox-kernel-6.2* pve-kernel-6.2*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 28.7 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 90122 files and directories currently installed.)
Removing pve-kernel-6.2 (8.0.5) ...
Removing proxmox-kernel-6.2 (6.2.16-20) ...
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Setting up proxmox-kernel-6.5.13-5-pve-signed (6.5.13-5) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.5.13-5-pve /boot/vmlinuz-6.5.13-5-pve
update-initramfs: Generating /boot/initrd.img-6.5.13-5-pve
W: No zstd in /usr/bin:/sbin:/bin, using gzip
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/16F0-7057
        Copying kernel 6.5.11-8-pve
        Copying kernel 6.5.13-5-pve
cp: error writing '/var/tmp/espmounts/16F0-7057/initrd.img-6.5.13-5-pve': No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.5.13-5-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.13-5-pve-signed (--configure):
 installed proxmox-kernel-6.5.13-5-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.5:
 proxmox-kernel-6.5 depends on proxmox-kernel-6.5.13-5-pve-signed | proxmox-kernel-6.5.13-5-pve; however:
  Package proxmox-kernel-6.5.13-5-pve-signed is not configured yet.
  Package proxmox-kernel-6.5.13-5-pve is not installed.
  Package proxmox-kernel-6.5.13-5-pve-signed which provides proxmox-kernel-6.5.13-5-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.5 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 proxmox-kernel-6.5.13-5-pve-signed
 proxmox-kernel-6.5
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
I always run apt autoremove after each upgrade so old kernels get removed to not run into this problem, of boot partition running out of space, in the first place.
i made
Code:
root@pbs1:~# apt autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

apt autoclean is not apt autoremove...


Code:
root@pbs1:~# apt purge proxmox-kernel-6.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  proxmox-kernel-6.2* pve-kernel-6.2*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 28.7 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 90122 files and directories currently installed.)
Removing pve-kernel-6.2 (8.0.5) ...
Removing proxmox-kernel-6.2 (6.2.16-20) ...
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Setting up proxmox-kernel-6.5.13-5-pve-signed (6.5.13-5) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.5.13-5-pve /boot/vmlinuz-6.5.13-5-pve
update-initramfs: Generating /boot/initrd.img-6.5.13-5-pve
W: No zstd in /usr/bin:/sbin:/bin, using gzip
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/16F0-7057
        Copying kernel 6.5.11-8-pve
        Copying kernel 6.5.13-5-pve
cp: error writing '/var/tmp/espmounts/16F0-7057/initrd.img-6.5.13-5-pve': No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.5.13-5-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.13-5-pve-signed (--configure):
 installed proxmox-kernel-6.5.13-5-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.5:
 proxmox-kernel-6.5 depends on proxmox-kernel-6.5.13-5-pve-signed | proxmox-kernel-6.5.13-5-pve; however:
  Package proxmox-kernel-6.5.13-5-pve-signed is not configured yet.
  Package proxmox-kernel-6.5.13-5-pve is not installed.
  Package proxmox-kernel-6.5.13-5-pve-signed which provides proxmox-kernel-6.5.13-5-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.5 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 proxmox-kernel-6.5.13-5-pve-signed
 proxmox-kernel-6.5
E: Sub-process /usr/bin/dpkg returned an error code (1)

You need to free up some space on your ESP(s) manually:
https://forum.proxmox.com/threads/lvm-thin-blocks-boot-and-now-is-missing.114540/post-498360
 
  • Like
Reactions: vraa

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!