Update from openhabian with issues

Wanted to update via openhabian-config console. 7 packages are not able to install, with below failure. How to fix this?

2023-10-15_15:00:49_CEST [openHABian] Updating repositories and upgrading installed packages...
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.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
dpkg: could not open log '/var/log/dpkg.log': No space left on device
Setting up cpio (2.13+dfsg-7.1~deb11u1) ...
update-alternatives: error: cannot append to '/var/log/alternatives.log': No space left on device
dpkg: error processing package cpio (--configure):
 installed cpio package post-installation script subprocess returned error exit status 2
Setting up openssh-client (1:8.4p1-5+deb11u2) ...
update-alternatives: error: cannot append to '/var/log/alternatives.log': No space left on device
dpkg: error processing package openssh-client (--configure):
 installed openssh-client package post-installation script subprocess returned error exit status 2
Setting up libblas3:armhf (3.9.0-3+deb11u1) ...
update-alternatives: error: cannot append to '/var/log/alternatives.log': No space left on device
dpkg: error processing package libblas3:armhf (--configure):
 installed libblas3:armhf package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of openssh-sftp-server:
 openssh-sftp-server depends on openssh-client (= 1:8.4p1-5+deb11u2); however:
  Package openssh-client is not configured yet.

dpkg: error processing package openssh-sftp-server (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of liblapack3:armhf:
 liblapack3:armhf depends on libblas3 | libblas.so.3; however:
  Package libblas3:armhf is not configured yet.
  Package libblas.so.3 is not installed.
  Package libblas3:armhf which provides libblas.so.3 is not configured yet.

dpkg: error processing package liblapack3:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ssh:
 ssh depends on openssh-client (>= 1:8.4p1-5+deb11u2); however:
  Package openssh-client is not configured yet.

dpkg: error processing package ssh (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openssh-server:
 openssh-server depends on openssh-client (= 1:8.4p1-5+deb11u2); however:
  Package openssh-client is not configured yet.
 openssh-server depends on openssh-sftp-server; however:
  Package openssh-sftp-server is not configured yet.

dpkg: error processing package openssh-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u7) ...
Errors were encountered while processing:
 cpio
 openssh-client
 libblas3:armhf
 openssh-sftp-server
 liblapack3:armhf
 ssh
 openssh-server
Updating FireMotD available updates count ... 
W: Problem unlinking the file /var/log/apt/eipp.log.xz - FileFd::Open (28: No space left on device)
W: Could not open file /var/log/apt/eipp.log.xz - open (17: File exists)
W: Could not open file '/var/log/apt/eipp.log.xz' - EIPP::OrderInstall (17: File exists)
W: Could not open file '/var/log/apt/term.log' - OpenLog (28: No space left on device)
E: Sub-process /usr/bin/dpkg returned an error code (1)
FAILED

Looks like the first problem is

this means the disk is full.

  • login to the host
  • run: df -h
  • what is shown ?

I have an SSD w 256GB… enough space left…

openhabian@openhabian:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       220G  8.9G  203G   5% /
devtmpfs        3.8G     0  3.8G   0% /dev
tmpfs           3.8G  4.0K  3.8G   1% /dev/shm
tmpfs           1.6G  148M  1.4G  10% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/sda1       255M   53M  203M  21% /boot
/dev/zram1      721M  180M  489M  27% /opt/zram/zram1
overlay1        721M  180M  489M  27% /var/lib/openhab/persistence
/dev/zram2      323M   51M  248M  18% /opt/zram/zram2
overlay2        323M   51M  248M  18% /var/lib/influxdb
/dev/zram3      974M  958M     0 100% /opt/zram/zram3
overlay3        974M  958M     0 100% /var/log
tmpfs           777M     0  777M   0% /run/user/1000

Hi have you confirmed permissions on overlay3 /var/log
Make sure the account running openhab has read write access
But looking at your screen shot you have 100% used for overlay3 0 available
same for /dev/zram3 100% used 0 available. so the message is correct no space available for that mount
Yes you do have free space 220Gig but it is allocated to root??? so that is where all you free space resides. Just nothing left to allocate to var unfortunately without playing with partitions…

/var/log on overlay3 which is related to /dev/zram3 is filled up to 100%.
That is the space that prevents from anything to be added to log files.
Cleanup files on that area or resize it or remove zram on SSD. Check what is being logged it may be an option to reduce the amount to be logged.

Thanks, I’ve deactivated zram and afterwards it was successful.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.