Filesystem.squashfs fails when building sagitta

I followed the instructions for building vyos in the manual. I use the docker container and then sudo ./build-vyos-image iso --architecture amd64 --build-by "root@local". It runs for quite a long time but eventually it seems filesystem.squahfs is killeds somewhere in the middlel (around 26%) and hence build fails:

[...]
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
[2023-12-25 08:21:13] lb binary_rootfs 
P: Begin building root filesystem image...
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
  liblzo2-2
The following NEW packages will be installed:
  liblzo2-2 squashfs-tools
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 240 kB of archives.
After this operation, 645 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 liblzo2-2 amd64 2.10-2 [56.9 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 squashfs-tools amd64 1:4.5.1-1 [183 kB]
Fetched 240 kB in 0s (1582 kB/s)    
Selecting previously unselected package liblzo2-2:amd64.
(Reading database ... 9045 files and directories currently installed.)
Preparing to unpack .../liblzo2-2_2.10-2_amd64.deb ...
Unpacking liblzo2-2:amd64 (2.10-2) ...
Selecting previously unselected package squashfs-tools.
Preparing to unpack .../squashfs-tools_1%3a4.5.1-1_amd64.deb ...
Unpacking squashfs-tools (1:4.5.1-1) ...
Setting up liblzo2-2:amd64 (2.10-2) ...
Setting up squashfs-tools (1:4.5.1-1) ...
Processing triggers for libc-bin (2.36-9+deb12u3) ...
P: Preparing squashfs image...
P: This may take a while.
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on filesystem.squashfs, block size 262144.
[===========================================\                                                                                                                         ] 14419/53781  26%Killed
E: An unexpected failure occurred, exiting...
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
vyos_bld@684ecf480f1a:/vyos/vyos-build$ 

What could be the cause for this and how can I debug further?

Out of ram or out of diskspace?

Which version were you building, latest nightly (1.5)?

2 Likes

This was it, thanks!

Was a container and I increased RAM to 4GB, now it went through

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