Failed to load Tag Keys

I am running Influxdb as a docker container. So i wanted to run a query & influxdb was taking much time, so i restarted the influxdb container. It’s saying - “Failed to load tag Keys”.

When i checked the influxdb logs it was showing “authorization not found”.

I tried to push data using new token also. But still influxdb showing same error. What could be reason for this problem & solution.

Thanks

Hello @Pratik_Das_Baghel,
What version of InfluxDB are you using? What image?
How are you writing data to InfluxDB with a new token?
Are you using an all access token?
Also this could be helpful:

Here is my docker-compose file

version: "3"
services:
  grafana:
    image: grafana/grafana:7.4.0-ubuntu
    container_name: grafana
    restart: always
    ports:
      - 3000:3000
    networks:
      - analytics
    volumes:
      - grafana-storage:/var/lib/grafana  
    environment:
      - GF_SECURITY_ADMIN_USER=admin
      - GF_SECURITY_ADMIN_PASSWORD=chronos123
  influxdb:
    image: quay.io/influxdb/influxdb:v2.0.4
    container_name: influxdb
    restart: always
    ports:
      - 8086:8086
    networks:
      - analytics
    volumes:
      - /mnt/influxdb/:/root/.influxdbv2/
      - ./etc/influxdb/:/etc/influxdb/
  telegraf:
    image: telegraf:1.18.0
    container_name: telegraf
    restart: always
    depends_on:
        - influxdb
    networks:
      - analytics
    volumes:
      - /mnt/telegraf/:/var/lib/telegraf
      - ./etc/telegraf/:/etc/telegraf/
    env_file:
      - secrets.env
    environment:
        INFLUXDB_URL: http://influxdb:8086
    command:
        --config-directory /etc/telegraf/telegraf.d
    links:
      - influxdb
  kapacitor:
    image: kapacitor:1.5.8
    container_name: kapacitor
    restart: always
    ports:
      - 9092:9092
    networks:
      - analytics
    volumes:
      - /mnt/data/kapacitor/:/var/lib/kapacitor
      - ./etc/kapacitor/:/etc/kapacitor/
    environment:
        INFLUXDB_URL: "http://influxdb:8086"
        INFLUXDB_PASSWORD: "${PASSWORD}"
        KAPACITOR_INFLUXDB_ENABLED: "true"
        KAPACITOR_INFLUXDB_NAME: "monitoring"
        KAPACITOR_INFLUXDB_STARTUP_TIMEOUT: "5m"
        KAPACITOR_INFLUXDB_SUBSCRIPTION_MODE: "server"
        KAPACITOR_INFLUXDB_SUBSCRIPTION_PROTOCOL: "http"
        KAPACITOR_INFLUXDB_KAPACITOR_HOSTNAME: "kapacitor"
networks:
  analytics:
volumes:
  grafana-storage:
    external: true

Version - Influxdb2.0. New token was also all access token. I deleted all folders & files and then re-created containers, then it started to work properly. But still not sure why this problem occured.

@Pratik_Das_Baghel.
Thanks for sharing your docker-compose. I’m happy it’s working for you now.