Aller au contenu

Portainer - InfluxDB v2 - unhealthy

Featured Replies

Posté(e)

Bonsoir à tous.

J'essaie d installer InfluxDB (v2.0.3) en docker sous Portainer via un stack sur mon NAS Synology DSM 7. Malheureusement, le container reste en unhealthy.

ci après mon fichier

version: "3.9"

services:
  influxdb:
    image: quay.io/influxdb/influxdb:v2.0.3
    container_name: influxdb2
    environment:
      - DOCKER_INFLUXDB_INIT_MODE=setup
      - DOCKER_INFLUXDB_INIT_USERNAME=usr
      - DOCKER_INFLUXDB_INIT_PASSWORD=pwd
      - DOCKER_INFLUXDB_INIT_ORG=myorg
      - DOCKER_INFLUXDB_INIT_BUCKET=nas_telegraf
      - DOCKER_INFLUXDB_INIT_RETENTION=1y 
      - TZ=Europe/Paris       
    volumes:
      - type: bind
        source: /volume1/docker/monitoring/influxdb-data/data
        target: /var/lib/influxdb2
      - type: bind
        source: /volume1/docker/monitoring/influxdb-data/config
        target: /etc/influxdb2
    restart: always
    healthcheck:
      test: "curl -f http://192.168.1.159:8086/ping"
      interval: 30s
      timeout: 10s
      retries: 5
    ports:
      - 8086:8086      
    networks:
      - monitoring
networks:
   monitoring:
      external: true

et le log qui boucle sur ca 

ts=2025-02-03T23:05:45.575775Z lvl=info msg=Unauthorized log_id=0uVVtfS0000 error="authorization not found"

J arrive bien à accéder a http://192.168.1.159:1883/, mais rien n 'est persistant.

si quelqu'un a une idée, je suis preneur.
Merci
Arnaud
 

Modifié par nono

Posté(e)
  • Auteur

Re Bonjour,

j ai progressé dans l apprentissage de Portainer, j ai changé de stratégie en passant par SSH.

Dans mon stack, j ai bien deja un influxdb2 de créé.

image.thumb.png.0fd442fa1211b5f735a796c2e0ebe4d9.png

Mais j ai un soucis au niveau du volume.

image.png.584c40214c6eb652d16b444960566333.png

 

Voici ma derniere version 

version: "3.9"

services:

  influxdb2:
    image: quay.io/influxdb/influxdb:v2.0.3
    container_name: influxdb2
    environment:
      - DOCKER_INFLUXDB_INIT_MODE=setup
      - DOCKER_INFLUXDB_INIT_USERNAME=acognard
      - DOCKER_INFLUXDB_INIT_PASSWORD=LAEtiti@1408
      - DOCKER_INFLUXDB_INIT_ORG=chtiloft
      - DOCKER_INFLUXDB_INIT_BUCKET=nas_telegraf
      - DOCKER_INFLUXDB_INIT_RETENTION=1y
      - DEBIAN_FRONTEND=noninteractive
      - INFLUXDB_ADMIN_ENABLED=true
      - INFLUXDB_ADMIN_USER=admin
      - INFLUXDB_ADMIN_PASSWORD=LAEtiti@1408
      - INFLUXDB_DB=influxDB
      - INFLUXDB_USER=nas_telegraf
      - INFLUXDB_USER_PASSWORD=nas_telegraf
      - TZ=Europe/Paris       
    volumes:
      - "./monitoring/influxdb2/data:/var/lib/influxdb2:rw"
      - "./monitoring/influxdb2/config:/etc/influxdb2:rw"
      #- "./monitoring/influxdb2-data/data:/var/lib/influxdb2:rw"
      #- "./monitoring/influxdb2-data/config:/etc/influxdb2:rw"
      #- type: bind
      #  source: /volume1/docker/monitoring/influxdb2-data/data
      #  target: /var/lib/influxdb2
      #- type: bind
      #  source: /volume1/docker/monitoring/influxdb2-data/config
      #  target: /etc/influxdb2
    restart: always
    healthcheck:
      #test: "curl -f http://192.168.1.159:8086/ping"
      test: ["CMD", "curl", "-sI", "http://127.0.0.1:8086/ping"]
      interval: 30s
      timeout: 10s
      retries: 24
    ports:
      - 8086:8086      
    networks:
      - monitoring

Mais je ne le vois pas 

image.png.4d9d6739fc13890c9b59b02ddf434fa1.png

Et en essayant de le créé

image.thumb.png.db2928d6ca128c5251ae6c13ccd0a04f.png

Et en passant par portainer via le web editor :

Error response from daemon: Conflict. The container name "/influxdb2" is already in use by container "64cb9af074da2fc45990cfee528b8cba190e94a380f115b6be72bc7e3c1a3475". You have to remove (or rename) that container to be able to reuse that name.

 

Merci d avance.

Arnaud

Modifié par nono

Posté(e)
  • Auteur

Bonjour , merci pour ton retour @firlin Oui, c était ma base de départ.

je ne vois vraiment pas ce qui peut foirer . et du coup, je pense avoir supprimé ma base influxdb de départ ! 

j ai toujours cet état unhealthy. Du coup, à chaque relance, je me retrouve dans la page onboarding/0, meme si je créé les buckets et cie.

j 'ai tenté plusieurs possibilités, sans résultat

    healthcheck:
      #test: "curl -f http://192.168.1.159:8086/ping"
      #test: "curl -f http://localhost:8086/ping"
      #test: ["CMD", "curl", "-sI", "http://127.0.0.1:8086/ping"]
      test: "curl -f 127.0.0.1:8086/ping"
      interval: 30s
      timeout: 10s
      retries: 24

 

Cordialement

Arnaud

Modifié par nono

Posté(e)
  • Auteur

Bon, je suis passé sur l image latest d influxDB2 et ca m a l air de fonctionner !

 

  influxdb2:
    #image: quay.io/influxdb/influxdb:v2.0.3
    image: influxdb:latest
    container_name: influxdb2
    privileged: true

Arnaud

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.