Closed ggunlics closed 4 years ago
@GZHua check seata-server registry ipAddress.
@GZHua check seata-server registry ipAddress.
This is the cause of the error. my ip is 192.168.1.189 and unknow where the 169.254.101.48 came from
Can I specify this ip?
this problem my cause by use Window WSL, because it is a local IP when my colleague run the server by mac .
问题原因就是WSL下seata-server的启动IP不正确 就像docker部署要加-e SEATA_IP=192.168.1.1来强制指定启动IP
问题原因就是WSL下seata-server的启动IP不正确 就像docker部署要加-e SEATA_IP=192.168.1.1来强制指定启动IP
厉害
在部署 联调过程中 网络还是很关键的
问题原因就是WSL下seata-server的启动IP不正确 就像docker部署要加-e SEATA_IP=192.168.1.1来强制指定启动IP
您好,大佬,麻烦问下,我在wsl下加了环境变量 -e SEATA_IP=192.168.1.1 启动seata-server服务,但是 client端还是有 ` 2022-10-05 22:59:30.864 ERROR 21900 --- [ restartedMain] i.s.c.r.netty.NettyClientChannelManager : 0101 can not connect to 192.168.1.1:8091 cause:can not register RM,err:can not connect to services-server.
io.seata.common.exception.FrameworkException: can not register RM,err:can not connect to services-server. at io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:250) ~[seata-all-1.5.1.jar:1.5.1] at io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:112) ~[seata-all-1.5.1.jar:1.5.1] at io.seata.core.rpc.netty.NettyClientChannelManager.reconnect(NettyClientChannelManager.java:196) ~[seata-all-1.5.1.jar:1.5.1] at io.seata.core.rpc.netty.TmNettyRemotingClient.init(TmNettyRemotingClient.java:182) [seata-all-1.5.1.jar:1.5.1] at io.seata.tm.TMClient.init(TMClient.java:47) [seata-all-1.5.1.jar:1.5.1] at io.seata.spring.annotation.GlobalTransactionScanner.initClient(GlobalTransactionScanner.java:220) [seata-all-1.5.1.jar:1.5.1] at io.seata.spring.annotation.GlobalTransactionScanner.afterPropertiesSet(GlobalTransactionScanner.java:512) [seata-all-1.5.1.jar:1.5.1] ` 麻烦问下,该怎么处理呢,谢谢大佬!
Ⅰ. Issue Description
在使用seata1.1.0运行seata-samples/springcloud-nacos-seata项目时出现这个错误, 我在网上查询尝试了很多方法,也没办法解决这问题. 已确认以下解决方案:
这个问题似乎是client无法连接seata server, seata server启动后的IP是个奇怪的IP "169.254.101.48". 这个IP无法ping通, 我想这是问题的关键 因为报错 "0101 can not connect to 169.254.101.48:8091 cause:can not register RM,err:can not connect to services-server." client无法连接到这个IP, 但是这个IP是 seata-server自己设置的, 启动参数也没有可以设置的
Ⅱ. Describe what happened
我的配置: seata server:
config.txt:
MySQL连接驱动我已经更换了, config.txt的已经导入到nacos中
seata-server的启动命令 sh seata-server.sh -p 8091 -h 127.0.0.1 -m db nacos启动命令 sh startup.sh -m standalone
client: registry.conf:
两个服务的register.conf一样
storage-service: application.properties
order-service: application.properties
所有服务都注册到nacos中了
堆栈错误信息:
Ⅲ. Describe what you expected to happen
正常运行, 能测试事务以及回滚
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment: