# Installation error

**URL:** <https://community.n8n.io/t/installation-error/11860>\
**Category:** Questions\
**Tags:** deployment\
**Created:** [March 3, 2022, 12:27pm UTC](https://community.n8n.io/t/installation-error/11860 "2022-03-03T12:27:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandan988](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@chandan988](https://community.n8n.io/u/chandan988)\
**Post date:** [March 3, 2022, 12:27pm UTC](https://community.n8n.io/t/installation-error/11860/1 "2022-03-03T12:27:23Z")

</div>

I am doing on Ubuntu as root user any help please

${DATA\_FOLDER}/.n8n:/home/node/.n8n  
root@ip-172-31-2-194:~# sudo docker-compose up -d  
ERROR: yaml.scanner.ScannerError: while scanning a simple key  
in “./docker-compose.yml”, line 24, column 17  
could not find expected ‘:’  
in “./docker-compose.yml”, line 26, column 17  
root@ip-172-31-2-194:~#

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [March 3, 2022, 1:58pm UTC](https://community.n8n.io/t/installation-error/11860/2 "2022-03-03T13:58:34Z")

</div>

Hey @chandan988, this sounds like docker compose didn’t understand your docker compose file. Is there a chance you have any unsupported or missing characters, missing indentation and the likes in there? You can find a simple example of a valid docker compose file [here](https://github.com/n8n-io/n8n/blob/master/docker/compose/withPostgres/docker-compose.yml). A slightly more complex example also including a web server would be [here in our documentation](https://docs.n8n.io/getting-started/installation/advanced/server-setup.html#docker-compose-example).

---

<div class="post-metadata">

**Author:** ![chandan988](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@chandan988](https://community.n8n.io/u/chandan988)\
**Post date:** [March 4, 2022, 10:23am UTC](https://community.n8n.io/t/installation-error/11860/4 "2022-03-04T10:23:10Z")

</div>

ERROR: yaml.parser.ParserError: while parsing a block mapping  
in “./docker-compose.yml”, line 1, column 1  
expected , but found ‘’  
in “./docker-compose.yml”, line 4, column 9

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [March 4, 2022, 10:26am UTC](https://community.n8n.io/t/installation-error/11860/5 "2022-03-04T10:26:26Z")

</div>

Hey @chandan988, could you share your `docker-compose.yml` file so we can take a look at what might be wrong with it?

---

<div class="post-metadata">

**Author:** ![chandan988](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@chandan988](https://community.n8n.io/u/chandan988)\
**Post date:** [March 8, 2022, 5:18am UTC](https://community.n8n.io/t/installation-error/11860/6 "2022-03-08T05:18:27Z")

</div>

```auto
version: "3"

services:
  traefik:
    image: "traefik"
    restart: always
    command:
      - "--api=true"
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.web.address=:80"
      - "--entrypoints.web.http.redirections.entryPoint.to=websecure"
      - "--entrypoints.web.http.redirections.entrypoint.scheme=https"
      - "--entrypoints.websecure.address=:443"
      - "--certificatesresolvers.mytlschallenge.acme.tlschallenge=true"
      - "--certificatesresolvers.mytlschallenge.acme.email=${SSL_EMAIL}"
      - "--certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json"
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ${DATA_FOLDER}/letsencrypt:/letsencrypt
      - /var/run/docker.sock:/var/run/docker.sock:ro

  n8n:
    image: n8nio/n8n
    restart: always
    ports:
      - "127.0.0.1:5678:5678"
    labels:
      - traefik.enable=true
      - traefik.http.routers.n8n.rule=Host(`${SUBDOMAIN}.${DOMAIN_NAME}`)
      - traefik.http.routers.n8n.tls=true
      - traefik.http.routers.n8n.entrypoints=web,websecure
      - traefik.http.routers.n8n.tls.certresolver=mytlschallenge
      - traefik.http.middlewares.n8n.headers.SSLRedirect=true
      - traefik.http.middlewares.n8n.headers.STSSeconds=315360000
      - traefik.http.middlewares.n8n.headers.browserXSSFilter=true
      - traefik.http.middlewares.n8n.headers.contentTypeNosniff=true
      - traefik.http.middlewares.n8n.headers.forceSTSHeader=true
      - traefik.http.middlewares.n8n.headers.SSLHost=${DOMAIN_NAME}
      - traefik.http.middlewares.n8n.headers.STSIncludeSubdomains=true
      - traefik.http.middlewares.n8n.headers.STSPreload=true
    environment:
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER
      - N8N_BASIC_AUTH_PASSWORD
      - N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
      - N8N_PORT=5678
      - N8N_PROTOCOL=https
      - NODE_ENV=production
      - WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
      - GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
    volumes:
      - ${DATA_FOLDER}/.n8n:/home/node/.n8n

```

i pasted exactly same Please see the screen recording also [Screencastify](https://watch.screencastify.com/v/p8d9F3fxlwdctNoG82kP)

---

<div class="post-metadata">

**Author:** ![chandan988](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@chandan988](https://community.n8n.io/u/chandan988)\
**Post date:** [March 8, 2022, 5:20am UTC](https://community.n8n.io/t/installation-error/11860/7 "2022-03-08T05:20:22Z")

</div>

root@ip-172-31-43-43:~# sudo docker-compose up -d  
WARNING: Python-dotenv could not parse statement starting at line 1  
ERROR: yaml.parser.ParserError: while parsing a block mapping  
in “./docker-compose.yml”, line 5, column 23  
expected , but found ‘’  
in “./docker-compose.yml”, line 6, column 27

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [March 8, 2022, 10:24am UTC](https://community.n8n.io/t/installation-error/11860/8 "2022-03-08T10:24:31Z")

</div>

Hey @chandan988,

Looking at the video the first thing I noticed was when you copied the .env file content it didn’t appear to comment out the first line and the # was missing. Can you add that in and see if it changes anything, Can you also tell me what version of Docker Compose you are running?

---

<div class="post-metadata">

**Author:** ![chandan988](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@chandan988](https://community.n8n.io/u/chandan988)\
**Post date:** [March 8, 2022, 10:27am UTC](https://community.n8n.io/t/installation-error/11860/9 "2022-03-08T10:27:21Z")

</div>

Still Same error

root@ip-172-31-43-43:~# sudo docker-compose up -d  
ERROR: yaml.parser.ParserError: while parsing a block mapping  
in “./docker-compose.yml”, line 5, column 23  
expected , but found ‘’  
in “./docker-compose.yml”, line 6, column 27  
root@ip-172-31-43-43:~#

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [March 8, 2022, 11:27am UTC](https://community.n8n.io/t/installation-error/11860/10 "2022-03-08T11:27:56Z")

</div>

Hey @chandan988,

What about the version of Docker Compose? I ran the YAML you pasted through a validator and it comes up as valid. Is it possible that something went wrong when pasting the YAML?

As a test could you save the file locally and upload it using SFTP to your instance that would help rule out anything odd.
