# Can't bootstrap Discourse due to YAML error

**URL:** https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192
**Category:** Support
**Created:** [December 1, 2015, 12:54pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192 "2015-12-01T12:54:44Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![docforyou](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@docforyou](https://meta.discourse.org/u/docforyou)
#### Post date: [December 1, 2015, 12:54pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/1 "2015-12-01T12:54:44Z")

</div>

Hello, first post here.

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

`(<unknown>): 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 ?

Thanks

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [December 1, 2015, 12:59pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/2 "2015-12-01T12:59:36Z")

</div>

Feed your app.yml configuration through [http://www.yamllint.com/](http://www.yamllint.com/) 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.

---

<div class="post-metadata">

### Author: ![docforyou](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@docforyou](https://meta.discourse.org/u/docforyou)
#### Post date: [December 1, 2015, 1:10pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/3 "2015-12-01T13:10:23Z")

</div>

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

db\_default\_text\_search\_config: “pg\_catalog.english”

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [December 1, 2015, 1:16pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/4 "2015-12-01T13:16:01Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![docforyou](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@docforyou](https://meta.discourse.org/u/docforyou)
#### Post date: [December 1, 2015, 1:23pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/5 "2015-12-01T13:23:08Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/2/1/216430bde489163d818dca27fabc8b8818d828fe.png)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [December 1, 2015, 1:29pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/6 "2015-12-01T13:29:53Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![docforyou](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@docforyou](https://meta.discourse.org/u/docforyou)
#### Post date: [December 1, 2015, 1:37pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/7 "2015-12-01T13:37:07Z")

</div>

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

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [December 1, 2015, 1:40pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/8 "2015-12-01T13:40:53Z")

</div>

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).

---

<div class="post-metadata">

### Author: ![docforyou](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@docforyou](https://meta.discourse.org/u/docforyou)
#### Post date: [December 1, 2015, 1:45pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/9 "2015-12-01T13:45:03Z")

</div>

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

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [December 1, 2015, 1:55pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/10 "2015-12-01T13:55:14Z")

</div>

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

---

<div class="post-metadata">

### Author: ![docforyou](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@docforyou](https://meta.discourse.org/u/docforyou)
#### Post date: [December 1, 2015, 2:10pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/11 "2015-12-01T14:10:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [December 1, 2015, 3:11pm UTC](https://meta.discourse.org/t/cant-bootstrap-discourse-due-to-yaml-error/36192/12 "2015-12-01T15:11:21Z")

</div>


