SpringCloud报错:com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

启动SpringCloudEureka 报错:
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

解决方法:

先仔细检查,指定的注册中心 eureka.client.serviceUrl.defaultZone的地址是否正确,端口号有没有写错。
然后,在application.yml 添加以下配置:

#Eureka服务注册中心也会将自己作为客户端来尝试注册它自己,所以我们需要禁用它的客户端注册行为。
eureka:
  client:
    registerWithEureka: false
    fetchRegistry: false

另外,如果是properties文件配置,则如下所示:

eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false

原文地址:https://www.cnblogs.com/expiator/p/9696887.html

时间: 2024-07-29 23:22:32

SpringCloud报错:com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server的相关文章

eureka server 集成security,eureka client报错com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

当前Spring Coud 版本(Greenwich.SR2)  Spring Boot版本 (2.1.6.RELEASE) 在eureka server 中集成security后,发现eureka client 去注册的时候报以下错误: ----------------------------------------------------------------------------------------------------------------------------------

携程apollo源码在idea中启动报错TransportException: Cannot execute request on any known server

com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187) at com.sun.jersey.api.client.filter.GZIPConte

运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory

运行编译后的程序报错  error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory -------------------------------------------------------------------------------------------------------------------------------------

SpringCloud报错:Caused by: org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

今天启动用eureka的服务消费者时,一直出现问题. SpringCloud报错: Caused by: org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean. 解决方案: 网上的解决方案大多如下: 1.在main()方法的启动类的上方添加注解

springcloud报错Cannot execute request on any known server

启动springcloud服务中心,提示这个错误:Cannot execute request on any known server 网上一般说是修改application.properties配置文件,添加如下内容: eureka.client.registerWithEureka:false eureka.client.fetchRegistry:false 看了一下,我是有这些内容的.然后就各种折腾,后来把端口号从8080改成8088就可以了,昨天用8080还是好的,端口被占用了?好像也

关于Eureka客户端连接服务端报错问题Cannot execute request on any known server

对于Eureka包这个错误问题:Cannot execute request on any known server,总的原因就是连接Eureka连接服务端的Url地址不对,Url地址不对很很多情况. 一.比如服务端自己连接自己报错,也就是说你可能忘记在eureka服务中配置如下代码. 默认都是开启的. eureka.client.registerWithEureka=false eureka.client.fetchRegistry=false 二.可能是你的配置的去服务注册中心的地址写错了.

解决MySql报错:1130 - Host 'xxx' is not allowed to connect to this MySQL server的方法

发现问题 使用Navicat连接MySql数据库时,未能成功,提示信息如下图: 这个错误提示已经很明确了,"不允许主机'desktop-teat9ob'连接到此mysql服务器",知道问题所在就好解决了. 解决办法 我们远程联接到MySql服务器,打开服务器本地Navicat软件,在查询编辑器中执行下面的SQL语句 #查询允许连接的主机及用户信息 select Host,User,Password from mysql.user; 结果如下图: 从结果中可以看到,MySql只允许使用r

【elaseticsearch】elaseticsearch启动报错Caused by: org.elasticsearch.transport.BindTransportException: Failed to bind to [9300-9400]

elaseticsearch启动报错 [es1] uncaught exception in thread [main] org.elasticsearch.bootstrap.StartupException: BindTransportException[Failed to bind to [9300-9400]]; nested: BindException[Cannot assign requested address]; at org.elasticsearch.bootstrap.E

【MySQL案例】tpcc--执行tpcc_load报错error while loading shared libraries: libperconaserverclient.s

[报错信息] 针对mysql官方社区版进行测试的时候,执行tpcc_load脚本提示缺少libperconaserverclient.so.18库文件: time ./tpcc_load 127.0.0.1 tpcc1000 root"" 500 ./tpcc_load: error while loading sharedlibraries: libperconaserverclient.so.18: cannot open shared object file: Nosuch fi