funky-eyes commented on issue #7371: URL: https://github.com/apache/incubator-seata/issues/7371#issuecomment-2914612030
> > > 当然是把有问题的发出来呀,没问题的发出来干啥 > > > > > > 我发的就是有问题的,我的意思是部署这个环节只有用2.4.0的镜像可以成功,低版本部署都无法成功。2.4.0部署成功后客户端连接报错如上。 > > 然后operator部署的方式我也试了,operator部署的话2.3.0可以部署成功,但是客户端连接也报错。 2025-05-27T17:46:06.311+08:00 ERROR 1 --- [eshMetadata_1_1] o.a.s.d.r.raft.RaftRegistryServiceImpl : watch cluster node: seata-server-0.seata-server-cluster:7091, fail: seata-server-0.seata-server-cluster 2025-05-27T17:46:06.311+08:00 ERROR 1 --- [ main] o.a.s.c.r.n.NettyClientChannelManager : Failed to get available servers: Cannot invoke "java.net.InetAddress.getHostAddress()" because the return value of "java.net.InetSocketAddress.getAddress()" is null > > java.lang.NullPointerException: Cannot invoke "java.net.InetAddress.getHostAddress()" because the return value of "java.net.InetSocketAddress.getAddress()" is null at org.apache.seata.common.util.NetUtil.toStringAddress(NetUtil.java:93) at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source) at org.apache.seata.core.rpc.netty.NettyClientChannelManager.getAvailServerList(NettyClientChannelManager.java:308) at org.apache.seata.core.rpc.netty.NettyClientChannelManager.doReconnect(NettyClientChannelManager. java:187) at org.apache.seata.core.rpc.netty.NettyClientChannelManager.initReconnect(NettyClientChannelManager.java:176) at org.apache.seata.core.rpc.netty.TmNettyRemotingClient.initConnection(TmNettyRemotingClient.java:293) at org.apache.seata.core.rpc.netty.TmNettyRemotingClient.init(TmNettyRemotingClient.java:193) at org.apache.seata.tm.TMClient.init(TMClient.java:47) at org.apache.seata.spring.annotation.GlobalTransactionScanner.initClient(GlobalTransactionScanner.java:247) at org.apache.seata.spring.annotation.GlobalTransactionScanner.afterPropertiesSet(GlobalTransactionScanner.java:495) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1815) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1764) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCap ableBeanFactory.java:596) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:261) at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:796) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:600) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:746) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:448) at org.springframework.boot.SpringApplication.run(SpringApplication.java:324) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1321) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1310) at org.dxstudio.rate.DxStartApplication.main(DxStartApplication.java:13) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) at org.springframework.boot.loader.Launcher.launch(Launcher.java:95) at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) at org.springframe work.boot.loader.JarLauncher.main(JarLauncher.java:65) > > ## server端部署文件 > apiVersion: operator.seata.apache.org/v1alpha1 > kind: SeataServer > metadata: > name: seata-server > namespace: seata > spec: > serviceName: seata-server-cluster > replicas: 1 > image: apache/seata-server:2.3.0 > persistence: > volumeReclaimPolicy: Retain > store: > resources: > requests: > storage: 5Gi > env: > - name: console.user.username > value: seata > - name: console.user.password > valueFrom: > secretKeyRef: > name: seata > key: password > apiVersion: v1 kind: Secret metadata: name: seata namespace: seata type: Opaque data: password: MTIzNDU2 客户端配置 seata: tx-service-group: default_tx_group service: vgroup-mapping: default_tx_group: default registry: type: raft raft: server-addr: seata-server-0.seata-server-cluster.seata.svc.cluster.local:7091 metadata-max-age-ms: 30000 username: seata password: 123456 tokenValidityInMilliseconds: 1740000 这是2.3客户端的bug,你可以选择降级或者等2.4版本发布。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
