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

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

「いいね!」 3

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

私も同じエラーに遭遇しました。
discourse-setup を手動で変更し、制限を 990 から小さい数に変更しました。
今のところ、これで動作しています。

プロバイダーによっては、名目上1Gのマシンを入手しても実際には1G未満しか提供されないため、制限はすでに少し引き下げられたと信じています。(おそらくDockerの起動時に致命的なエラーが発生する(Oracle VM)を参照してください)

あなたのプロバイダーは何ですか? free -m --si は何を表示しますか?

(いずれにせよ、十分なスワップ+RAMがあればフォーラムは機能します。RAMが少なすぎるとフォーラムの動作が遅くなり、アップグレードに時間がかかる場合があります。スワップ+RAMが3Gあれば小さなフォーラムには十分であり、私はそれを使用しています。)

「いいね!」 1

私の場合は、Amazon EC2サーバーです。
free -m --si の結果は以下の通りです。

              total        used        free      shared  buff/cache   available
Mem:             986         594          75          14         317         209
Swap:           4294         811        3483
「いいね!」 1

ありがとうございます。990から980といった少し低い値への調整を正当化できると思います。コモディティオファリングを名目上の1Gでサポートすることが意図されており、ハードリミットが存在するとしても、それはそれよりもはるかに小さいので、わずかに下方修正しても誰も危険にさらされることはありません。

「いいね!」 1