Self hosting for free (with caveats!) with Oracle Cloud

How would you enable swap for that?

1 „Gefällt mir“

Discourse-setup automatically creates a swap file.

2 „Gefällt mir“

Huh, it didn’t for me.

nvm fixed it

2 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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

4 „Gefällt mir“

Ich habe ein ausführliches Tutorial erstellt, das bei der Installation von Discourse auf Oracles kostenlosem Plan hilft.

Es ist ein Wiki: Fühlen Sie sich frei, es zu verbessern!

6 „Gefällt mir“

eine Ergänzung zur kostenlosen Oracle-Stufe – Sie können auch die neuen „Ampere“-ARM-Instanzen mit bis zu 4 Kernen und 12 GB RAM in der kostenlosen Stufe auswählen. Die Installation von Discourse funktioniert anscheinend ohne Probleme auf ARM-Prozessoren, und die Leistung ist auch ziemlich beeindruckend. Gerade installiert – mal sehen, wie es sich bewährt.

2 „Gefällt mir“

Interessant! Ist das eine neue Ergänzung? Ich weiß nicht viel über diese Dinge, aber ist das wie eine „Standard“-Virtuelle Maschine, auf der Discourse als unterstützte Installation installiert werden kann? 4 Kerne und 12 GB RAM kostenlos scheinen… seltsam?

2 „Gefällt mir“

Das liegt daran, dass es ARM-basiert und nicht x86_64 ist. Und Discourse hat erst kürzlich Unterstützung für ARM erhalten.

2 „Gefällt mir“

Die kostenlose Oracle-Stufe erlaubt bis zu 2 virtuelle Maschinen. Nimmt diese hier auch einen Platz ein?

1 „Gefällt mir“

Ja, aber ich bin bei @Canapin. 4 Kerne und 12 GB RAM klingen unabhängig vom Prozessortyp nach viel für eine kostenlose Stufe.

1 „Gefällt mir“

Seien Sie sich bewusst, dass es für diesen Preis (kostenlose Stufe) natürlich fast keinen Support gibt, und… nun, ich war ziemlich enttäuscht, als ich vor ein paar Wochen feststellte, dass meine Discourse-Sandbox verschwunden war, ohne die Möglichkeit, eine neue zu erstellen, da der Bestand an Ampere-Instanzen erschöpft war… :sob:
(aber es hat ziemlich gut funktioniert)

1 „Gefällt mir“

Meinen Sie, dass sie von selbst verschwunden ist, ohne Ihr Zutun oder eine Warnung von Oracle?

2 „Gefällt mir“

Ich vermute, dass es hier eine kostenlose Testversion gab. Man kann höherwertige Instanzen wie diese für kurze Zeit ausprobieren. Danach muss man bezahlen.

Es gibt auch eine kostenlose Stufe mit sehr geringer Leistung, die verfügbar bleibt.

2 „Gefällt mir“

in der Tat, das war die Hälfte der kostenlosen Stufe, 2 Ampere VCore und 12 GB RAM

3 „Gefällt mir“
  • Ampere A1 Compute-Instanzen (Arm-Prozessor): Alle Tenancies erhalten monatlich die ersten 3.000 OCPU-Stunden und 18.000 GB-Stunden kostenlos für VM-Instanzen, die die VM.Standard.A1.Flex Shape verwenden, welche über einen Arm-Prozessor verfügt. Für Always Free Tenancies entspricht dies 4 OCPUs und 24 GB Arbeitsspeicher.

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

Ich habe Schwierigkeiten, das zu verstehen, aber… Bedeutet das, dass je mehr wir seine Kapazität nutzen, desto mehr „Stunden“ verbraucht werden, abhängig von seinen Spezifikationen oder so etwas?

2 „Gefällt mir“