请求报错No route to host (Host unreachable)
Posted Alan_刘志强
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了请求报错No route to host (Host unreachable)相关的知识,希望对你有一定的参考价值。
请求报错No route to host (Host unreachable); nested exception is java.net.NoRouteToHostException: No route to host (Host unreachable)
报错原因
请求对方机器的端口没有打开,访问的目标地址路由不可达,这个no route to host的报错是由于收到icmp路由不可达报文而导致的。
如果是linux,是iptables阻挡造成的,可以用service iptables stop关闭iptables试试
或者开通防火墙对应的端口
查询防火墙 是否开启28083端口
sudo firewall-cmd --zone=public --query-port=28083/tcp
防火墙 开启28083端口
sudo firewall-cmd --zone=public --add-port=28083/tcp --permanent
防火墙重新加载才能生效
sudo systemctl restart firewalld
或者命令
firewall-cmd --reload
查看防火墙已经开放的端口
sudo firewall-cmd --list-ports
报错信息
2022-12-23 12:57:06.147 ERROR [DZ_SYS,LOW-CODE-DEMO,default,dzsditest:LOW-CODE-DEMO:28085,87866156e76587e4,053a43d0ac923f19,87866156e76587e4,] 18416 --- [http-nio-28085-exec-7] c.p.e.s.e.ControllerExceptionHandler : Request: POST /api/lowcode/contributions, UserInfo: 1:admin, DataSourceInfo: [init=10, min=10, max=50, idle=10, busy=0, unclosedOrphaned=0], Thread: Thread[http-nio-28085-exec-7,5,main], CPU: 50%, SystemMemory: 91% [total:15884MB, free:1425MB, used:14459MB], JvmMemory: 16% [max:3531MB, total:1515MB, free:1261MB, used:254MB]
Request Headers:
"content-length": "92",
"accept-encoding": "gzip, deflate",
"accept-language": "zh-CN,zh;q=0.9",
"x-eos-gatewaycode": "GATEWAY-DEMO",
"referer": "http://172.16.4.76/ide/index.html?appName=LOW-CODE-DEMO",
"accept": "application/json, text/plain, */*",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
"cookie": "theme=blue; SESSION=MDYzOGU4ZTgtOTRlOC00MTkyLWFkMmYtOGVmMDZiYThmN2Rm; Admin-Token-coframe=0638e8e8-94e8-4192-ad2f-8ef06ba8f7df; JSESSIONID=01207D243028CFDCB0796E381DDABBC2",
"origin": "http://172.16.4.76",
"content-type": "application/json;charset=UTF-8",
"forwarded": "proto=http;host=eosgateway;for=\\"172.16.4.76:50598\\"",
"x-forwarded-for": "172.16.4.76",
"x-forwarded-proto": "http",
"x-forwarded-prefix": "/LOW-CODE-DEMO",
"x-forwarded-port": "80",
"x-forwarded-host": "eosgateway",
"x-b3-sampled": "0",
"host": "172.16.4.75:28085"
Request Parameters:
Request Body:
"lowcodeContribution":
"code": "ddfs",
"name": "sfd",
"lowcodeProject":
"id": "LOW-CODE-DEMO"
org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://172.16.4.75:28083/api/eos/tools/actions/call-method": No route to host (Host unreachable); nested exception is java.net.NoRouteToHostException: No route to host (Host unreachable)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:744)
at com.primeton.eos.dap.sdk.webclient.resttemplate.SDKHystrixRestTemplate.doExecute(SDKHystrixRestTemplate.java:62)
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:637)
at com.primeton.eos.rest.client.RestClientFactory$4.invoke(RestClientFactory.java:238)
at com.primeton.system.aop.impl.HandlerInvoker.invoke(HandlerInvoker.java:60)
at com.primeton.system.aop.impl.JdkProxyUtil$JdkInvocationHandlerWrapper.invoke(JdkProxyUtil.java:53)
at com.sun.proxy.$Proxy202.logOperation(Unknown Source)
at com.primeton.gocom.lowcode.service.LowcodeContributionServiceImpl.create(LowcodeContributionServiceImpl.java:117)
at com.primeton.gocom.lowcode.service.LowcodeContributionServiceImpl$$FastClassBySpringCGLIB$$5d08680c.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:100)
at com.primeton.eos.springboot.interceptor.MethodInterceptor.around(MethodInterceptor.java:47)
at sun.reflect.GeneratedMethodAccessor391.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at com.primeton.gocom.lowcode.service.LowcodeContributionServiceImpl$$EnhancerBySpringCGLIB$$22cec309.create(<generated>)
at com.primeton.gocom.lowcode.controller.LowcodeContributionController.create(LowcodeContributionController.java:57)
at com.primeton.gocom.lowcode.controller.LowcodeContributionController$$FastClassBySpringCGLIB$$db61978a.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:56)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at com.primeton.gocom.lowcode.controller.LowcodeContributionController$$EnhancerBySpringCGLIB$$3965ce55.create(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:645)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:726)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at com.primeton.appserver.websocket.server.WsFilter.doFilter(WsFilter.java:38)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at brave.servlet.TracingFilter.doFilter(TracingFilter.java:65)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at com.primeton.access.http.impl.WebInterceptorChainImpl.doIntercept(WebInterceptorChainImpl.java:51)
at com.primeton.access.http.impl.DispatchWebInterceptor.doIntercept(DispatchWebInterceptor.java:90)
at com.primeton.access.http.impl.WebInterceptorChainImpl.doIntercept(WebInterceptorChainImpl.java:56)
at com.primeton.access.authorization.impl.AccessedHttpResourceFilter.doIntercept(AccessedHttpResourceFilter.java:131)
at com.primeton.access.http.impl.WebInterceptorChainImpl.doIntercept(WebInterceptorChainImpl.java:56)
at com.eos.access.http.UserLoginCheckedFilter.doIntercept(UserLoginCheckedFilter.java:126)
at com.primeton.access.http.impl.WebInterceptorChainImpl.doIntercept(WebInterceptorChainImpl.java:56)
at com.eos.access.http.security.HttpRefererWebInterceptor.doIntercept(HttpRefererWebInterceptor.java:44)
at com.primeton.access.http.impl.WebInterceptorChainImpl.doIntercept(WebInterceptorChainImpl.java:56)
at com.primeton.access.http.impl.WebI18NInterceptor.doIntercept(WebI18NInterceptor.java:64)
at com.primeton.access.http.impl.WebInterceptorChainImpl.doIntercept(WebInterceptorChainImpl.java:56)
at com.primeton.gocom.afcenter.common.intercepter.UserLoginInterceptor.doIntercept(UserLoginInterceptor.java:139)
at com.primeton.access.http.impl.WebInterceptorChainImpl.doIntercept(WebInterceptorChainImpl.java:56)
at com.eos.access.http.InterceptorFilter.doFilter(InterceptorFilter.java:129)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at com.primeton.eos.springboot.autoconfig.EOS8SpringBootConfiguration$2.doFilter(EOS8SpringBootConfiguration.java:230)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at com.primeton.eos.dap.sdk.accesscontrol.SDKAccessControlFilter.doFilterInternal(SDKAccessControlFilter.java:132)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at com.primeton.eos.dap.sdk.actuate.filter.SDKActuatorAuthFilter.doFilterInternal(SDKActuatorAuthFilter.java:39)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at com.primeton.eos.springboot.autoconfig.EOS8SpringBootManagementConfiguration$EOS8EndpointCrossOriginFilter.doFilterInternal(EOS8SpringBootManagementConfiguration.java:66)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at com.primeton.eos.dap.sdk.actuate.filter.SDKActuatorMaskFilter.doFilterInternal(SDKActuatorMaskFilter.java:42)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at com.primeton.eos.dap.sdk.logging.filter.SDKLoggingFilter.doFilterInternal(SDKLoggingFilter.java:108)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:151)
at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:86)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at brave.servlet.TracingFilter.doFilter(TracingFilter.java:82)
at org.springframework.cloud.sleuth.instrument.web.LazyTracingFilter.doFilter(TraceWebServletAutoConfiguration.java:145)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114)
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
at com.primeton.appserver.container.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:177)
at com.primeton.appserver.container.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:150)
at com.primeton.appserver.container.core.StandardWrapperValve.invoke(StandardWrapperValve.java:186)
at com.primeton.appserver.container.core.StandardContextValve.invoke(StandardContextValve.java:80)
at com.primeton.appserver.container.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
at com.primeton.appserver.container.core.StandardHostValve.invoke(StandardHostValve.java:122)
at com.primeton.appserver.container.valves.ErrorReportValve.invoke(ErrorReportValve.java:72)
at com.primeton.appserver.container.core.StandardEngineValve.invoke(StandardEngineValve.java:58)
at com.primeton.appserver.container.connector.CoyoteAdapter.service(CoyoteAdapter.java:326)
at com.primeton.appserver.coyote.http11.Http11Processor.service(Http11Processor.java:393)
at com.primeton.appserver.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:51)
at com.primeton.appserver.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:838)
at com.primeton.appserver.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1570)
at com.primeton.appserver.util.net.SocketProcessorBase.run(SocketProcessorBase.java:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.primeton.appserver.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:46)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.NoRouteToHostException: No route to host (Host unreachable)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at java.net.Socket.connect(Socket.java:556)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:357)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990)
at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:76)
at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:108)
at org.springframework.cloud.client.loadbalancer.LoadBalancerRequestFactory.lambda$createRequest$0(LoadBalancerRequestFactory.java:61)
at org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient.execute(RibbonLoadBalancerClient.java:144)
at com.primeton.eos.dap.sdk.webclient.autoconfig.SDKWebClientRibbonAutoConfiguration$SDKLoadBalancerClient.execute(SDKWebClientRibbonAutoConfiguration.java:105)
at org.springframework.cloud.client.loadbalancer.RetryLoadBalancerInterceptor.lambda$intercept$0(RetryLoadBalancerInterceptor.java:81)
at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287)
at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:180)
at org.springframework.cloud.client.loadbalancer.RetryLoadBalancerInterceptor.intercept(RetryLoadBalancerInterceptor.java:71)
at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:92)
at com.primeton.eos.dap.sdk.logging.resttemplate.SDKLoggingRestTemplateInterceptor.intercept(SDKLoggingRestTemplateInterceptor.java:63)
at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:92)
at brave.spring.web.TracingClientHttpRequestInterceptor.intercept(TracingClientHttpRequestInterceptor.java:52)
at org.springframework.cloud.sleuth.instrument.web.client.LazyTracingClientHttpRequestInterceptor.intercept(TraceWebClientAutoConfiguration.java:308)
at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:92)
at com.primeton.eos.dap.sdk.webclient.resttemplate.SDKInvocationRestTemplateInterceptor.intercept(SDKInvocationRestTemplateInterceptor.java:83)
at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:92)
at org.springframework.http.client.InterceptingClientHttpRequest.executeInternal(InterceptingClientHttpRequest.java:76)
at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:735)
... 151 common frames omitted
zabbix-server报错:No route to host
前戏:
我在VM虚拟机中创建了2个liunx系统(rhel7和cent7),一个用作zabbix服务端,另一个用作zabbix客户端。但是用服务端监控客户端时图标是红色的监控不了,报错信息为:Get value from agent failed: cannot connect to [[客户端的IP]:10050]: [113] No route to host
报警意思大致为主机无法被监听
linux版本:centos 7
zabbix版本:zabbix 3
解决方法:
(1)使用ping命令
服务端 ping 客户端地址
如果ping的通就说明网络没问题
(2)防火墙的原因
centos 7 有两种防火墙firewall和iptables,默认是用firewall作为防火墙
# service firewalld status //查看防火墙状态
#systemctl firewalld stop //关闭防火墙
#service firewall start //开启防火墙
#service firewall restart //重新开启防火墙
iptables防护墙的命令和firewall的命令差不多,把名字换一下就行
防火墙关闭之后,重启zabbix客户端
#systemctl restart zabbix-agent //重启zabbix客户端
原文可参考:https://blog.csdn.net/qq_37961660/article/details/79923963
以上是关于请求报错No route to host (Host unreachable)的主要内容,如果未能解决你的问题,请参考以下文章
使用winscp报错:no route to host,请问如何解决?
zabbix-server报错:No route to host
格式化namenode时 报错 No Route to Host from node1/192.168.1.111 to node3:8485 failed on socket timeout ex
#yyds干货盘点#ceph文件挂载失败Connect error: No route to host(errno:113)
'Linux下用iperf测试网络时出现unable to connect to server: No route to host'