# Issue in setup discourse on ubuntu server

**URL:** https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368
**Category:** Self-hosting
**Tags:** dev-install
**Created:** [5월 22, 2019, 7:46오전 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368 "2019-05-22T07:46:01Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Vishal\_Kaushik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vishal_kaushik/32/140452_2.png) [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)
#### Post date: [5월 22, 2019, 7:46오전 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/1 "2019-05-22T07:46:01Z")

</div>

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 :

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [5월 22, 2019, 8:03오전 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/2 "2019-05-22T08:03:27Z")

</div>

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](https://stackoverflow.com/questions/29083885/what-does-binding-a-rails-server-to-0-0-0-0-buy-you/29084070)

---

<div class="post-metadata">

### Author: ![Vishal\_Kaushik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vishal_kaushik/32/140452_2.png) [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)
#### Post date: [5월 22, 2019, 10:51오전 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/3 "2019-05-22T10:51:29Z")

</div>

![47%20PM](https://global.discourse-cdn.com/meta/original/3X/d/0/d09998fbe5615cb95d3ebcf1c5141e35cdc64324.png) This is the issue i guess, But I am not sure how to resolve this. Anyone??

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [5월 22, 2019, 11:14오전 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/4 "2019-05-22T11:14:11Z")

</div>

How much RAM do you have? What does

```
 free -h

```

say?

---

<div class="post-metadata">

### Author: ![Vishal\_Kaushik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vishal_kaushik/32/140452_2.png) [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)
#### Post date: [5월 22, 2019, 11:15오전 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/5 "2019-05-22T11:15:01Z")

</div>

![45%20PM](https://global.discourse-cdn.com/meta/original/3X/6/e/6e1ba3ed537d4c238b153f9dbfb18954cd95ed5c.png)

---

<div class="post-metadata">

### Author: ![Vishal\_Kaushik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vishal_kaushik/32/140452_2.png) [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)
#### Post date: [5월 22, 2019, 11:34오전 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/6 "2019-05-22T11:34:23Z")

</div>

What are the minimum system requirements for discourse setup?

---

<div class="post-metadata">

### Author: ![marianord](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marianord/32/90502_2.png) [@marianord](https://meta.discourse.org/u/marianord)
#### Post date: [5월 22, 2019, 12:34오후 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/7 "2019-05-22T12:34:58Z")

</div>

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

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [5월 22, 2019, 12:48오후 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/8 "2019-05-22T12:48:44Z")

</div>

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](https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009), but if you want to do development you’ll likely want at least 4gb.

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [5월 22, 2019, 1:31오후 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/9 "2019-05-22T13:31:44Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Vishal\_Kaushik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vishal_kaushik/32/140452_2.png) [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)
#### Post date: [5월 22, 2019, 1:37오후 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/10 "2019-05-22T13:37:11Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [6월 21, 2019, 1:37오후 UTC](https://meta.discourse.org/t/issue-in-setup-discourse-on-ubuntu-server/118368/11 "2019-06-21T13:37:14Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
