Build simply gets stuck

I was managing to build Chromium fine with Snapcraft, but for no apparent reason it now gets stuck at random points of the build.

I remembered a similar problem that Launchpad build farm hit and solved it by moving back to LXD 5.0; I did so too, but to no avail.

The current “running” build is stuck since many hours ago:

2023-09-28 17:34:02.666 ::  29500K .......... .......... .......... .......... .......... 93% 98.2M 0s
2023-09-28 17:34:02.666 ::  29550K .......... .......... .......... .......... .......... 93%  119M 0s
2023-09-28 17:34:02.667 ::  29600K .......... .......... .......... .......... .......... 93%  134M 0s
2023-09-28 17:34:02.667 ::  29650K .......... .......... .......... .......... .......... 93% 83.1M 0s
2023-09-28 17:34:02.668 ::  29700K .......... .......... .......... .......... .......... 94%  122M 0s

This is the full log. And another one, clearly not internet related..

It’s weird because upon giving up with Ctrl+C, nothing shows up (despite building with --verbosity=trace), and I’m pretty sure it did before.

The system has enough disk space:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           1.6G  1.1M  1.6G   1% /run
/dev/vda1        49G   45G  4.0G  92% /
tmpfs           7.9G     0  7.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/vda15      105M  6.1M   99M   6% /boot/efi
tmpfs           1.6G   12K  1.6G   1% /run/user/1000
tmpfs           1.0M     0  1.0M   0% /var/snap/lxd/common/ns

Top shows no CPU activity and looks like a normal, idle machine.

top - 06:25:39 up 9 days, 18:12,  3 users,  load average: 0.00, 0.00, 0.00
Tasks: 208 total,   1 running, 207 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  15983.7 total,    345.5 free,   1279.0 used,  14698.5 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.  14704.7 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
     71 root      20   0       0      0      0 S   0.3   0.0   4:34.71 kcompactd0
      1 root      20   0  169548  11816   6824 S   0.0   0.1   3:52.43 systemd
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.23 kthreadd
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp
      5 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 slub_flushwq
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 netns

I cannot open those linked logs, but see if there is a flag to increase the verbosity of the chromium build itself.

Hi Sergio,

I cannot open those linked logs

You cannot because of something in your end or in the server end?

but see if there is a flag to increase the verbosity of the chromium build itself.

Hmm, I’ll see if there is one.

But I remembered, this is a issue Launchpad builders had too when they switched from LXD 4 to 5. I’ll also try that next time I build.