LoginSignup
0
0

More than 1 year has passed since last update.

Docker opensearchコンテナのNo alive nodes found in your clusterエラー解決

Posted at

半日くらい引っかかっていたので、自分用のメモに。

原因は、ブリッジネットワークが異なっていた。でした。

背景

開発中のウェブサービスで新規にレコード検索を強化したいということで、elasticsearchを導入。
既存のwebサーバから、プライベートIPでesへリクエストを送るように設計。
しかし、webサーバdockerコンテナから、es用のdockerコンテナへのアクセスが

No alive nodes found in your cluster

エラーに、、、
ホストからのcurlは反応しているので、次はwebコンテナからcurlすると全部レスポンスなし。

結局、原因は既存のwebサービスをdocker-composeで管理していたのに、新しく追加したesはdocker runで起動したため別のサブネットだったことということぽい。

ちゃんとesもdocker-composeに追記すれば動きました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0