These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
This might be a really long shot however, can you try using sudo
sudo swapon: /swapfile
It should help with your problem. If it still exists, please make sure you have the correct ownership and permission on the swapfile. To do so, type in
sudo chmod 600 /swapfile
Regards,
KDSys
The developer cloud
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.