These are chat archives for spring-cloud/spring-cloud

7th
Sep 2017
Oleg Sukhov
@oleg-sukhov
Sep 07 2017 14:23
Hi all. I have an issue with my config server - eureka client on config server can't reach the eureka server - the following exception occurs
2017-09-07T14:21:56.120016+00:00 app[web.1]: 2017-09-07 14:21:56.119 ERROR 4 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CONFIG-SERVICE/5c4f6894-bcb2-4a17-8f9c-cf24c824f7b5.prvt.dyno.rt.heroku.com:config-service:30022 - was unable to refresh its cache! status = Cannot execute request on any known server
2017-09-07T14:21:56.120018+00:00 app[web.1]: 
2017-09-07T14:21:56.120019+00:00 app[web.1]: com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
2017-09-07T14:21:56.120020+00:00 app[web.1]:     at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:111) ~[eureka-client-1.6.2.jar!/:1.6.2]
2017-09-07T14:21:56.120021+00:00 app[web.1]:     at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) ~[eureka-client-1.6.2.jar!/:1.6.2]
2017-09-07T14:21:56.120022+00:00 app[web.1]:     at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) ~[eureka-client-1.6.2.jar!/:1.6.2]
2017-09-07T14:21:56.120023+00:00 app[web.1]:     at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77) ~[eureka-client-1.6.2.jar!/:1.6.2]
2017-09-07T14:21:56.120023+00:00 app[web.1]:     at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) ~[eureka-client-1.6.2.jar!/:1.6.2]
2017-09-07T14:21:56.120024+00:00 app[web.1]:     at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1013) [eureka-client-1.6.2.jar!/:1.6.2]
2017-09-07T14:21:56.120025+00:00 app[web.1]:     at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:927) [eureka-client-1.6.2.jar!/:1.6.2]
2017-09-07T14:21:56.120026+00:00 app[web.1]:     at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1451) [eureka-client-1.6.2.jar!/:1.6.2]
2017-09-07T14:21:56.120027+00:00 app[web.1]:     at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1418) [eureka-client-1.6.2.jar!/:1.6.2]
2017-09-07T14:21:56.120028+00:00 app[web.1]:     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_121-heroku16]
2017-09-07T14:21:56.120029+00:00 app[web.1]:     at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_121-heroku16]
2017-09-07T14:21:56.120029+00:00 app[web.1]:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121-heroku16]
2017-09-07T14:21:56.120030+00:00 app[web.1]:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121-heroku16]
2017-09-07T14:21:56.120031+00:00 app[web.1]:     at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121-heroku16]
2017-09-07T14:21:56.120032+00:00 app[web.1]: 
2017-09-07T14:21:56.125551+00:00 app[web.1]: 2017-09-07 14:21:56.125 ERROR 4 --- [tbeatExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient  : Request execution error
2017-09-07T14:21:56.125553+00:00 app[web.1]: 
2017-09-07T14:21:56.125554+00:00 app[web.1]: com.sun.jersey.api.client.ClientHandlerException: java.lang.IllegalArgumentException: Host name may not be null
2017-09-07T14:21:56.125555+00:00 app[web.1]:     at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1]
2017-09-07T14:21:56.125555+00:00 app[web.1]:     at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123) ~[jersey-client-1.19.1.jar!/:1.19.1]
2017-09-07T14:21:56.125556+00:00 app[web.1]:     at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27) ~[eureka-client-1.6.2.jar!/:1.6.2]
2017-09-07T14:21:56.125557+00:00 app[web.1]:     at
There are a couple other service that have mostly the same config property for eureka client - and they work fine.
Oleg Sukhov
@oleg-sukhov
Sep 07 2017 14:33
There is similar stacktrace in this issue - Netflix/eureka#752, but I'm not sure that the problem that fixed in the pull request the same like I have.