Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
swapon: /swapfile: swapon failed: Operation not permitted
Does not run due to low memory on a droplet with 2GB.
But swapon operation is not permitted here: “swapon: /swapfile: swapon failed: Operation not permitted”
Followed https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-18-04 to no avail - cannot enable swap in the last step.
What else can I do to enable swap, even if temporarily?
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.×