spring-cloud / spring-cloud-consul

Spring Cloud Consul
http://cloud.spring.io/spring-cloud-consul/
Apache License 2.0
805 stars 543 forks source link

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

Open atithikumari opened 1 year ago

atithikumari commented 1 year ago

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 commented 1 year ago

@spencergibb please help here