You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
报错日志: java.lang.RuntimeException: Server start failed at io.seata.core.rpc.netty.NettyServerBootstrap.start(NettyServerBootstrap.java:180) ~[seata-core-2.0.0.jar:2.0.0] at io.seata.core.rpc.netty.AbstractNettyRemotingServer.init(AbstractNettyRemotingServer.java:56) ~[seata-core-2.0.0.jar:2.0.0] at io.seata.core.rpc.netty.NettyRemotingServer.init(NettyRemotingServer.java:60) ~[seata-core-2.0.0.jar:2.0.0] at io.seata.server.Server.start(Server.java:100) ~[classes!/:2.0.0] at io.seata.server.ServerRunner.run(ServerRunner.java:60) ~[classes!/:2.0.0] at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:765) ~[spring-boot-2.7.17.jar:2.7.17] at org.springframework.boot.SpringApplication.lambda$callRunners$2(SpringApplication.java:749) ~[spring-boot-2.7.17.jar:2.7.17] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[na:na] at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357) ~[na:na] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) ~[na:na] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[na:na] at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[na:na] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[na:na] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:na] at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[na:na] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:744) ~[spring-boot-2.7.17.jar:2.7.17] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.7.17.jar:2.7.17] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300) ~[spring-boot-2.7.17.jar:2.7.17] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1289) ~[spring-boot-2.7.17.jar:2.7.17] at io.seata.server.ServerApplication.main(ServerApplication.java:30) ~[classes!/:2.0.0] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[na:na] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[seata-server.jar:2.0.0] at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[seata-server.jar:2.0.0] at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[seata-server.jar:2.0.0] at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467) ~[seata-server.jar:2.0.0] Caused by: com.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance after all servers([tlmall-nacos-server:8848]) tried: java.net.SocketException: Unexpected end of file from server at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:556) ~[nacos-client-1.4.2.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:498) ~[nacos-client-1.4.2.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:493) ~[nacos-client-1.4.2.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.registerService(NamingProxy.java:246) ~[nacos-client-1.4.2.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:212) ~[nacos-client-1.4.2.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:196) ~[nacos-client-1.4.2.jar:na] at io.seata.discovery.registry.nacos.NacosRegistryServiceImpl.register(NacosRegistryServiceImpl.java:114) ~[seata-discovery-nacos-2.0.0.jar:2.0.0] at io.seata.core.rpc.netty.NettyServerBootstrap.start(NettyServerBootstrap.java:174) ~[seata-core-2.0.0.jar:2.0.0] ... 25 common frames omitted
The text was updated successfully, but these errors were encountered:
nacos为默认配置,微服务可以正常注册。
seata修改配置文件后,注册失败,报错信息如下 :
我看到nacos-client为1.4不知道有没有关系
配置文件如下 :
`
server:
port: 7091
spring:
application:
name: seata-server
logging:
config: classpath:logback-spring.xml
file:
path: ${log.home:${user.home}/logs/seata}
extend:
logstash-appender:
destination: 127.0.0.1:4560
kafka-appender:
bootstrap-servers: 127.0.0.1:9092
topic: logback_to_logstash
console:
user:
username: seata
password: seata
seata:
配置中心
config:
# 类型: nacos 、 consul 、 apollo 、 zk 、 etcd3
type: file
nacos:
# nacos 服务端地址
server-addr: 127.0.0.1:8848
# 命名空间
namespace: 3bb12203-bc5e-4b19-886a-d448065f783a
# 分组
group: SEATA_GROUP
# 配置ID
data-id: seataServer.properties
注册中心
registry:
# 类型: nacos 、 eureka 、 redis 、 zk 、 consul 、 etcd3 、 sofa
type: file
nacos:
# 指定注册至nacos注册中心的服务名
application: seata-server
server-addr: 127.0.0.1:8848
group: DEFAULT_GROUP
namespace: 3bb12203-bc5e-4b19-886a-d448065f783a
# 指定注册至nacos注册中心的集群名
cluster: default
store:
# support: file 、 db 、 redis 、 raft
mode: file
server:
service-port: 8091 #If not configured, the default is '${server.port} + 1000'
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
ignore:
urls: /,//*.css,//.js,/**/.html,//*.map,//.svg,/**/.png,//*.jpeg,//*.ico,/api/v1/auth/login,/metadata/v1/**
`
报错日志:
java.lang.RuntimeException: Server start failed at io.seata.core.rpc.netty.NettyServerBootstrap.start(NettyServerBootstrap.java:180) ~[seata-core-2.0.0.jar:2.0.0] at io.seata.core.rpc.netty.AbstractNettyRemotingServer.init(AbstractNettyRemotingServer.java:56) ~[seata-core-2.0.0.jar:2.0.0] at io.seata.core.rpc.netty.NettyRemotingServer.init(NettyRemotingServer.java:60) ~[seata-core-2.0.0.jar:2.0.0] at io.seata.server.Server.start(Server.java:100) ~[classes!/:2.0.0] at io.seata.server.ServerRunner.run(ServerRunner.java:60) ~[classes!/:2.0.0] at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:765) ~[spring-boot-2.7.17.jar:2.7.17] at org.springframework.boot.SpringApplication.lambda$callRunners$2(SpringApplication.java:749) ~[spring-boot-2.7.17.jar:2.7.17] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[na:na] at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357) ~[na:na] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) ~[na:na] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[na:na] at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[na:na] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[na:na] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:na] at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[na:na] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:744) ~[spring-boot-2.7.17.jar:2.7.17] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.7.17.jar:2.7.17] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300) ~[spring-boot-2.7.17.jar:2.7.17] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1289) ~[spring-boot-2.7.17.jar:2.7.17] at io.seata.server.ServerApplication.main(ServerApplication.java:30) ~[classes!/:2.0.0] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[na:na] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[seata-server.jar:2.0.0] at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[seata-server.jar:2.0.0] at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[seata-server.jar:2.0.0] at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467) ~[seata-server.jar:2.0.0] Caused by: com.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance after all servers([tlmall-nacos-server:8848]) tried: java.net.SocketException: Unexpected end of file from server at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:556) ~[nacos-client-1.4.2.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:498) ~[nacos-client-1.4.2.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:493) ~[nacos-client-1.4.2.jar:na] at com.alibaba.nacos.client.naming.net.NamingProxy.registerService(NamingProxy.java:246) ~[nacos-client-1.4.2.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:212) ~[nacos-client-1.4.2.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:196) ~[nacos-client-1.4.2.jar:na] at io.seata.discovery.registry.nacos.NacosRegistryServiceImpl.register(NacosRegistryServiceImpl.java:114) ~[seata-discovery-nacos-2.0.0.jar:2.0.0] at io.seata.core.rpc.netty.NettyServerBootstrap.start(NettyServerBootstrap.java:174) ~[seata-core-2.0.0.jar:2.0.0] ... 25 common frames omitted
The text was updated successfully, but these errors were encountered: