Failing request on metrics redirect to login page
See original GitHub issueHi, first of all thanks for this software, it’s amanzing !
We’ve noticed something weird after upgrading our spring-boot-admin instance from 2.3.1 to 2.4.0: when browsing instance details, after a random delay ( 5 - 30s ) users are automatically redirected to the login page
console log:
The metrics causing the errors are not always the same:
- http://spring-boot-admin/instances/f4933231d1f3/actuator/metrics/jvm.memory.max?tag=area:heap
- http://spring-boot-admin/instances/f4933231d1f3/actuator/metrics/jvm.memory.used?tag=area:nonheap,id:Metaspace
- http://spring-boot-admin/instances/f4933231d1f3/actuator/metrics/jvm.threads.daemon
Instance details:
- spring-boot-admin-server 2.4.0
- spring-boot 2.4.3
- java 11
- auth mod: LDAP
Server configuration:
spring.boot.admin.monitor.status-interval = 30000
spring.boot.admin.monitor.status-lifetime = 30000
spring.boot.admin.monitor.default-timeout = 30000
spring.boot.admin.monitor.default-retries = 1
Client configuration:
spring.boot.admin.client.url = http://spring-boot-admin/
spring.boot.admin.client.enabled = true
spring.boot.admin.client.instance.metadata.tags.environment = production
management.info.git.mode = full
management.health.mail.enabled = false
management.health.ldap.enabled = false
management.endpoints.web.exposure.include = *
management.endpoint.health.show-details = always
management.endpoint.liquibase.enabled = false
management.endpoint.beans.enabled = false
management.endpoint.caches.enabled = false
management.endpoint.threaddump.enabled = false
management.endpoint.shutdown.enabled = false
management.endpoint.heapdump.enabled = false
management.endpoint.conditions.enabled = false
management.endpoint.jolokia.enabled = false
spring.security.user.name = springbootadmin-user
spring.security.user.password = xxxxxxx
spring.boot.admin.client.username = ${spring.security.user.name}
spring.boot.admin.client.password = ${spring.security.user.password}
spring.boot.admin.client.instance.metadata.user.name = ${spring.security.user.name}
spring.boot.admin.client.instance.metadata.user.password = ${spring.security.user.password}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:16 (2 by maintainers)
Top Results From Across the Web
PCF Metrics 1.6.4 is in a redirect loop when trying to log in
When user tries to log into the Metrics UI with valid login information, the user is redirected back to the login page.
Read more >Too many redirect on login page after move the site from http ...
I run gitlab-ce 8.16.3, installed as omnibus package on ubuntu server 14.04. The server run behind a firewall in our private network, ...
Read more >Authentication failure redirect with request params not working
On authentication failure I want to redirect back to my login page with a request parameter, the presence of this parameter will output...
Read more >Login redirect :: ForgeRock Java Policy Agents
When an unauthenticated user requests access to a protected resource, Java Agent redirects the user's browser to a login endpoint. The choice of...
Read more >Monitor Your HTTP Requests Are Redirected Into HTTPS
Monitoring your HTTP traffic is redirected into HTTPS is critical in ensuring your users' connections are encrypted with your API endpoints and your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Upgraded to 2.4.2, still getting a 401 on metrics calls…
Why is this issue closed? The 401 is still happening in version 2.4.1, the UI solution only prevents by getting redirected to the login page but the 401 errors are still happening.