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)
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”
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.
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.)
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.