Self hosting for free with Oracle Cloud

nvm fixed it

2 Likes

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.

See:

2 Likes

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 'https://github.com/discourse/pups.git/': Could not resolve host: github.com

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:

4 Likes

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:

6 Likes

Just chiming in here - big thanks to Jon and the blog post above he created! That helped me get up and running. Thanks!

4 Likes

I’ve created an in-depth tutorial to help install Discourse on Oracle’s free plan.

It’s a wiki: feel free to improve it!

6 Likes

one addition to the free Oracle tier - you can also select the new “Ampere” ARM instances, with up-to 4 cores and 12 GB of RAM in the free tier. Installation of Discourse works without a glitch on ARM processors apparently, and performance is pretty impressive too. Just installed - will see how it holds.

2 Likes

Interesting! Is that a new addition? I don’t know much about this stuff, but is that like a “standard” virtual machine on which Discourse can be installed as a supported install?
A 4 cores 12 GB RAM for free seems… Weird?

2 Likes

It’s because it’s ARM based instead of x86_64. And Discourse only recently gained support for ARM.

2 Likes

The free oracle tier allows up to 2 virtual machines. Does this one takes one space as well?

1 Like

Yeah, but I’m with @Canapin. 4 cores and 12 GB RAM sounds like a lot for a free tier, regardless of the processor type.

1 Like

Be aware that for this price (free tier) there is of course almost no support, and… well, I’ve been quite disappointed to see that my discourse sandbox had disappeared few weeks ago, without the possibility of creating a new one, the stock of Ampere instances being depleted… :sob:
(but it worked quite well)

1 Like

Do you mean that it disappeared by itself, without any action from you, or any warning from Oracle?

2 Likes

I suspect that what happened here is that there is a free trial. You can trial higher power instances like this for a short time. Then after that, you have to pay.

There is also a very low powered free tier that stays available.

2 Likes

indeed, that was half of the free tier, 2 ampere vcore and 12GB RAM

3 Likes
  • Ampere A1 Compute instances (Arm processor): All tenancies get the first 3,000 OCPU hours and 18,000 GB hours per month for free for VM instances using the VM.Standard.A1.Flex shape, which has an Arm processor. For Always Free tenancies, this is equivalent to 4 OCPUs and 24 GB of memory.

https://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier_topic-Always_Free_Resources.htm#ariaid-title2

I have trouble understanding, but… Does that mean that the more we use its capacity, the more “hours” it spends depending on its specs or something like that?

2 Likes

It worked well for some time then I tried to spin the other half of the free tier only to see an error (and the shape had become unavailable), and unfortunately no support, short of upgrading (which I understand, I’m not complaining).

2 Likes

Since we’re here to use Discourse on this particular free hosting, and I guess often to try Discourse as an admin and do various tests, I’d advise using their low specs servers instead of playing with new features that may have obscure limitations.

1 CPU, 1 GB RAM, 500 MB of bandwidth, and 100 GB HDD is enough for that kind of needs, or for a very small community that doesn’t care about a few seconds when opening a page.

For anyone that wants to use more robust solutions, regular hosting companies like Digital Ocean, Hetzner, etc… Will do it for cheap:


A personal note: on one of my free instances, I host a private, personal Discourse that I use to store various information regarding IT stuff -problems, solutions, tools, etc-, but also movies to watch, music links, books information, etc… It does its job perfectly, for free. I keep regular, external backups using rclone. So these low-specs VM can be used for this kind of stuff.

3 Likes

Hey can you please share the username and the password for the file, I can not access it! Thx in advance!

No matter what I try, I can’t seem to get the ports open. Open ports in the dashboard/security list, then in the terminal. To confirm the ports are open, curl -i http://ip.address:80 should report something other than, curl: (7) Failed to connect to ...:80 right?