Self hosting for free with Oracle Cloud

How would you enable swap for that?

1 Like

Discourse-setup automatically creates a swap file.


Huh, it didn’t for me.

nvm fixed it


Correct, because your server doesn’t have enough physical RAM. It failed the system requirements check, so installation didn’t proceed.

You need 1GB RAM to install, and a 1GB system will also need swap. You don’t have 1GB, your system isn’t supported.



I’ve tried this and the old adage rings true: you get what you pay for.

The default is image Oracle Linux, which does not have 1GB as advertised. I used the Ubuntu image that is eligible for the free tier and that did have 1GB. Or rather close enough for Discourse to install.

This was super helpful because I got lost in a maze of contradictory suggestions when following the script’s advice to Google “open ports oracle cloud”.

It was disappointing to see Oracle dropped free SMTP service, but setting up Mailjet wasn’t too complicated. You still get what you pay for, but at least you aren’t paying the price of a byzantine setup. And you’ll need an email provider if you move to a different hosting service anyway.

Having plowed through those troubles, I’m now getting this error from discourse-setup:

Launcher is up-to-date
cd /pups && git pull && /pups/bin/pups --stdin
fatal: unable to access '': Could not resolve host:

I suspect I’ve messed something up while fighting with the firewall settings. It looks like this is still an option if you don’t want to spend any money, but I think I’m giving up for now. Hopefully these notes will help others in the future.

Oh. I also got an email from an Oracle sales person just now. Never change, Oracle. :wink:


That does seem to be the problem. I started over and worked out the kinks. I also wrote up the process on my blog. Gonna try it out for a while as my blog comment system and see how it goes. :slight_smile: