WARNING: Discourse requires 1GB RAM

Hi all!

I’ve been trying to install Discourse, but without success so far.

I have a VPS with 1 GB ram and a 2gb swap file. Whenever I run ./discourse-setup I get the following error. (I’ve done a few clean installs on this VPS and also tried with 5b and 10gb swap files)

https://i.imgur.com/kn7ZsMw.png

As you can see in the screenshots there’s enough space free in the swap file.

I’ve searched the forums but all I get is either “the setup should make ask to make a swap file itself” or “you can make a swap file and then run the installation again”

I hope anyone has a solution.

Thanks in advance.

1 Mi Piace

Your free + used is 1000MB, a gigabyte is 1024MB. Where is this hosted?

3 Mi Piace

You have less than 1000mb of ram. The message is correct. You can either get more ram, edit discourse-setup to skip the test, or create a yml file by hand.

3 Mi Piace

Ho riscontrato lo stesso errore.\nHo modificato manualmente discourse-setup e cambiato il limite da 990 a un numero più piccolo.\nE funziona… per ora.

Credo che il limite sia già stato leggermente abbassato, perché alcuni provider forniscono poco meno di 1G quando si ottiene una macchina con 1G nominale. (Forse vedi Errore fatale durante il tentativo di avvio di Docker (Oracle VM))

Qual è il tuo provider? Cosa mostra
free -m --si
?

(In ogni caso, se hai abbastanza swap+RAM, il forum funzionerà. Se hai poca RAM, il forum potrebbe funzionare più lentamente e gli aggiornamenti potrebbero richiedere più tempo. 3G di swap+RAM sono sufficienti per un piccolo forum, ed è quello che uso.)

1 Mi Piace

Nel mio caso, si tratta di un server Amazon EC2.
Ecco il risultato di free -m --si

              total        used        free      shared  buff/cache   available
Mem:             986         594          75          14         317         209
Swap:           4294         811        3483
1 Mi Piace

Grazie, penso che ciò giustifichi un aggiustamento da 990 a qualcosa di un po’ meno, forse 980. L’intenzione è sicuramente di supportare le offerte di materie prime con un nominale di 1G, e sebbene possa esserci un limite massimo, è molto più piccolo di così, quindi un piccolo aggiustamento verso il basso non metterebbe nessuno in pericolo.

1 Mi Piace