nono Posté(e) le 3 février Posté(e) le 3 février (modifié) 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é le 4 février par nono 0 Citer
nono Posté(e) le 6 février Auteur Posté(e) le 6 février (modifié) 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éé. Mais j ai un soucis au niveau du volume. 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 Et en essayant de le créé 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é le 6 février par nono 0 Citer
firlin Posté(e) le 6 février Posté(e) le 6 février Bonjour @nono, Question as tu regardé ce tutos ? 0 Citer
nono Posté(e) le 7 février Auteur Posté(e) le 7 février (modifié) 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é le 7 février par nono 0 Citer
nono Posté(e) le 7 février Auteur Posté(e) le 7 février 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 0 Citer
Messages recommandés
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.