Coder Social home page Coder Social logo

Comments (9)

chengshiwen avatar chengshiwen commented on July 28, 2024

./configs/influxdb-meta.conf/ and ./configs/influxdb.conf/ should be different from each other.

And the hostname like 38b2aebcf853 and 279134311c56 is an unfixed string. It is highly recommended to use a fixed hostname by setting container_name. After resetting the cluster and all nodes execute the command like

influxd-ctl -bind influxdb-meta-01:8091 add-meta influxdb-meta-01:8091
influxd-ctl -bind influxdb-meta-01:8091 add-meta influxdb-meta-02:8091
influxd-ctl -bind influxdb-meta-01:8091 add-meta influxdb-meta-03:8091
influxd-ctl -bind influxdb-meta-01:8091 add-data influxdb-data-01:8088
influxd-ctl -bind influxdb-meta-01:8091 add-data influxdb-data-02:8088

Please refer to Manage Clusters to learn about the option -bind

from influxdb-cluster.

sam30606 avatar sam30606 commented on July 28, 2024

I used the command that your provide, same problem.
After running docker-compose down and docker-compose up, I attempted to use add-meta and add-data in meta01, and here are the logs.
add-meta

add-meta: operation exited with error: dangled meta node at "influxdb-meta-01:8091" already has state present, cannot add another meta node

add-data

add-data: operation exited with error: data node failed to contact valid meta server in list []

in data node

ts=2023-10-23T02:40:31.897305Z lvl=info msg="Failure getting snapshot" log_id=0l2agxeG000 service=metaclient server=48d8f5099c17:8091 error="Get \"http://48d8f5099c17:8091?index=0\": dial tcp: lookup 48d8f5099c17 on 127.0.0.11:53: server misbehaving"

What additional information can I provide to help resolve this issue?

from influxdb-cluster.

chengshiwen avatar chengshiwen commented on July 28, 2024

In logs from data node, you can see the error message server=48d8f5099c17:8091 error="Get \"http://48d8f5099c17:8091?index=0\": dial tcp: lookup 48d8f5099c17 on 127.0.0.11:53: server misbehaving". It means your hostname is configured wrong.

You need to configure hostname to the fixed value I mentioned earlier in influxdb-meta.conf and influxdb.conf

from influxdb-cluster.

chengshiwen avatar chengshiwen commented on July 28, 2024

Also, please check out the installation documentation in detail

from influxdb-cluster.

sam30606 avatar sam30606 commented on July 28, 2024

My influxdb-meta.conf and influxdb.conf were configured as follows at the top:

hostname="influxdb-****-0*

After running docker-compose down and docker-compose up, I encountered the same error, But ping the hostname is access.

from influxdb-cluster.

chengshiwen avatar chengshiwen commented on July 28, 2024

Could you provide all files including docker-compose.yml, influxdb-meta.conf and influxdb.conf?

from influxdb-cluster.

sam30606 avatar sam30606 commented on July 28, 2024

Sure!

  • docker-compose.yml
version: "3.5"

services:
  influxdb-meta-01:
    image: chengshiwen/influxdb:1.8.10-c1.1.2-meta
    container_name: influxdb-meta-01
    restart: unless-stopped
    networks:
      - influxdb-cluster
    volumes:
      - ./influxdb-meta-01/etc/influxdb/:/etc/influxdb/
      - ./influxdb-meta-01/var/lib/influxdb/:/var/lib/influxdb

  influxdb-meta-02:
    image: chengshiwen/influxdb:1.8.10-c1.1.2-meta
    container_name: influxdb-meta-02
    restart: unless-stopped
    networks:
      - influxdb-cluster
    volumes:
      - ./influxdb-meta-02/etc/influxdb/:/etc/influxdb/
      - ./influxdb-meta-02/var/lib/influxdb/:/var/lib/influxdb

  influxdb-meta-03:
    image: chengshiwen/influxdb:1.8.10-c1.1.2-meta
    container_name: influxdb-meta-03
    restart: unless-stopped
    networks:
      - influxdb-cluster
    volumes:
      - ./influxdb-meta-03/etc/influxdb/:/etc/influxdb/
      - ./influxdb-meta-03/var/lib/influxdb/:/var/lib/influxdb

  influxdb-data-01:
    image: chengshiwen/influxdb:1.8.10-c1.1.2-data
    container_name: influxdb-data-01
    ports:
      - 8186:8086
    restart: unless-stopped
    networks:
      - influxdb-cluster
    volumes:
      - ./influxdb-data-01/etc/influxdb/:/etc/influxdb/
      - ./influxdb-data-01/var/lib/influxdb:/var/lib/influxdb

  influxdb-data-02:
    image: chengshiwen/influxdb:1.8.10-c1.1.2-data
    container_name: influxdb-data-02
    ports:
      - 8286:8086
    restart: unless-stopped
    networks:
      - influxdb-cluster
    volumes:
      - ./influxdb-data-02/etc/influxdb/:/etc/influxdb/
      - ./influxdb-data-02/var/lib/influxdb:/var/lib/influxdb

  chronograf:
    image: chronograf
    container_name: chronograf
    ports:
      - 8888:8888
    restart: unless-stopped
    networks:
      - influxdb-cluster
    volumes:
      - ./chronograf/var/lib/chronograf:/var/lib/chronograf

  kapacitor:
    image: kapacitor
    container_name: kapacitor
    ports:
      - 9092:9092
    restart: unless-stopped
    networks:
      - influxdb-cluster
    volumes:
      - ./kapacitor/etc/kapacitor:/etc/kapacitor
      - ./kapacitor/var/lib/kapacitor:/var/lib/kapacitor
      - ./kapacitor/tmp:/tmp
networks:
  influxdb-cluster:
  • influxdb-meta.conf
hostname="influxdb-meta-01"

[meta]
dir = "/var/lib/influxdb/meta"

  • influxdb.conf
hostname="influxdb-data-01"

[http]
flux-enabled = true

[meta]
dir = "/var/lib/influxdb/meta"

[data]
dir = "/var/lib/influxdb/data"
engine = "tsm1"
wal-dir = "/var/lib/influxdb/wal"

[hinted-handoff]
dir = "/var/lib/influxdb/hh"

from influxdb-cluster.

chengshiwen avatar chengshiwen commented on July 28, 2024

@sam30606 You forgot to configure hostname like hostname: influxdb-meta-01, and you can refer to docker-compose.yml

  influxdb-meta-01:
    image: chengshiwen/influxdb:1.8.10-c1.1.2-meta
    container_name: influxdb-meta-01
    hostname: influxdb-meta-01
    restart: unless-stopped
    networks:
      - influxdb-cluster

from influxdb-cluster.

sam30606 avatar sam30606 commented on July 28, 2024

Oh, my mistake! Thank you for your patience in answering. :)

from influxdb-cluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.