Bootstrap failed with exit code 128

the single-session output on running your lines is

Last login: Wed Jul 23 13:16:35 2025
root@ubuntu:~# echo "/swapfile       swap    swap    auto      0       0" | tee                                                                                                                                                                              -a /etc/fstab
/swapfile       swap    swap    auto      0       0
root@ubuntu:~# sysctl -w vm.swappiness=10
vm.swappiness = 10
root@ubuntu:~# echo 'vm.swappiness = 10' > /etc/sysctl.d/30-discourse-swap.conf
root@ubuntu:~# free -h
               total        used        free      shared  buff/cache   available
Mem:           7.7Gi       3.0Gi       389Mi       671Mi       4.3Gi       3.7Gi
Swap:             0B          0B          0B
root@ubuntu:~#

i then ran reboot in a VNC, and free -h returned the desired 2GB of Swap space :slightly_smiling_face: