Can't bootstrap Discourse due to YAML error

(docforyou) #1

Hello, first post here.

I’m trying to bootstrap discourse but i have this error :

(): did not find expected key while parsing a block mapping at line 32 column 3 -e LANG=en_US.UTF-8
YAML syntax error. Please check your /var/discourse/containers/*.yml config files.

What should i do ?


(cpradio) #2

Feed your app.yml configuration through to figure out where you messed up.

You didn’t format your app.yml correctly (or one of the other files) and therefore it is blowing up.

(docforyou) #3

Ok thanks, that tells me that this line is not corect :

db_default_text_search_config: “pg_catalog.english”

(cpradio) #4

without seeing it in context, I can’t tell you why it is wrong, can you post the 5 lines above it and the 5 lines below it?

(docforyou) #5

(cpradio) #6

Are you sure that is the line? Can you confirm it has two spaces before db_default_text_search_config and isn’t a tab character?

(docforyou) #7

Yes 2 spaces not a tab, is there a way to restore the app.yml ?

(cpradio) #8

Can you remove all sensitive information from it and post it here? Sensitive info being: your email settings, and anything else you don’t want shared (domain name, email addresses, etc).

(docforyou) #9

When i paste the code here lines with ## are changed in bold…

(cpradio) #10

Put three ` (backticks) above the first line and three after the last line

(docforyou) #11

Ok i found the problem. It was some bad tabulation…Thanks for your help :wink:

(Régis Hanol) #12