How would you enable swap for that?
Discourse-setup automatically creates a swap file.
Huh, it didn’t for me.
nvm fixed it
Correct, because your server doesn’t have enough physical RAM. It failed the system requirements check, so installation didn’t proceed.
You need 1GB RAM to install, and a 1GB system will also need swap. You don’t have 1GB, your system isn’t supported.
See:
I’ve tried this and the old adage rings true: you get what you pay for.
The default is image Oracle Linux, which does not have 1GB as advertised. I used the Ubuntu image that is eligible for the free tier and that did have 1GB. Or rather close enough for Discourse to install.
This was super helpful because I got lost in a maze of contradictory suggestions when following the script’s advice to Google “open ports oracle cloud”.
It was disappointing to see Oracle dropped free SMTP service, but setting up Mailjet wasn’t too complicated. You still get what you pay for, but at least you aren’t paying the price of a byzantine setup. And you’ll need an email provider if you move to a different hosting service anyway.
Having plowed through those troubles, I’m now getting this error from discourse-setup:
Launcher is up-to-date
cd /pups && git pull && /pups/bin/pups --stdin
fatal: unable to access 'https://github.com/discourse/pups.git/': Could not resolve host: github.com
I suspect I’ve messed something up while fighting with the firewall settings. It looks like this is still an option if you don’t want to spend any money, but I think I’m giving up for now. Hopefully these notes will help others in the future.
Oh. I also got an email from an Oracle sales person just now. Never change, Oracle. ![]()
That does seem to be the problem. I started over and worked out the kinks. I also wrote up the process on my blog. Gonna try it out for a while as my blog comment system and see how it goes. ![]()
Just chiming in here - big thanks to Jon and the blog post above he created! That helped me get up and running. Thanks!
我创建了一个详细的教程,帮助在 Oracle 的免费套餐上安装 Discourse。
这是一个 wiki:欢迎随时改进!
Oracle 免费套餐新增一项功能:您还可以选择新的“Ampere”ARM 实例,在免费套餐中最多可使用 4 核和 12 GB RAM。Discourse 在 ARM 处理器上的安装似乎毫无问题,性能也相当令人印象深刻。刚安装好,将持续观察其表现。
真有意思!这是新加的吗?我对这些东西不太了解,但这是可以安装 Discourse 的“标准”虚拟机吗? 免费提供 4 核 12 GB RAM 似乎……很奇怪?
这是因为它基于 ARM 而不是 x86_64。而且 Discourse 最近才获得对 ARM 的支持。
免费的 Oracle 级允许最多 2 台虚拟机。这一个也占用一个空间吗?
是的,但我同意 @Canapin 的观点。无论处理器类型如何,4 核和 12 GB RAM 对于免费套餐来说听起来都很多。
请注意,对于此价格(免费套餐),当然几乎没有支持,而且……嗯,我非常失望地发现我的 discourse 沙盒几周前消失了,无法创建新的沙盒,Ampere 实例已用完…… ![]()
(但它运行得相当好)
您的意思是它自行消失了,没有任何您的操作,也没有收到 Oracle 的任何警告吗?
我怀疑这里发生的情况是有一个免费试用。您可以试用更高功率的实例,例如这个,但时间很短。之后,您需要付费。
还有一个功率非常低的免费套餐,可以一直使用。
确实,那是免费套餐的一半,2个安培vcore和12GB内存
我有点难以理解,但……这是不是意味着我们使用的容量越多,它花费的“小时数”就越多,这取决于它的规格之类的?
