gcgarner / IOTstack

docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.5k stars 578 forks source link

Error in docker-compose with telegraf config entry #207

Open GarryG opened 3 years ago

GarryG commented 3 years ago

Hi,

I just tried out IOTstack and it's great ... except for one small problem - I keep getting errors when I try to use telegraf ...

root@raspi4:~/IOTstack# docker-compose up -d
ERROR: yaml.parser.ParserError: while parsing a block mapping
  in "./docker-compose.yml", line 68, column 5
expected <block end>, but found '<block sequence start>'
  in "./docker-compose.yml", line 75, column 7

Line 68 is the first "container_name: telegraf" line right after the "telegraf:" entry. If I move the whole block to somewhere else in the file, the error line moves; removing it lets docker-compose run through successfully, so it's definitely something in the telegraf block.

  telegraf:
    container_name: telegraf
    image: telegraf
    volumes:
      - ./services/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
    depends_on:
          - cadvisor-arm
          - node-exporter
      - influxdb
      - mosquitto

The yaml file is used right out of the generation by menu.sh, nothing was originally edited or changed ...

Sorry, not really learned about yaml files, I reckon it's probably something minor ...

Paraphraser commented 3 years ago

Please see THIS PROJECT IS DORMANT .

It is possible that your problem has been fixed on SensorsIot/IOTstack. In any case, you are more likely to get support if you migrate your installation to SensorsIot/IOTstack, find that your problem has not been fixed, and open another issue there.

If you have not already joined the Discord channel, you can often get help there too.

I'd really appreciate it if you would close this issue on gcgarner/IOTstack:


I don't use telegraf but I recently ran it up to check something in response to a question on Discord. It just worked and I didn't strike anything like this so my guess is that SensorsIot/IOTstack doesn't have this bug,

GarryG commented 3 years ago

It is possible that your problem has been fixed on SensorsIot/IOTstack. In any case, you are more likely to get support if you migrate your installation to SensorsIot/IOTstack, find that your problem has not been fixed, and open another issue there.

Sorry, used a link to this project and didn't actually check out the project page before installing ... Thanks for the pointer. Updated, though still getting the same error ...