# DISCOURSE\_DB\_PASSWORD can not start with \`#\`

**URL:** https://meta.discourse.org/t/discourse-db-password-can-not-start-with/76409
**Category:** Bug
**Created:** [19. Dezember 2017 um 09:16 UTC](https://meta.discourse.org/t/discourse-db-password-can-not-start-with/76409 "2017-12-19T09:16:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![SimonWu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonwu/32/85036_2.png) [@SimonWu](https://meta.discourse.org/u/SimonWu)
#### Post date: [19. Dezember 2017 um 09:16 UTC](https://meta.discourse.org/t/discourse-db-password-can-not-start-with/76409/1 "2017-12-19T09:16:58Z")

</div>

Even you quote the password as DISCOURSE\_DB\_PASSWORD=“#XXXXX”. You can pass `db:rake`.  
But you will meet with `fe_sendauth: no password supplied` error when starting the discourse container.

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [19. Dezember 2017 um 22:26 UTC](https://meta.discourse.org/t/discourse-db-password-can-not-start-with/76409/2 "2017-12-19T22:26:45Z")

</div>

Can you give an exact reproduction of the problem, as in, all the steps you took to make the problem occur? It seems like there’s a lack-of-quoting problem going on in the guts somewhere, but without knowing everything you’re doing, it’ll be a lot harder to find it.

---

<div class="post-metadata">

### Author: ![SimonWu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonwu/32/85036_2.png) [@SimonWu](https://meta.discourse.org/u/SimonWu)
#### Post date: [20. Dezember 2017 um 01:59 UTC](https://meta.discourse.org/t/discourse-db-password-can-not-start-with/76409/3 "2017-12-20T01:59:08Z")

</div>

Step to reproduce:

1. Clone discourse-docker;
2. run `./discourse_setup`;
3. `vi containers/app.yml`, and add the DB related config. and set `DISCOURSE\_DB\_PASSWORD: “#Blabla”;
4. run `./launcher rebuild app`;
5. rebuild success, and container initialized and running;
6. Visit discourse, it says 502;
7. Inspect the log, it states an PG error with error message `fe_sendauth: no password supplied`

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [20. Dezember 2017 um 02:12 UTC](https://meta.discourse.org/t/discourse-db-password-can-not-start-with/76409/4 "2017-12-20T02:12:13Z")

</div>

Thanks for the repro, I’ll see what we can see.

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [20. Dezember 2017 um 05:56 UTC](https://meta.discourse.org/t/discourse-db-password-can-not-start-with/76409/5 "2017-12-20T05:56:37Z")

</div>

OK, after more than a little faffing around (there’s a lot of devilish detail behind “add the DB related config”), I got a repro, and have now committed [FIX: Quote all strings in discourse.conf · discourse/discourse\_docker@087e110 · GitHub](https://github.com/discourse/discourse_docker/commit/087e11016524a613ee28b9b97a260971f939994f), which should solve this problem.

---

<div class="post-metadata">

### Author: ![SimonWu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonwu/32/85036_2.png) [@SimonWu](https://meta.discourse.org/u/SimonWu)
#### Post date: [20. Dezember 2017 um 05:58 UTC](https://meta.discourse.org/t/discourse-db-password-can-not-start-with/76409/6 "2017-12-20T05:58:09Z")

</div>

Ha, thanks Matt. I should give more detail about that.

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [21. Dezember 2017 um 07:00 UTC](https://meta.discourse.org/t/discourse-db-password-can-not-start-with/76409/7 "2017-12-21T07:00:00Z")

</div>

This topic was automatically closed after 25 hours. New replies are no longer allowed.
