Installation of cyberpanel fails during SWAP set

Hello, I am trying to install cyberpanel on my vServer running Ubuntu 20.04.
During the installation process the installation gets stuck at this point:

/cyberpanel.swap swap swap sw 0 0
vm.swappiness = 10

SWAP set…

The server is then not accessible anymore and I need to restart it to be able to access it again. But the installation is not finished at this point.
I also tried installing it on Ubuntu 22.04 but the same problem occurs.

Does anybody know this issue and how to solve it?

Thanks for your help!

Welcome @cyberinnovations Happy you are here

This is not related to cyberpanel but you will need to lower the swapiness of your kernel i.e.

$ nano /etc/sysctl.conf

set vm.swappiness = 10 to vm.swappiness = 1 or anything from 1 to 6. This instructs the kernel to aggressively avoid swapping out