zoukankan      html  css  js  c++  java
  • windows10 wsl start consul fail

    today I want start one service use consul on my local environment wsl(ubuntu) on windows10,so I download consul from https://www.consul.io/,copy consul to /usr/local/bin ,then I use start script copy from server  and change some configure,such as ip ,but it failed and shows "syslog setup did not succeed within timeout (1m0s)",it seems less info from  internet ,but the docs is so sample from consul.io ;  so I just try it with less params ; 

    the complete cmd : 

     consul agent  -syslog -data-dir /home/w/consul/data -bind=10.168.16.2 -node=client2 -rejoin -pid-file=/home/w/consul/consul.pid -client 0.0.0.0 -join=10.168.16.65 -ui

    so I just use 

     consul agent -data-dir /home/w/consul/data -bind=10.168.16.2 -node=client2 -rejoin -pid-file=/home/w/consul/consul.pid -client 0.0.0.0 -join=10.168.16.65 -ui

    it seems start, but fast show other error message ,such as : 

     2021-05-08T16:35:26.348+0800 [ERROR] agent.client: RPC failed to server: method=Catalog.NodeServiceList server=10.168.16.65:8300 error="rpc error making call: rpc: can't find method Catalog.NodeServiceList"
        2021-05-08T16:35:26.365+0800 [INFO]  agent: Synced node info
        2021-05-08T16:35:26.585+0800 [ERROR] agent.client: RPC failed to server: method=Catalog.NodeServiceList server=10.168.16.65:8300 error="rpc error making call: rpc: can't find method Catalog.NodeServiceList"
        2021-05-08T16:35:41.748+0800 [ERROR] agent: Failed to check for updates: error="Get "https://checkpoint-api.hashicorp.com/v1/check/consul?arch=amd64&os=linux&signature=0280491d-c38b-88b9-09b7-81f67d97ad50&version=1.9.5": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
        2021-05-08T16:36:30.663+0800 [ERROR] agent.client: RPC failed to server: method=Catalog.NodeServiceList server=10.168.16.65:8300 error="rpc error making call: rpc: can't find method Catalog.NodeServiceList"
        2021-05-08T16:37:28.817+0800 [ERROR] agent.client: RPC failed to server: method=Internal.ServiceDump server=10.168.16.65:8300 error="rpc error making call: rpc: can't find method Internal.ServiceDump"
        2021-05-08T16:37:28.818+0800 [ERROR] agent.http: Request error: method=GET url=/v1/internal/ui/services?dc=dc1 from=[::1]:53100 error="rpc error making call: rpc: can't find method Internal.ServiceDump"

    so I think the client version may not math server

     

    use  "consul version"  command to query  server and client version ; 

    Consul v1.4.0 (server)

    Consul v1.9.0 (client)

    so I copy server consul from bin  to client ,all success ; 

    In windows10  WSL  not support "-syslog " flag ,so it should be removed ,otherwise ,you must make sure client and server consul version is the same

     

  • 相关阅读:
    GB28181 流媒体几种数据传输模式UDP、TCP(被动、主动)
    LiveGBS
    利用ffmpeg采集纯音频推流到LiveQing实现RTMP、FLV、HLS web直播与录像回放
    LiveQing高性能RTMP、FLV、HLS视频流媒体服务器软件如何自定义修改成自己的服务软件名称
    LiveQing
    LiveQing直播流媒体服务解决直播录像存储、直播录像回看、直播录像计划排班配置
    GB28181流媒体服务LiveGBS前端源码(vue+webpack)
    LiveNVR
    华为、科达、海康、大华等厂家摄像头通过非标方式(RTSP)接入流媒体服务实现WEB直播与录像
    LiveNVR RTSP流媒体服器软件通过按需直播降低企业服务带宽
  • 原文地址:https://www.cnblogs.com/lavin/p/14745819.html
Copyright © 2011-2022 走看看