Mender-convert E: You don't have enough free space in /var/cache/apt/archives/

davidlekve
Sat, 19 Oct 2024 13:40:13 +0000
General Discussions

I am getting this error when following the instructions on Convert a Mender Debian image | Mender documentation

MENDER_ARTIFACT_NAME=image-1 ./docker-mender-convert --disk-image input/testimage.img --config configs/raspberrypi4_config --overlay input/rootfs_overlay_demo/
using log file at: /home/david/tools/mender-convert/logs/convert.log.1729351043-3962
Running mender-convert --disk-image input/testimage.img --config configs/raspberrypi4_config --overlay input/rootfs_overlay_demo/
Running mender-convert-extract: --config ./work/override_compression_config --disk-image input/testimage.img --config configs/raspberrypi4_config --overlay input/rootfs_overlay_demo/
2024-10-19 15:17:23 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2024-10-19 15:17:23 [INFO] [mender-convert-extract] Using configuration file: ./work/override_compression_config
2024-10-19 15:17:23 [INFO] [mender-convert-extract] Using configuration file: configs/raspberrypi4_config
2024-10-19 15:17:23 [INFO] [mender-convert-extract] Validating disk image
2024-10-19 15:17:24 [INFO] [mender-convert-extract] Disk parsed successfully
2024-10-19 15:17:24 [INFO] [mender-convert-extract] NUMBER OF PARTS: 2 TYPE: dos
2024-10-19 15:17:24 [INFO] [mender-convert-extract] PART 1: SIZE: 512M TYPE: 0xc
2024-10-19 15:17:24 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2024-10-19 15:17:24 [INFO] [mender-convert-extract] PART 2: SIZE: 8.5G TYPE: 0x83
2024-10-19 15:17:24 [INFO] [mender-convert-extract] PART 2: extracting to work/part-2.fs
mender-convert-extract has finished. Cleaning up…
Running mender-convert-modify: --config ./work/override_compression_config --disk-image input/testimage.img --config configs/raspberrypi4_config --overlay input/rootfs_overlay_demo/
2024-10-19 15:17:42 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2024-10-19 15:17:42 [INFO] [mender-convert-modify] Using configuration file: ./work/override_compression_config
2024-10-19 15:17:42 [INFO] [mender-convert-modify] Using configuration file: configs/raspberrypi4_config
2024-10-19 15:17:44 [INFO] [mender-convert-modify] Creating state folder in the data partition for Mender add-ons
2024-10-19 15:17:44 [INFO] [mender-convert-modify] Using root device A in mender.conf: /dev/mmcblk0p2
2024-10-19 15:17:44 [INFO] [mender-convert-modify] Using root device B in mender.conf: /dev/mmcblk0p3
2024-10-19 15:17:44 [INFO] [mender-convert-modify] Creating state scripts version file.
2024-10-19 15:17:44 [INFO] [mender-convert-modify] Installing a custom /etc/fstab (see /mender-convert/logs/convert.log.1729351043-3962 for more info)
2024-10-19 15:17:44 [INFO] [mender-convert-modify] Using boot partition device in fstab: /dev/mmcblk0p1
2024-10-19 15:17:44 [INFO] [mender-convert-modify] Using data partition device in fstab: /dev/mmcblk0p4
2024-10-19 15:17:44 [INFO] [mender-convert-modify] Installing Mender client and related files
2024-10-19 15:17:44 [INFO] [mender-convert-modify] Installing Mender Auth and Mender Update version latest
2024-10-19 15:17:46 [INFO] [mender-convert-modify] Successfully downloaded mender-auth_4.0.2-1+debian+buster_arm64.deb
2024-10-19 15:17:47 [INFO] [mender-convert-modify] Installing dependencies for /mender-convert/work/deb-packages/mender-auth_4.0.2-1+debian+buster_arm64.deb
mender-convert-modify has finished. Cleaning up…
2024-10-19 15:18:03 [ERROR] [mender-convert] mender-convert failed
2024-10-19 15:18:02 [DEBUG] [mender-convert-modify] When running: (modules/chroot.sh:100): run_and_log_cmd():

sudo chroot /mender-convert/work/rootfs/ /tmp/qemu-aarch64-static /usr/bin/env env                 DEBIAN_FRONTEND=noninteractive                 DEVICE_TYPE=raspberrypi4                 apt --fix-broken --assume-yes install

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists…
Building dependency tree…
Reading state information…
Correcting dependencies… Done
The following additional packages will be installed:
dbus dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common
init-system-helpers libapparmor1 libdbus-1-3 libexpat1
libfile-find-rule-perl libgdbm-compat4 libgdbm6 libnumber-compare-perl
libperl5.36 libssl1.1 libtext-glob-perl netbase perl perl-modules-5.36
usrmerge
Suggested packages:
default-dbus-session-bus | dbus-session-bus gdbm-l10n perl-doc
libterm-readline-gnu-perl | libterm-readline-perl-perl make
libtap-harness-archive-perl
The following NEW packages will be installed:
dbus dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common
init-system-helpers libapparmor1 libdbus-1-3 libexpat1
libfile-find-rule-perl libgdbm-compat4 libgdbm6 libnumber-compare-perl
libperl5.36 libssl1.1 libtext-glob-perl netbase perl perl-modules-5.36
usrmerge
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 9551 kB of archives.
After this operation, 57.2 MB of additional disk space will be used.
E: You don’t have enough free space in /var/cache/apt/archives/.

2024-10-19 15:18:03 [ERROR] [mender-convert] mender-convert failed
2024-10-19 15:18:03 [ERROR] [mender-convert] mender-convert exit code: 100

As the logs show, it is a 8.5 gb image and I have tried allocating more than enough space for docker.

2 posts - 1 participant