You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "dxlance11 (via GitHub)" <gi...@apache.org> on 2025/05/26 11:07:42 UTC
[I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
dxlance11 opened a new issue, #7371:
URL: https://github.com/apache/incubator-seata/issues/7371
容器环境到底应该用哪个镜像仓库呢,apache/seata-server还是seataio/seata-server, 好像并不是兼容的。使用apache/seata-server的2.4版本在k8s部署了raft集群模式,客户端连不上。
--
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: notifications-unsubscribe@seata.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
Posted by "dxlance11 (via GitHub)" <gi...@apache.org>.
dxlance11 commented on issue #7371:
URL: https://github.com/apache/incubator-seata/issues/7371#issuecomment-2911994118
> > 当然是把有问题的发出来呀,没问题的发出来干啥
>
> 我发的就是有问题的,我的意思是部署这个环节只有用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(AbstractAutowireCapableBeanFactory.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.springframework.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
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
Posted by "dxlance11 (via GitHub)" <gi...@apache.org>.
dxlance11 commented on issue #7371:
URL: https://github.com/apache/incubator-seata/issues/7371#issuecomment-2911976259
> 当然是把有问题的发出来呀,没问题的发出来干啥
我发的就是有问题的,我的意思是部署这个环节只有用2.4.0的镜像可以成功,低版本部署都无法成功。
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
Posted by "dxlance11 (via GitHub)" <gi...@apache.org>.
dxlance11 commented on issue #7371:
URL: https://github.com/apache/incubator-seata/issues/7371#issuecomment-2911980120
> 当然是把有问题的发出来呀,没问题的发出来干啥
我发的就是有问题的,我的意思是部署这个环节只有用2.4.0的镜像可以成功,低版本部署都无法成功。2.4.0部署成功后客户端连接报错如上。
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
Posted by "dxlance11 (via GitHub)" <gi...@apache.org>.
dxlance11 closed issue #7371: 容器环境到底应该用哪个镜像仓库,
URL: https://github.com/apache/incubator-seata/issues/7371
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
Posted by "dxlance11 (via GitHub)" <gi...@apache.org>.
dxlance11 commented on issue #7371:
URL: https://github.com/apache/incubator-seata/issues/7371#issuecomment-2911113356
> 用apache/seata-server 还有你什么配置信息都不提供,如何判断问题所在?
---
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-server-config
namespace: seata
data:
application.yml: |
server:
port: 7091
console:
user:
username: seata
password: DJmB9b4M6Z
spring:
application:
name: seata-server
logging:
config: classpath:logback-spring.xml
file:
path: ${log.home:${user.home}/logs/seata}
seata:
server:
raft:
group: default
server-addr: seata-server-0.seata-server.seata.svc.cluster.local:9091,seata-server-1.seata-server.seata.svc.cluster.local:9091,seata-server-2.seata-server.seata.svc.cluster.local:9091
snapshot-interval: 600
apply-batch: 32
max-append-bufferSize: 262144
max-replicator-inflight-msgs: 256
disruptor-buffer-size: 16384
election-timeout-ms: 1000
reporter-enabled: false
reporter-initial-delay: 60
serialization: jackson
compressor: none
sync: true
config:
type: file
registry:
type: file
store:
mode: raft
file:
dir: /seata/sessionStore
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
ignore:
urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login,/version.json,/metadata/v1/**
---
apiVersion: v1
kind: Service
metadata:
name: seata-server
namespace: seata
labels:
app.kubernetes.io/name: seata-server
spec:
type: ClusterIP
clusterIP: None # 设置为Headless Service
ports:
- port: 8091
protocol: TCP
targetPort: 8091
name: http
- port: 7091
protocol: TCP
targetPort: 7091
name: web
- port: 9091
protocol: TCP
targetPort: 9091
name: raft
selector:
app.kubernetes.io/name: seata-server
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: seata-server
namespace: seata
labels:
app.kubernetes.io/name: seata-server
spec:
serviceName: seata-server
replicas: 3
selector:
matchLabels:
app.kubernetes.io/name: seata-server
template:
metadata:
labels:
app.kubernetes.io/name: seata-server
spec:
containers:
- name: seata-server
image: docker.io/apache/seata-server:2.4.0.jdk21
imagePullPolicy: IfNotPresent
env:
- name: TZ
value: Asia/Shanghai
- name: SEATA_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- name: http
containerPort: 8091
protocol: TCP
- name: console
containerPort: 7091
protocol: TCP
- name: raft
containerPort: 9091
protocol: TCP
volumeMounts:
- mountPath: /seata-server/resources/application.yml
name: seata-config
subPath: application.yml
- name: seata-data
mountPath: /seata/sessionStore
volumes:
- name: seata-config
configMap:
name: seata-server-config
volumeClaimTemplates:
- metadata:
name: seata-data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi
storageClassName: local-hostpath
参照https://seata.apache.org/zh-cn/docs/ops/deploy-server-raft这个文档部署的,只有2.4的镜像可以部署成功。
客户端配置:
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.seata.svc.cluster.local:7091,seata-server-1.seata-server.seata.svc.cluster.local:7091,seata-server-2.seata-server.seata.svc.cluster.local:7091
metadata-max-age-ms: 30000
username: seata
password: seata
tokenValidityInMilliseconds: 1740000
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #7371:
URL: https://github.com/apache/incubator-seata/issues/7371#issuecomment-2911815491
当然是把有问题的发出来呀,没问题的发出来干啥
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
Posted by "dxlance11 (via GitHub)" <gi...@apache.org>.
dxlance11 commented on issue #7371:
URL: https://github.com/apache/incubator-seata/issues/7371#issuecomment-2914770467
> > > > 当然是把有问题的发出来呀,没问题的发出来干啥
> > >
> > >
> > > 我发的就是有问题的,我的意思是部署这个环节只有用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(NettyClientChannelManage
r.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(AbstractAutowireC
apableBeanFactory.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.springfra
mework.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版本发布。
2.2.0 版本的
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
Posted by "dxlance11 (via GitHub)" <gi...@apache.org>.
dxlance11 commented on issue #7371:
URL: https://github.com/apache/incubator-seata/issues/7371#issuecomment-2909344962
> 容器环境到底应该用哪个镜像仓库呢,apache/seata-server还是seataio/seata-server, 好像并不是兼容的。使用apache/seata-server的2.4版本在k8s部署了raft集群模式,客户端连不上。
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-05-26T16:42:44.953+08:00 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'globalTransactionScanner' defined in class path resource [org/apache/seata/spring/boot/autoconfigure/SeataAutoConfiguration.class]: Failed to instantiate [org.apache.seata.spring.annotation.GlobalTransactionScanner]: Factory method 'globalTransactionScanner' threw exception with message: Cannot invoke "org.apache.seata.config.Configuration.addConfigListener(String, org.apache.seata.config.ConfigurationChangeListener)" because "originalConfiguration" is null
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:654)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:642)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1330)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558)
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.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.seata.spring.annotation.GlobalTransactionScanner]: Factory method 'globalTransactionScanner' threw exception with message: Cannot invoke "org.apache.seata.config.Configuration.addConfigListener(String, org.apache.seata.config.ConfigurationChangeListener)" because "originalConfiguration" is null
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:171)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650)
... 25 common frames omitted
Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.seata.config.Configuration.addConfigListener(String, org.apache.seata.config.ConfigurationChangeListener)" because "originalConfiguration" is null
at org.apache.seata.config.ConfigurationCache.lambda$proxy$0(ConfigurationCache.java:88)
at jdk.proxy2/jdk.proxy2.$Proxy100.getBoolean(Unknown Source)
at org.apache.seata.spring.annotation.GlobalTransactionScanner.(GlobalTransactionScanner.java:115)
at org.apache.seata.spring.annotation.GlobalTransactionScanner.(GlobalTransactionScanner.java:187)
at org.apache.seata.spring.boot.autoconfigure.SeataAutoConfiguration.globalTransactionScanner(SeataAutoConfiguration.java:84)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:139)
... 26 common frames omitted
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 容器环境到底应该用哪个镜像仓库, [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #7371:
URL: https://github.com/apache/incubator-seata/issues/7371#issuecomment-2910957245
用apache/seata-server
还有你什么配置信息都不提供,如何判断问题所在?
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org