使用consul做注册中心报OperationException错误

2017-12-13 12:34:15.103 ERROR 25532 --- [pool-5-thread-3] error : consul heartbeat-set check pass error!serviceid:192.168.1.126:8313-com.xtr.appapi.api.service.client.ClientOperateLogsService

com.ecwid.consul.v1.OperationException: OperationException(statusCode=500, statusMessage='Internal Server Error', statusContent='CheckID "service:192.168.1.126:8313-com.xtr.appapi.api.service.client.ClientOperateLogsService" does not have associated TTL')
at com.ecwid.consul.v1.agent.AgentConsulClient.agentCheckPass(AgentConsulClient.java:211) ~[consul-api-1.3.0.jar:na]
at com.ecwid.consul.v1.agent.AgentConsulClient.agentCheckPass(AgentConsulClient.java:198) ~[consul-api-1.3.0.jar:na]
at com.ecwid.consul.v1.agent.AgentConsulClient.agentCheckPass(AgentConsulClient.java:193) ~[consul-api-1.3.0.jar:na]
at com.ecwid.consul.v1.ConsulClient.agentCheckPass(ConsulClient.java:258) ~[consul-api-1.3.0.jar:na]
at com.weibo.api.motan.registry.consul.client.ConsulEcwidClient.checkPass(ConsulEcwidClient.java:31) ~[motan-registry-consul-1.1.0.jar:na]
at com.weibo.api.motan.registry.consul.ConsulHeartbeatManager$HeartbeatJob.run(ConsulHeartbeatManager.java:153) ~[motan-registry-consul-1.1.0.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]

后发现是服务没有注册到consul上。

你可能感兴趣的:(spring,cloud)