question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing request on metrics redirect to login page

See original GitHub issue

Hi, 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:

console

The metrics causing the errors are not always the same:

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:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
albrechtm85commented, Jul 5, 2021

Upgraded to 2.4.2, still getting a 401 on metrics calls…

1reaction
gbtec-ext-fernandoquirogacommented, May 4, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found