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 显示什么?

(无论如何,如果您有足够的交换空间+内存,论坛就可以运行。如果内存太少,论坛可能会运行缓慢,升级可能需要更长时间。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 个赞