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

Wrong status and health check urls if random management port #4130

Open
gigermocas opened this issue Oct 27, 2022 · 3 comments
Open

Wrong status and health check urls if random management port #4130

gigermocas opened this issue Oct 27, 2022 · 3 comments

Comments

@gigermocas
Copy link

If I configure a random management port (management.server.port=0) in the eureka client's spring boot application properties, eureka calculates the statusPageUrl and healthCheckUrl with the incorrect port, i.e. not the actual management port, but the one for the default server.

I think that this is an unintended consequence of the fix for #2732, as the management web server initialization event is being disregarded, which it shouldn't for determining these specific urls.

I'm using the latest spring boot (2.7.5) and spring cloud (2021.0.4)

@spencergibb
Copy link
Member

To be honest, trying to support random ports at all is like a house of cards. Marking for votes.

@eroaespinosa
Copy link

eroaespinosa commented May 21, 2023

Same bug, bug spreads to prometheus when configured with eureka

@stefan-g
Copy link

stefan-g commented Feb 29, 2024

Facing the same issue. For local testing the setup i'm using is managment.server.port=0 and server.port=0. Spring boot admin can not access actuator/** resources because eureka uses wrong port (and with the wrong port a 404 "no static resource" is returned). Would be nice to have a solution for this

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

No branches or pull requests

4 participants