Spring-boot-admin: Failed to register application as Application 401 null

Created on 29 Jun 2018  路  4Comments  路  Source: codecentric/spring-boot-admin

Question :

I have been trying to register my spring boot application (client) to the SBA server. When I start the client application, it gives error message as below:

[2018-06-29T13:26:30,069] WARN de.codecentric.boot.admin.client.registration.ApplicationRegistrator - Failed to register application as Application(name=spring-boot-application, managementUrl=http://hostmachine:9062/boot/actuator, healthUrl=http://hostmachine:9062/boot/actuator/health, serviceUrl=http://hostmachine:9062/boot) at spring-boot-admin ([http://host.com:6789/admin/instances]): 401 null. Further attempts are logged on DEBUG level

Following is my SBA server application properties:

spring.boot.admin.context-path=/admin
spring.boot.admin.ui.title=test admin
server.address=host.com
server.port=6789
spring.security.user.name=user
spring.security.user.password=password

and following is my client application properties

management.endpoint.metrics.enabled=true
management.endpoints.web.exposure.include=*
spring.boot.admin.client.url=http://host.com:6789/admin
spring.boot.admin.username=user
spring.boot.admin.password=password

What am I doing wrong here ?

Most helpful comment

it is spring.boot.admin.client.username and spring.boot.admin.client.password for the client

All 4 comments

it is spring.boot.admin.client.username and spring.boot.admin.client.password for the client

I'm getting same error. I checked my configurations many times but I didn't fix it.

@cemdrman did you check your CSRF config?

how to solve this questions?

Was this page helpful?
0 / 5 - 0 ratings