Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#822 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java, spring-boot
領域
backend, cloud

調査の方向性

ConfigWatch.java:206 から開始し、Consul の設定更新が警告に示された DataSource のバインディング失敗をどのように処理するかを追跡してください。可能であれば本番環境での再起動を再現し、fail-fast=false でそれを防げない理由を特定してください。この警告が発生したときにアプリケーションが実行を継続し、関連する動作が適切なテストでカバーされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

waiting-for-triage

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

主要言語
Java
スター
821
フォーク
540
平均マージ
14時間 22分
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

spring-cloud/spring-cloud-consul のほかの issue

spring-cloud/spring-cloud-consul の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。