Issue in setup discourse on ubuntu server

AI-generated summary

The user Vishal_Kaushik encountered issues while setting up Discourse on an Ubuntu server, with the bundle exec rake autospec command getting stuck and the server not accessible on port 3000. merefield suggested using RAILS_ENV=development bundle exec rails server --binding=0.0.0.0. pfaffman and marianord discussed system requirements, noting that development setups typically need at least 2GB of RAM and possibly more swap, with pfaffman recommending Docker for development. justin mentioned that a $5 DO droplet can work for development. Vishal_Kaushik resolved the issue by using a server with better specifications.

I am trying to install discourse on an ubuntu server. Every command is successful until this command which gets stuck : bundle exec rake autospec. If I run bundle exec rails server by skipping previous command, it runs but I am not able to access the portal on port 3000.

I am folowing steps mentioned here :

Try:

RAILS_ENV=development bundle exec rails server --binding=0.0.0.0

https://stackoverflow.com/questions/29083885/what-does-binding-a-rails-server-to-0-0-0-0-buy-you/29084070

This is the issue i guess, But I am not sure how to resolve this. Anyone??

How much RAM do you have? What does

 free -h

say?

What are the minimum system requirements for discourse setup?

1GB of RAM with SWAP, I think you need at least 2GB of SWAP.

That’s true for a docker install, but a development install will likely need more than that.

Do you need a development setup?

You might try Install Discourse for development using Docker, but if you want to do development you’ll likely want at least 4gb.

I’ve run development environments off the DO $5 droplet and they work just fine. Not fast but not unbearable either. CPU speed is probably more important.

@Vishal_Kaushik do you have anything else running on this server? And is it a cloud server or something local?

I asked my devops guy to create a new instance with better specs and it worked fine on it. Thank you all for the help.