使用docker在linux arm64系统上面部署nebulaGraph但是vesoft/nebula-storaged这个服务一次报错

我是使用docker单机部署的nebulaGraph,而且文件权限都是root用户权限但是nebula-storaged这个服务一直报错

Log line format: [IWEF]yyyymmdd hh:mm:ss.uuuuuu threadid file:line] msg
I20240913 15:38:38.532240     1 StorageDaemon.cpp:132] localhost = "storaged0":9779
I20240913 15:38:38.532454     1 StorageDaemon.cpp:147] data path= /data/storage
I20240913 15:38:38.537180     1 MetaClient.cpp:80] Create meta client to "metad0":9559
I20240913 15:38:38.537209     1 MetaClient.cpp:81] root path: /usr/local/nebula, data path size: 1
W20240913 15:38:38.537249     1 FileBasedClusterIdMan.cpp:43] Open file failed, error No such file or directory
I20240913 15:38:43.542543    47 ThriftClientManager-inl.h:67] resolve "metad0":9559 as "172.18.0.2":9559
E20240913 15:38:46.550460     1 MetaClient.cpp:112] Heartbeat failed, status:Machine not existed!
I20240913 15:38:46.550683     1 MetaClient.cpp:137] Waiting for the metad to be ready!
W20240913 15:38:56.550853     1 FileBasedClusterIdMan.cpp:43] Open file failed, error No such file or directory
I20240913 15:38:56.551911    53 ThriftClientManager-inl.h:67] resolve "metad0":9559 as "172.18.0.2":9559
E20240913 15:38:59.558738     1 MetaClient.cpp:112] Heartbeat failed, status:Machine not existed!
I20240913 15:38:59.558807     1 MetaClient.cpp:137] Waiting for the metad to be ready!
W20240913 15:39:09.558969     1 FileBasedClusterIdMan.cpp:43] Open file failed, error No such file or directory
I20240913 15:39:09.560036    54 ThriftClientManager-inl.h:67] resolve "metad0":9559 as "172.18.0.2":9559
E20240913 15:39:12.566646     1 MetaClient.cpp:112] Heartbeat failed, status:Machine not existed!
I20240913 15:39:12.566696     1 MetaClient.cpp:137] Waiting for the metad to be ready!
W20240913 15:39:22.566854     1 FileBasedClusterIdMan.cpp:43] Open file failed, error No such file or directory
I20240913 15:39:22.567821    55 ThriftClientManager-inl.h:67] resolve "metad0":9559 as "172.18.0.2":9559
E20240913 15:39:25.590230     1 MetaClient.cpp:112] Heartbeat failed, status:Machine not existed!
I20240913 15:39:25.590298     1 MetaClient.cpp:137] Waiting for the metad to be ready!

下面是我的docker-compose

version: '3.4'
services:
  metad0:
    image: vesoft/nebula-metad
    environment:
      USER: root
      TZ: "Asia/Shanghai"
    command:
      - --meta_server_addrs=metad0:9559
      - --local_ip=metad0
      - --ws_ip=metad0
      - --port=9559
      - --ws_http_port=19559
      - --data_path=/data/meta
      - --log_dir=/logs
      - --v=0
      - --minloglevel=0
    healthcheck:
      test: ["CMD", "curl", "-sf", "http://metad0:19559/status"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 20s
    ports:
      - 9559:9559
      - 19559:19559
      - 19560
    volumes:
      - ./data/meta0:/data/meta
      - ./logs/meta0:/logs
    networks:
      - nebula-net
    restart: on-failure
    cap_add:
      - SYS_PTRACE

  storaged0:
    image: vesoft/nebula-storaged
    environment:
      USER: root
      TZ: "Asia/Shanghai"
    command:
      - --meta_server_addrs=metad0:9559
      - --local_ip=storaged0
      - --ws_ip=storaged0
      - --port=9779
      - --ws_http_port=19779
      - --data_path=/data/storage
      - --log_dir=/logs
      - --v=0
      - --minloglevel=0
    depends_on:
      - metad0
    healthcheck:
      test: ["CMD", "curl", "-sf", "http://storaged0:19779/status"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 20s
    ports:
      - 9779:9779
      - 19779:19779
      - 19780
    volumes:
      - ./data/storage0:/data/storage
      - ./logs/storage0:/logs
    networks:
      - nebula-net
    restart: on-failure
    cap_add:
      - SYS_PTRACE

  graphd:
    image: vesoft/nebula-graphd
    environment:
      USER: root
      TZ: "Asia/Shanghai"
    command:
      - --meta_server_addrs=metad0:9559
      - --port=9669
      - --local_ip=graphd
      - --ws_ip=graphd
      - --ws_http_port=19669
      - --log_dir=/logs
      - --v=0
      - --minloglevel=0
    depends_on:
      - storaged0
    healthcheck:
      test: ["CMD", "curl", "-sf", "http://graphd:19669/status"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 20s
    ports:
      - 9669:9669
      - 19669:19669
      - 19670
    volumes:
      - ./logs/graph:/logs
    networks:
      - nebula-net
    restart: on-failure
    cap_add:
      - SYS_PTRACE

networks:
  nebula-net:

看下这个metad服务的日志吧,报错是metad无法连接

1 个赞

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。