Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apps do not re-register with Eureka after the server restarts #26

Closed
dsyer opened this issue Oct 14, 2014 · 6 comments
Closed

Apps do not re-register with Eureka after the server restarts #26

dsyer opened this issue Oct 14, 2014 · 6 comments
Labels
Milestone

Comments

@dsyer
Copy link
Contributor

dsyer commented Oct 14, 2014

The Eureka client-server interactions are reasonably robust when you first start everything up (it doesn't matter what order the processes start), but once everything is running, if you kill Eureka and restart it then the apps do not re-register.

@dsyer dsyer added the bug label Oct 14, 2014
@dsyer dsyer modified the milestones: 1.0.0.M2, 1.0.0.M3 Oct 14, 2014
@spencergibb
Copy link
Member

It seems like I've seen this work :-(

@dsyer
Copy link
Contributor Author

dsyer commented Oct 16, 2014

Yeah me too, but not this week. Something changed.

@spencergibb
Copy link
Member

Basic authentication was added to samples eureka server, but I don't see where the username and password was added to client configuration except for the samples config server. I can't get the config server to decrypt it's password either btw.

@spencergibb
Copy link
Member

I added the authentication but I still get these errors even though the service registers with eureka:

java.lang.RuntimeException: Bad status: 405
    at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1001)
    at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:909)
    at com.netflix.discovery.DiscoveryClient.access$300(DiscoveryClient.java:99)
    at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1405)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

2014-10-16 16:44:14.599 ERROR 90097 --- [scoveryClient-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_SAMPLEFRONTENDSERVICE/sgibb-mbp.local - was unable to send heartbeat!

java.lang.RuntimeException: Bad status: 405
    at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1001)
    at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:909)
    at com.netflix.discovery.DiscoveryClient.access$300(DiscoveryClient.java:99)
    at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1405)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

@dsyer
Copy link
Contributor Author

dsyer commented Oct 17, 2014

That 405 looks like a duplicate of #27.

The config server password needs a key store password. Running in Cloud Foundry it should be set by the scripts. Locally you need to set the same environment variable or system property. I wanted to show as much best practice as possible and not put plaintext passwords in config files.

Given that we don't want the password in source code, I guess we can remove the security from the eureka server sample as a temporary workaround, and see if that fixes this issue at least.

@eroaespinosa
Copy link

Same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants