# Discourse setup not asking for smtp server address

**URL:** https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993
**Category:** Support
**Created:** [11월 13, 2017, 3:56오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993 "2017-11-13T15:56:07Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![LucaDellAnna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucadellanna/32/82146_2.png) [@LucaDellAnna](https://meta.discourse.org/u/LucaDellAnna)
#### Post date: [11월 13, 2017, 3:56오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/1 "2017-11-13T15:56:07Z")

</div>

Good evening,

I’m trying to setup discourse on a DigitalOcean droplet.  
I installed docker and discourse successfully via ssh.  
When I run ./discourse-setup, I’m directly prompted for the SMTP password; I **do not** get any of the following questions:

> ```
> Hostname for your Discourse? [discourse.example.com]: 
> Email address for admin account? [me@example.com]: 
> SMTP server address? [smtp.example.com]: 
> SMTP user name? [postmaster@discourse.example.com]: 
> SMTP port [587]:
> 
> ```

Could you please advice how I should proceed?

Thank you in advance,

Luca

---

<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: [11월 13, 2017, 4:26오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/2 "2017-11-13T16:26:48Z")

</div>

Hmm.

I just cloned discourse\_docker and ran `discourse-setup` and got this:

```plaintext
git clone https://github.com/discourse/discourse_docker.git /var/discourse
Cloning into '/var/discourse'...
remote: Counting objects: 3645, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 3645 (delta 12), reused 31 (delta 10), pack-reused 3600
Receiving objects: 100% (3645/3645), 791.68 KiB | 0 bytes/s, done.
Resolving deltas: 100% (2249/2249), done.
Checking connectivity... done.
root@location:/var# cd /var/discourse
root@location:/var/discourse# ./discourse-setup 
Ports 80 and 443 are free for use
Found 1GB of memory and 1 physical CPU cores
setting db_shared_buffers = 128MB
setting UNICORN_WORKERS = 2
containers/app.yml memory parameters updated.

Hostname for your Discourse? [discourse.example.com]: 

```

Did you get the memory check output?

---

<div class="post-metadata">

### Author: ![LucaDellAnna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucadellanna/32/82146_2.png) [@LucaDellAnna](https://meta.discourse.org/u/LucaDellAnna)
#### Post date: [11월 13, 2017, 4:34오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/3 "2017-11-13T16:34:55Z")

</div>

Thanks.

This is what I get when I try to run the setup command.  
I’ve read in the forums that 1GB memory should be enough; do you think it might be the problem?

> root@discourse:~# /var/discourse/discourse-setup  
> Ports 80 and 443 are free for use  
> cp: cannot stat ‘samples/standalone.yml’: No such file or directory  
> Found 1GB of memory and 1 physical CPU cores  
> sed: can’t read containers/app.yml: No such file or directory  
> sed: can’t read containers/app.yml: No such file or directory  
> containers/app.yml memory parameters updated.  
> grep: containers/app.yml: No such file or directory  
> grep: containers/app.yml: No such file or directory  
> grep: containers/app.yml: No such file or directory  
> grep: containers/app.yml: No such file or directory  
> grep: containers/app.yml: No such file or directory  
> grep: containers/app.yml: No such file or directory  
> grep: containers/app.yml: No such file or directory
> 
> SMTP password? :

---

<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: [11월 13, 2017, 5:18오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/4 "2017-11-13T17:18:15Z")

</div>

Ah. It looks like `discourse-setup` expects you to be in `/var/discourse`

do this:

```plaintext
cd /var/discourse
./discourse-setup

```

---

<div class="post-metadata">

### Author: ![LucaDellAnna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucadellanna/32/82146_2.png) [@LucaDellAnna](https://meta.discourse.org/u/LucaDellAnna)
#### Post date: [11월 13, 2017, 5:20오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/5 "2017-11-13T17:20:42Z")

</div>

> [@pfaffman](#):
>
> cd /var/discourse  
> ./discourse-setup

It worked! Thank you so much!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11월 13, 2017, 8:11오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/6 "2017-11-13T20:11:03Z")

</div>

Can we warn about this if the user messes it up Jay?

---

<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: [11월 13, 2017, 8:15오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/7 "2017-11-13T20:15:44Z")

</div>

**tl;dr** : It’s on the list.

Most folks follow instructions and `cd /var/discourse`.

It only happens if someone has enough unix knowledge to know that typing the full path “should” work and then doesn’t have enough knowledge to guess from messages like “no such file or directory” (which were omitted from the original description of the problem) that it’s some kind of path issue.

---

<div class="post-metadata">

### Author: ![blaskovicz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blaskovicz/32/120235_2.png) [@blaskovicz](https://meta.discourse.org/u/blaskovicz)
#### Post date: [3월 11, 2018, 3:26오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/8 "2018-03-11T15:26:30Z")

</div>

I was in the `/var/discourse` directory, yet I was also not prompted for any settings besides the password. I had just run `./discourse-setup` after a fresh clone of the docker git repo. I was following [this guide](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247/32) and had created `containers/app.yml` with the suggested contents, but that didn’t help. My solution was to comment out the `check_port` lines in the `discourse-setup` script… /shrug

_Edit:_ still hitting some issues with the port stuff…

---

<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: [3월 11, 2018, 5:16오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/9 "2018-03-11T17:16:54Z")

</div>

That sounds like a bug, maybe.

If the port is in use you should get a message that says that it’s in use. Did that not happen?

But if app.yml exists, the script assumes that you’ve successfully installed and need to reconfigure. If you created app.yml by hand, then discourse-setup can’t be held responsible. Is that what happened?

And if you removed the check ports test, then it’s not surprising that something else might be using the ports needed. You’re on your own at that point.

---

<div class="post-metadata">

### Author: ![blaskovicz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blaskovicz/32/120235_2.png) [@blaskovicz](https://meta.discourse.org/u/blaskovicz)
#### Post date: [3월 11, 2018, 7:25오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/10 "2018-03-11T19:25:03Z")

</div>

So following [the guide I was linked](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247/32), I copy/pasted the suggested `containers/app.yml` contents (since running `./discourse-setup` complained about ports being in use). The reason I copy/pasted the file was because there was no file after initially running the setup (which failed on port check). After commenting out the port check, the docker run failed (port conflict) but it successfully generated the `app.yml`. I adjusted the yaml per the guide, re-built the app, then it worked. Perhaps I missed a step in generating the initial `app.yml` or something is missing in the guide?

---

<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: [3월 11, 2018, 10:36오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/11 "2018-03-11T22:36:10Z")

</div>

> [@blaskovicz](#):
>
> So following the guide I was linked, I

I see. Did you want to run Discourse with other web sites?

`discourse-setup` isn’t designed to work if you do want to run other web sites, so it’s not a problem with `discourse-setup`. Thanks for explaining.

---

<div class="post-metadata">

### Author: ![blaskovicz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blaskovicz/32/120235_2.png) [@blaskovicz](https://meta.discourse.org/u/blaskovicz)
#### Post date: [3월 11, 2018, 10:58오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/12 "2018-03-11T22:58:11Z")

</div>

Ah, yea, I have a wildcard pointed to nginx so I’m running it alongside a few others.

Discourse seems to work now after the above steps (I was able to hook it to my smtp server, register the site and admin user, etc).

---

<div class="post-metadata">

### Author: ![weallwegot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/weallwegot/32/124753_2.png) [@weallwegot](https://meta.discourse.org/u/weallwegot)
#### Post date: [11월 15, 2018, 4:48오전 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/13 "2018-11-15T04:48:48Z")

</div>

I had a similar issue, i think the guide you linked assumes that the `app.yaml` has been created already, it seems to be a truncated version that doesn’t actually have the SMTP fields. If you had the setup script prompt you only for a password and the password exampe was `[]` instead of `[pa$$word]` then i think that may have been the problem.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 8, 2024, 12:37오후 UTC](https://meta.discourse.org/t/discourse-setup-not-asking-for-smtp-server-address/73993/14 "2024-06-08T12:37:18Z")

</div>

이 주제는 2398일 후 자동으로 닫혔습니다. 더 이상 새 답변을 작성할 수 없습니다.
