homer7-docker icon indicating copy to clipboard operation
homer7-docker copied to clipboard

ParserError while running docker-compose up

Open ConfuzedCoder opened this issue 6 years ago • 7 comments

Hi I have cloned the repo and tried to install hepop - hom7-loudml-influx using docker-compose up but it's throwing error.

Screenshot is attached below

docker-compose --version : 1.23.2 docker --version : 19.03.1

docker-issue

ConfuzedCoder avatar Aug 02 '19 07:08 ConfuzedCoder

line 1 column 1 this seems an suspect issue with your file or newlines, not the compose contents. I just validated the yml and its parsing fine. What platform are you on?

lmangani avatar Aug 02 '19 08:08 lmangani

@lmangani CentOS 7

ConfuzedCoder avatar Aug 02 '19 08:08 ConfuzedCoder

please run

docker-compose config

lmangani avatar Aug 02 '19 08:08 lmangani

Works fine on our test systems, the yml is parsed just fine:

heplify-server/hom7-loudml-influx # docker-compose up
Creating network "hom7-loudml-influx_default" with the default driver
Creating loudml ...

lmangani avatar Aug 02 '19 08:08 lmangani

docker-compose config is showing same error. I haven't changed anything in the file. It's also showing some error on line number 66. Please check that.

ConfuzedCoder avatar Aug 02 '19 09:08 ConfuzedCoder

I am facing the same issue on Debian OS also. I executed below commands.

git clone https://github.com/sipcapture/homer7-docker
cd /home/sify/homer7-docker/hepop/hom7-loudml-influx
docker-compose up

Output : 
ERROR: yaml.parser.ParserError: while parsing a block mapping
  in "./docker-compose.yml", line 1, column 1
expected <block end>, but found '<block mapping start>'
  in "./docker-compose.yml", line 66, column 3

docker --version
Docker version 18.09.7, build 2d0083d
docker-compose --version
docker-compose version 1.24.0, build 0aa59064

ConfuzedCoder avatar Aug 05 '19 07:08 ConfuzedCoder

@lmangani docker-compose.yml file is working for all hepop server except hom7-loudml-influx hepop server. Let me know if you want more information.

ConfuzedCoder avatar Aug 05 '19 13:08 ConfuzedCoder