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 curtida

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

3 curtidas

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 curtidas

Eu encontrei o mesmo erro que você.
Eu modifiquei manualmente o discourse-setup e mudei o limite de 990 para um número menor.
E funcionou… por enquanto.

Acredito que o limite já foi reduzido um pouco, pois alguns provedores fornecem um pouco menos de 1G quando você obtém uma máquina com 1G nominal. (Talvez veja Erro fatal ao tentar iniciar o Docker (Oracle VM))

Qual é o seu provedor? O que o comando
free -m --si
mostra?

(Em qualquer caso, se você tiver swap+RAM suficiente, o fórum funcionará. Se você tiver pouca RAM, o fórum pode rodar mais devagar e as atualizações podem demorar mais. 3G de swap+RAM é suficiente para um fórum pequeno, e é o que eu uso.)

1 curtida

No meu caso, é um servidor Amazon EC2.
Aqui está o resultado de free -m --si

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

Obrigado - acho que isso justifica um ajuste de 990 para algo um pouco menor - talvez 980. A intenção é certamente apoiar ofertas de commodities com 1G nominal, e embora possa haver um limite rígido, ele é muito menor do que isso, então um pequeno ajuste para baixo não colocaria ninguém em risco.

1 curtida