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

Springboot application restarting after getting warning -Error querying consul Key/Values for context #822

Open
atithikumari opened this issue Jun 21, 2023 · 1 comment

Comments

@atithikumari
Copy link

Springboot app in production restarts after below warning occurs. This happens after the application has been running for sometime due to which all the nodes restarts.

WARN o.s.c.c.c.ConfigWatch [ConfigWatch.java:206] Error querying consul Key/Values for context .Message: Error creating bean with name 'getDataSource': Could not bind properties to 'DataSource' : prefix=spring.datasource, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.datasource' to javax.sql.DataSource

This is happening continuously. Tried to stop restart by setting fail-fast as false but didn't work. Now i have disabled the watch to not keep looking for updates in consul. But that doesn't solve the problem.

I have been using springboot 2.2.0 and dependency spring-cloud-starter-consul-al

@atithikumari
Copy link
Author

@spencergibb please help here

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

2 participants