opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.65k stars 855 forks source link

[BUG] Cannot run against OpenSearch Serverless #5004

Open chadmyers opened 12 months ago

chadmyers commented 12 months ago

Describe the bug

When trying to host my own OpenSearch Dashboards instance in AWS pointed at an OpenSearch Serverless collection, I get errors in the opensearch dashboards logs as well as 503 "OpenSearch Dashboards server is not ready yet" when trying to hit http://127.0.0.1:5601

To Reproduce Steps to reproduce the behavior:

  1. Create and configure an OpenSearch Serverless Collection in AWS
  2. Launch an AL2023 EC2 instance and install OpenSearch Dashboards on it
  3. Start OpenSearch Dashboards
  4. See this repeated error in the log output:
log   [22:36:20.944] [error][data][opensearch] [index_not_found_exception]: no such index [_nodes]
log   [22:36:20.957] [error][savedobjects-service] Unable to retrieve version information from OpenSearch nodes.
log   [22:36:23.442] [error][data][opensearch] [index_not_found_exception]: no such index [_nodes]
log   [22:36:25.937] [error][data][opensearch] [index_not_found_exception]: no such index [_nodes]
(this no such index [_nodes] error repeats forever)
  1. curl -v http://127.0.0.1:5601 returns 503 "OpenSearch Dashboards server is not ready yet"

Expected behavior No 503 error, UI loads

OpenSearch Version Amazon OpenSearch Service, Serverless Collections

Dashboards Version 2.5.0

Plugins

I tried with the default and I tried removing all plugins, but I get the same error either way

Host/Environment (please complete the following information):

Additional context

I'm not sure if OSD is supposed to run against OSS or not, so maybe this is a feature request.

Amazon has a built-in OSD that comes with OSS but unfortunately it has an uglified URL and there's no way to have a vanity URL. Plus there's no plugin support, so we were hoping to host our own OSD so that we can have a vanity URL and also experiment with plugins.

joshuarrrr commented 11 months ago

Hi @chadmyers - In the open source project we have limited context or knowledge of the limitations of modified hosted versions. I suspect that the built-in OpenSearch Dashboards (OSD) was potentially modified to work in a serverless environment (particularly for Saved Objects, which typically are stored in the .kibana index).

For now I'll assign to @zhongnansu who may have some more helpful context about the potential limitations or changes required.