# Did not find expected '-' indicator in app.yml

**URL:** https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800
**Category:** Self-hosting
**Created:** [March 25, 2018, 1:36pm UTC](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800 "2018-03-25T13:36:52Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![adrianbblk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianbblk/32/87512_2.png) [@adrianbblk](https://meta.discourse.org/u/adrianbblk)
#### Post date: [March 25, 2018, 1:36pm UTC](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800/1 "2018-03-25T13:36:52Z")

</div>

Hi Everyone,

I just try to rebuild the app and I get this error:

```
(<unknown>): did not find expected '-' indicator while parsing a block collection at line 11 column 3 -e LANG=en_US.UTF-8
YAML syntax error. Please check your containers/*.yml config files.

```

Line 11 in my app.yml

` - "templates/cron.template.yml"`

 ![30%20PM](https://global.discourse-cdn.com/meta/original/3X/1/7/17d60bcafb945e729c3d665234cbfba69443c539.png)

I need some help to fix it. Thank You 👼

---

<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: [March 25, 2018, 1:55pm UTC](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800/2 "2018-03-25T13:55:54Z")

</div>

Perhaps you have a tab rather than a space?

There are yaml checkers on the net. You will need to be able to copy and paste rather than take a picture.

What changes did you make?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [March 25, 2018, 2:11pm UTC](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800/3 "2018-03-25T14:11:56Z")

</div>

Looks to me like the `ratelimited` and `socketed` lines have one too many spaces in front. They should have the same number of spaces as the 5 templates above, not the 2 commented out templates.

---

<div class="post-metadata">

### Author: ![adrianbblk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianbblk/32/87512_2.png) [@adrianbblk](https://meta.discourse.org/u/adrianbblk)
#### Post date: [March 25, 2018, 2:43pm UTC](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800/4 "2018-03-25T14:43:46Z")

</div>

```
## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed

templates:
  - "templates/cron.template.yml"
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/sshd.template.yml"
  - "templates/web.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
 # - "templates/web.ssl.template.yml"
 # - "templates/web.letsencrypt.ssl.template.yml"
   - "templates/web.ratelimited.template.yml"
   - "templates/web.socketed.template.yml"
## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see https://meta.discourse.org/t/17247 for details
expose:
 # - "443:443" # https
 # - "80:80" # http
params:
  db_default_text_search_config: "pg_catalog.english"

  ## Set db_shared_buffers to a max of 25% of the total memory.
  ## will be set automatically by bootstrap based on detected RAM, or you can override
  db_shared_buffers: "2048MB"

  ## can improve sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"

```

---

<div class="post-metadata">

### Author: ![adrianbblk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianbblk/32/87512_2.png) [@adrianbblk](https://meta.discourse.org/u/adrianbblk)
#### Post date: [March 25, 2018, 2:51pm UTC](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800/5 "2018-03-25T14:51:46Z")

</div>

Hi again,

Even I moved the line 11:  
`- "templates/cron.template.yml"`

I get the error on the same line, 11 col 3 where now is

`- "templates/postgres.template.yml"` This line was there.

---

<div class="post-metadata">

### Author: ![adrianbblk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianbblk/32/87512_2.png) [@adrianbblk](https://meta.discourse.org/u/adrianbblk)
#### Post date: [March 25, 2018, 2:54pm UTC](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800/6 "2018-03-25T14:54:13Z")

</div>

Thank You! 🙂 That fix the issue. I was still looking at the line 11.

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [March 25, 2018, 2:56pm UTC](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800/7 "2018-03-25T14:56:42Z")

</div>

You have an extra space or two In front of the - on the ratelimited and socketed lines it doesnt line up with the above section. Also as mentioned above ensure that only spaces not tabs are used.

[https://docs.saltstack.com/en/latest/topics/troubleshooting/yaml\_idiosyncrasies.html#spaces-vs-tabs](https://docs.saltstack.com/en/latest/topics/troubleshooting/yaml_idiosyncrasies.html#spaces-vs-tabs)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [March 26, 2018, 10:00pm UTC](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800/8 "2018-03-26T22:00:08Z")

</div>

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