Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch Windows 2.17.1 x64
Windows 11
Describe the issue:
My end goal is to create a non-authenticated and non-ssl document search application. I have a 2 node cluster working. But I am having difficulties getting the dashboard to connect.
I had dashboard working on the stock install. However, when I configured a 2 node cluster I am unable to get dashboards to start up.
Can I please get some help in figuring this out?
FATAL {“error”:{“root_cause”:[{“type”:“index_not_found_exception”,“reason”:“no such index [.kibana]”,“index”:“.kibana”,“resource.id”:“.kibana”,“resource.type”:“index_or_alias”,“index_uuid”:“na”}],“type”:“index_not_found_exception”,“reason”:“no such index [.kibana]”,“index”:“.kibana”,“resource.id”:“.kibana”,“resource.type”:“index_or_alias”,“index_uuid”:“na”},“status”:404}
I query my node and it shows a .kibana_1
{
"health": "green",
"status": "open",
"index": ".kibana_1",
"uuid": "DMKT7w4ESLqnCDMLjYwqKA",
"pri": "1",
"rep": "0",
"docs.count": "0",
"docs.deleted": "0",
"store.size": "208b",
"pri.store.size": "208b"
}
So I tried to create a kibana index
{
“error”: {
“root_cause”: [ {
“type”: “invalid_index_name_exception”,
“reason”: “Invalid index name [.kibana], already exists as alias”,
“index”: “.kibana”,
“index_uuid”: “na”
}],
“type”: “invalid_index_name_exception”,
“reason”: “Invalid index name [.kibana], already exists as alias”,
“index”: “.kibana”,
“index_uuid”: “na”
},
“status”: 400
}
Configuration:
opensearch_dashboards.yml
opensearch.hosts: [“http://127.0.0.1:9200”, “http://127.0.0.1:9201”]
server.ssl.enabled: false
opensearch.ssl.verificationMode: none
opensearch.requestTimeout: 30000
opensearch.shardTimeout: 30000
pid.file: /temp/opensearch-dashboards-2.17.1-windows-x64/bin/opensearchDashboards.pid
logging.dest: /temp/opensearch-dashboards-2.17.1-windows-x64/logs
i18n.locale: “en”
opensearch_security.enabled: false
opensearch.username: kibanaserver
opensearch.password: kibanaserver
opensearch.requestHeadersWhitelist: [authorization, securitytenant]
opensearch_security.multitenancy.enabled: true
opensearch_security.multitenancy.tenants.preferred: [Private, Global]
opensearch_security.readonly_mode.roles: [kibana_read_only]
Use this setting if you are running opensearch-dashboards without https
opensearch_security.cookie.secure: false
opensearch.yml
cluster.name: PFDS-cluster
node.name: node-1
path.data: /Users/zzfl0b/temp/opensearch-nodes/node-1/data
path.logs: /Users/zzfl0b/temp/opensearch-logs/node-1/logs
network.host: 127.0.0.1
http.port: 9200
discovery.seed_hosts: [“127.0.0.1:9000”, “127.0.0.1:9001”]
cluster.initial_cluster_manager_nodes: [“node-1”, “node-2”]
gateway.recover_after_nodes: 1
plugins.security.disabled: true
plugins.security.ssl.transport.pemcert_filepath: esnode.pem
plugins.security.ssl.transport.pemkey_filepath: esnode-key.pem
plugins.security.ssl.transport.pemtrustedcas_filepath: root-ca.pem
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.http.enabled: false
plugins.security.ssl.http.pemcert_filepath: esnode.pem
plugins.security.ssl.http.pemkey_filepath: esnode-key.pem
plugins.security.ssl.http.pemtrustedcas_filepath: root-ca.pem
plugins.security.allow_unsafe_democertificates: true
plugins.security.allow_default_init_securityindex: true
plugins.security.authcz.admin_dn: [‘CN=kirk,OU=client,O=client,L=test,C=de’]
plugins.security.audit.type: internal_opensearch
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.restapi.roles_enabled: [all_access, security_rest_api_access]
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [.plugins-ml-agent, .plugins-ml-config, .plugins-ml-connector,
.plugins-ml-controller, .plugins-ml-model-group, .plugins-ml-model, .plugins-ml-task,
.plugins-ml-conversation-meta, .plugins-ml-conversation-interactions, .plugins-ml-memory-meta,
.plugins-ml-memory-message, .plugins-ml-stop-words, .opendistro-alerting-config,
.opendistro-alerting-alert*, .opendistro-anomaly-results*, .opendistro-anomaly-detector*,
.opendistro-anomaly-checkpoints, .opendistro-anomaly-detection-state, .opendistro-reports-,
.opensearch-notifications-, .opensearch-notebooks, .opensearch-observability, .ql-datasources,
.opendistro-asynchronous-search-response*, .replication-metadata-store, .opensearch-knn-models,
.geospatial-ip2geo-data*, .plugins-flow-framework-config, .plugins-flow-framework-templates,
.plugins-flow-framework-state]
node.max_local_storage_nodes: 4
action.auto_create_index: true
compatibility.override_main_response_version: true
index.codec: best_compression
Relevant Logs or Screenshots:
dashboard log
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“plugins-service”],“pid”:19628,“message”:“Plugin "cspHandler" is disabled.”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“plugins-service”],“pid”:19628,“message”:“Plugin "applicationConfig" is disabled.”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“plugins-service”],“pid”:19628,“message”:“Plugin "dataSource" is disabled.”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“plugins-service”],“pid”:19628,“message”:“Plugin "visTypeXy" is disabled.”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“plugins-service”],“pid”:19628,“message”:“Plugin "workspace" is disabled.”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“plugins-service”],“pid”:19628,“message”:“Plugin "securityDashboards" is disabled.”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“warning”,“config”,“deprecation”],“pid”:19628,“message”:“"opensearch.requestHeadersWhitelist" is deprecated and has been replaced by "opensearch.requestHeadersAllowlist"”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“dynamic-config-service”],“pid”:19628,“message”:“registering middleware to inject context to AsyncLocalStorage”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“plugins-system”],“pid”:19628,“message”:“Setting up [53] plugins: [usageCollection,opensearchDashboardsUsageCollection,opensearchDashboardsLegacy,mapsLegacy,opensearchUiShared,share,expressions,data,savedObjects,queryEnhancements,embeddable,home,dashboard,visualizations,visTypeTimeline,visTypeTable,visTypeVega,visTypeMarkdown,visAugmenter,visBuilder,tileMap,regionMap,customImportMapDashboards,inputControlVis,ganttChartDashboards,visualize,apmOss,management,indexPatternManagement,dataSourceManagement,securityAnalyticsDashboards,mlCommonsDashboards,searchRelevanceDashboards,reportsDashboards,indexManagementDashboards,anomalyDetectionDashboards,assistantDashboards,alertingDashboards,notificationsDashboards,console,advancedSettings,dataExplorer,legacyExport,bfetch,charts,observabilityDashboards,queryWorkbenchDashboards,visTypeVislib,visTypeTimeseries,visTypeMetric,visTypeTagcloud,discover,savedObjectsManagement]”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“plugins”,“queryEnhancements”],“pid”:19628,“message”:“queryEnhancements: Setup complete”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“dynamic-config-service”],“pid”:19628,“message”:“initiating start()”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“dynamic-config-service”],“pid”:19628,“message”:“finished start()”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“savedobjects-service”],“pid”:19628,“message”:“Waiting until all OpenSearch nodes are compatible with OpenSearch Dashboards before starting saved objects migrations…”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“savedobjects-service”],“pid”:19628,“message”:“Starting saved objects migrations”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“error”,“opensearch”,“data”],“pid”:19628,“message”:“[index_not_found_exception]: no such index [.kibana]”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“warning”,“savedobjects-service”],“pid”:19628,“message”:“Unable to connect to OpenSearch. Error: index_not_found_exception: [index_not_found_exception] Reason: no such index [.kibana]”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“fatal”,“root”],“pid”:19628,“message”:“ResponseError: index_not_found_exception: [index_not_found_exception] Reason: no such index [.kibana]\n at onBody (C:\Users\zzfl0b\temp\opensearch-dashboards-2.17.1-windows-x64\node_modules\@opensearch-project\opensearch\lib\Transport.js:374:23)\n at IncomingMessage.onEnd (C:\Users\zzfl0b\temp\opensearch-dashboards-2.17.1-windows-x64\node_modules\@opensearch-project\opensearch\lib\Transport.js:293:11)\n at IncomingMessage.emit (node:events:529:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1400:12)\n at processTicksAndRejections (node:internal/process/task_queues:82:21) {\n meta: {\n body: { error: [Object], status: 404 },\n statusCode: 404,\n headers: {\n ‘content-type’: ‘application/json; charset=UTF-8’,\n ‘content-length’: ‘371’\n },\n meta: {\n context: null,\n request: [Object],\n name: ‘opensearch-js’,\n connection: [Object],\n attempts: 0,\n aborted: false\n }\n }\n}”}
{“type”:“log”,“@timestamp”:“2024-11-14T16:24:56Z”,“tags”:[“info”,“plugins-system”],“pid”:19628,“message”:“Stopping all plugins.”}