${DATA_FOLDER}/.n8n:/home/node/.n8n [email protected]:~# 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 [email protected]:~#
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. A slightly more complex example also including a web server would be here in our documentation.
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
[email protected]:~# 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
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?
[email protected]:~# 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 [email protected]:~#
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.