Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose storaged faild #4322

Closed
panla opened this issue Jun 14, 2022 · 2 comments
Closed

docker-compose storaged faild #4322

panla opened this issue Jun 14, 2022 · 2 comments

Comments

@panla
Copy link

panla commented Jun 14, 2022

version

  • metda: v3.1.0
  • storaged: v3.1.0
  • graphd: v3.1.0

log

I20220614 16:37:25.201115     1 StorageDaemon.cpp:129] localhost = "nebula-storaged0":9779
I20220614 16:37:25.201246     1 StorageDaemon.cpp:144] data path= /data/storage
I20220614 16:37:25.204864     1 MetaClient.cpp:80] Create meta client to "nebula-metad0":9559
I20220614 16:37:25.204892     1 MetaClient.cpp:81] root path: /usr/local/nebula, data path size: 1
W20220614 16:37:25.204919     1 FileBasedClusterIdMan.cpp:43] Open file failed, error No such file or directory
I20220614 16:37:25.215701    48 ThriftClientManager-inl.h:67] resolve "nebula-metad2":9559 as "172.21.0.5":9559
I20220614 16:37:26.219305    48 ThriftClientManager-inl.h:67] resolve "nebula-metad0":9559 as "172.21.0.3":9559
E20220614 16:37:28.227651     1 MetaClient.cpp:98] Heartbeat failed, status:Machine not existed!
I20220614 16:37:28.227782     1 MetaClient.cpp:123] Waiting for the metad to be ready!
W20220614 16:37:38.227864     1 FileBasedClusterIdMan.cpp:43] Open file failed, error No such file or directory
I20220614 16:37:38.228451    54 ThriftClientManager-inl.h:67] resolve "nebula-metad0":9559 as "172.21.0.3":9559
E20220614 16:37:41.239555     1 MetaClient.cpp:98] Heartbeat failed, status:Machine not existed!
I20220614 16:37:41.239581     1 MetaClient.cpp:123] Waiting for the metad to be ready!

yaml

version: '3.9'
services:

  storaged0:
    image: vesoft/nebula-storaged:v3.1.0
    container_name: nebula-storaged0
    command:
      - --meta_server_addrs=nebula-metad0:9559,nebula-metad1:9559,nebula-metad2:9559
      - --local_ip=nebula-storaged0
      - --ws_ip=nebula-storaged0
      - --port=9779
      - --ws_http_port=19779
      - --data_path=/data/storage
      - --log_dir=/logs
      - --v=0
      - --minloglevel=0
    # restart: alyways
    networks:
      - nebula-net
    ports:
      - "9701:9779"
      - "9702:19779"
      - "9703:19780"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./data/storaged0:/data/storage
      - ./logs/storaged0:/logs
    environment:
      USER: root
    # depends_on:
    #   - metad0
    healthcheck:
      test: ["CMD", "curl", "-sf", "http://nebula-storaged0:19779/status"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 20s
    cap_add:
      - SYS_PTRACE

  # storaged1
  # storaged2

networks:
  nebula-net:
    external: true

other containers

  • nebula-metad0, nebula-metad1, nebula-metad2: healthy
  • nebula-storaged0, nebula-storaged1, nebula-storaged2: unhealthy
@wey-gu
Copy link
Contributor

wey-gu commented Jun 15, 2022

Did you ADD HOSTS for storage hosts :) ?

https://docs.nebula-graph.io/3.1.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose/

This is a new mechanism in 3.x, and in the default compose file there is one console container with this call to help you do that, but it's hardcoded based on domain names not being changed(as you did), that could be why you encounter this issue.

I agree that storage hosts not being activated shouldn't be marked unhealthy(we should revisit this).

nebula-console -addr graphd -port 9669 -u root -p nebula -e 'ADD HOSTS "nebula-storaged0":9779,"nebula-storaged1":9779,"nebula-storaged2":9779'

BR//Wey

@panla
Copy link
Author

panla commented Jun 15, 2022

@wey-gu thanks

before, I thought every service could run independently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants