spring-cloud / spring-cloud-netflix

Integration with Netflix OSS components
http://cloud.spring.io/spring-cloud-netflix/
Apache License 2.0
4.87k stars 2.44k forks source link

Registe with security error #3197

Closed zhaijp closed 5 years ago

zhaijp commented 6 years ago

My Environment is:

springboot : 2.0.1.RELEASE springcloud:Finchley.RELEASE

Eureka Server config: logging.level.org.springframework.web=DEBUG eureka.server.renewal-percent-threshold=0.85 eureka.client.fetchRegistry=true spring.security.user.name=admin eureka.server.enable-self-preservation=false spring.security.user.password=123456 server.port=7890 test.value=test eureka.client.registerWithEureka=true spring.application.name=eureka-server eureka.instance.prefer-ip-address=true

Eureka Client config: ..... eureka.client.serviceUrl.defaultZone=http://admin:123456@192.168.80.71:${server.port}/eureka/

My Question: when the client startup it registe failed and throw Exception next:

2018-09-19 13:20:18.804 WARN [-,,,] 100652 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_EUREKA-SERVER/DEMO1:eureka-server:7890 - registration failed Cannot execute request on any known server

com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112) ~[eureka-client-1.9.2.jar!/:1.9.2] at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.register(EurekaHttpClientDecorator.java:56) ~[eureka-client-1.9.2.jar!/:1.9.2] at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$1.execute(EurekaHttpClientDecorator.java:59) ~[eureka-client-1.9.2.jar!/:1.9.2] at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77) ~[eureka-client-1.9.2.jar!/:1.9.2] at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.register(EurekaHttpClientDecorator.java:56) ~[eureka-client-1.9.2.jar!/:1.9.2] at com.netflix.discovery.DiscoveryClient.register(DiscoveryClient.java:829) ~[eureka-client-1.9.2.jar!/:1.9.2] at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:121) [eureka-client-1.9.2.jar!/:1.9.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_131] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_131] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_131] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_131] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_131] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_131] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]

zhaijp commented 6 years ago

@royclarkson can you help me

zhaijp commented 6 years ago

@yuanych 我看你之前也遇到了这个问题,你解决了吗?

ryanjbaxter commented 6 years ago

Please learn how to format code on GitHub.

Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

royclarkson commented 6 years ago

@zhaijp is this using Spring Cloud Services?

zhaijp commented 6 years ago

yes is springcloud @royclarkson

ryanjbaxter commented 6 years ago

Spring Cloud Services is different than Spring Cloud

spencergibb commented 5 years ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.