报错信息如下
Thu Mar 21 09:54:39 CST 2019 sun.misc.Launcher$AppClassLoader@58372a00 JM.Log:INFO Init JM logger with Slf4jLoggerFactory success, sun.misc.Launcher$AppClassLoader@58372a00
Thu Mar 21 09:54:39 CST 2019 sun.misc.Launcher$AppClassLoader@58372a00 JM.Log:INFO Log root path: C:\Users\sxw\logs\
Thu Mar 21 09:54:39 CST 2019 sun.misc.Launcher$AppClassLoader@58372a00 JM.Log:INFO Set nacos log path: C:\Users\sxw\logs\nacos
2019-03-21 09:54:39.051 INFO [main]com.alibaba.nacos.client.identify.CredentialWatcher.info:101 -[] [] [] No credential found
2019-03-21 09:54:40.266 INFO [main]c.a.fescar.core.rpc.netty.AbstractRpcRemotingServer.start:151 -Server started ...
Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance after all servers([localhost]) tried
at com.alibaba.fescar.core.rpc.netty.AbstractRpcRemotingServer.start(AbstractRpcRemotingServer.java:155)
at com.alibaba.fescar.core.rpc.netty.RpcServer.init(RpcServer.java:130)
at com.alibaba.fescar.server.Server.main(Server.java:88)
Caused by: java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance after all servers([localhost]) tried
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:366)
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:290)
at com.alibaba.nacos.client.naming.net.NamingProxy.registerService(NamingProxy.java:175)
at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:178)
at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:161)
at com.alibaba.fescar.discovery.registry.NacosRegistryServiceImpl.register(NacosRegistryServiceImpl.java:78)
at com.alibaba.fescar.core.rpc.netty.AbstractRpcRemotingServer.start(AbstractRpcRemotingServer.java:152)
... 2 more
cluster":"default","ip":"sxw-PC","metadata":{}
启动 Seata 服务器时必须配置ip。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。