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

How would you enable swap for that?

1 me gusta

Discourse-setup automatically creates a swap file.

2 Me gusta

Huh, it didn’t for me.

nvm fixed it

2 Me gusta

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 Me gusta

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 Me gusta

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 Me gusta

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

4 Me gusta

He creado un tutorial detallado para ayudar a instalar Discourse en el plan gratuito de Oracle.

Es una wiki: ¡siéntete libre de mejorarla!

6 Me gusta

una adición al nivel gratuito de Oracle: también puedes seleccionar las nuevas instancias ARM “Ampere”, con hasta 4 núcleos y 12 GB de RAM en el nivel gratuito. Al parecer, la instalación de Discourse funciona sin problemas en los procesadores ARM, y el rendimiento también es bastante impresionante. Acabo de instalarlo, ya veremos cómo se comporta.

2 Me gusta

¡Interesante! ¿Es esa una nueva adición? No sé mucho sobre estas cosas, pero ¿es como una máquina virtual “estándar” en la que Discourse puede instalarse como una instalación compatible?
¿4 núcleos y 12 GB de RAM gratis parece… raro?

2 Me gusta

Es porque está basado en ARM en lugar de x86_64. Y Discourse solo recientemente obtuvo soporte para ARM.

2 Me gusta

El nivel gratuito de Oracle permite hasta 2 máquinas virtuales. ¿Esta también ocupa un espacio?

1 me gusta

Sí, pero estoy con @Canapin. 4 núcleos y 12 GB de RAM suenan a mucho para un nivel gratuito, independientemente del tipo de procesador.

1 me gusta

Ten en cuenta que para este precio (nivel gratuito) casi no hay soporte, y… bueno, me ha decepcionado bastante ver que mi sandbox de Discourse desapareció hace unas semanas, sin posibilidad de crear uno nuevo, ya que las instancias de Ampere se habían agotado… :sob:
(pero funcionó bastante bien)

1 me gusta

¿Quieres decir que desapareció por sí solo, sin ninguna acción tuya, ni ninguna advertencia de Oracle?

2 Me gusta

Sospecho que lo que sucedió aquí es que hay una prueba gratuita. Puedes probar instancias de mayor potencia como esta por un corto tiempo. Luego de eso, tienes que pagar.

También hay un nivel gratuito de muy baja potencia que permanece disponible.

2 Me gusta

De hecho, esa era la mitad del nivel gratuito, 2 vcore Ampere y 12 GB de RAM.

3 Me gusta
  • Instancias de cómputo Ampere A1 (procesador Arm): Todas las tenencias obtienen las primeras 3.000 horas de OCPU y 18.000 GB horas por mes gratis para instancias de VM que utilizan la forma VM.Standard.A1.Flex, que tiene un procesador Arm. Para las tenencias Siempre Gratis, esto es equivalente a 4 OCPU y 24 GB de memoria.

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

Tengo problemas para entender, pero… ¿eso significa que cuanto más usamos su capacidad, más “horas” consume dependiendo de sus especificaciones o algo así?

2 Me gusta