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.
「いいね!」 2
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.
「いいね!」 3
Step to reproduce:
- Clone discourse-docker;
- run
./discourse_setup; -
vi containers/app.yml, and add the DB related config. and set `DISCOURSE_DB_PASSWORD: “#Blabla”; - run
./launcher rebuild app; - rebuild success, and container initialized and running;
- Visit discourse, it says 502;
- Inspect the log, it states an PG error with error message
fe_sendauth: no password supplied
「いいね!」 2
Thanks for the repro, I’ll see what we can see.
「いいね!」 3
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, which should solve this problem.
「いいね!」 7
Ha, thanks Matt. I should give more detail about that.
This topic was automatically closed after 25 hours. New replies are no longer allowed.