PacktPublishing / Learn-Grafana-7.0

Learn Grafana 7.0, published by packt
MIT License
66 stars 46 forks source link

Influx-DB Latest enforces authentication #2

Closed qubeio closed 3 years ago

qubeio commented 3 years ago

As per comment, using the latest InfluxDB image causes the upload script (Chapter 05) to fail with a 401. Changing the docker-compose file to InfluxDB:1.7.0 fixed it (though I don't know exactly which version you need to go back to)

Just in case anyone else ends up here for the same reason

sonam-packt commented 3 years ago

HI @AndreasFrangopoulos,

Thank you for the suggestion, it might help other readers too.

Thanks!

dal233 commented 3 years ago

Hello @AndreasFrangopoulos,

I have encountered this issue too. Do you mean to edit this code?

version: "3"

services:
  grafana:
    image: "grafana/grafana:${GRAF_TAG-latest}"
    ports:
      - "3000:3000"
    volumes:
      - "${PWD-.}/grafana:/var/lib/grafana"

  influxdb:
    image: "influxdb:${INFL_TAG-latest}"
    ports:
      - "8086:8086"
    volumes:
      - "${PWD-.}/influxdb:/var/lib/influxdb"
dal233 commented 3 years ago

Answering my own question, you need to change your influxdb image to the below in the docker-compose.yml file.

  influxdb:
    image: "influxdb:1.7.0"
    ports:
      - "8086:8086"
    volumes:
      - "${PWD-.}/influxdb:/var/lib/influxdb"