开发者社区> 问答> 正文

Seata 集成 Nacos 启动失败

报错信息如下

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

展开
收起
一人吃饱,全家不饿 2021-02-01 23:50:24 1604 0
来自:阿里开源
1 条回答
写回答
取消 提交回答
  • cluster":"default","ip":"sxw-PC","metadata":{}

    启动 Seata 服务器时必须配置ip。

    2021-02-01 23:50:30
    赞同 展开评论 打赏
来源圈子
更多
收录在圈子:
+ 订阅
阿里巴巴相信开源的世界里人人贡献代码,人人获得收益,共同创造一个互帮互利的社区,促进技术进步和发展。
问答排行榜
最热
最新

相关电子书

更多
workshop专场-微服务专场-开发者动手实践营-微服务-使用Nacos进行服务的动态发现和流量调度 立即下载
Nacos 启航,发布第一个版本, 云原生时代助力用户微服务平台建设 立即下载
云效助力企业集成安全到DevOps中 立即下载