Kibana unabe连接到Windows上的Elasticsearch

问题描述 投票:0回答:1

我正在运行弹性搜索7.6,可以在http://localhost:9200/上正常运行。我能够使用REST API向索引添加值。

现在,当我启动kibana 7.6时,出现以下错误:-

log   [12:31:32.247] [info][plugins-service] Plugin "case" is disabled.
  log   [12:31:44.432] [info][plugins-system] Setting up [36] plugins: [taskManager,siem,licensing,infra,encryptedSavedObjects,code,timelion,features,security,usageCollection,metrics,canvas,apm_oss,translations,reporting,status_page,share,uiActions,data,navigation,newsfeed,kibana_legacy,management,dev_tools,home,spaces,cloud,graph,inspector,expressions,visualizations,embeddable,advancedUiActions,dashboard_embeddable_container,eui_utils,bfetch]                                   log   [12:31:44.435] [info]
  log   [12:31:44.587] [info][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
  log   [12:31:44.617] [info][savedobjects-service] Starting saved objects migrations                                     log   [12:31:44.657] [info][savedobjects-service] Creating index .kibana_1.
  log   [12:31:44.663] [info][savedobjects-service] Creating index .kibana_task_manager_1. 
  log   [12:32:14.663] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: Request Timeout after 30000ms

无法连接到Elasticsearch。错误:请求超时后30000ms

elasticsearch kibana startup timeoutexception
1个回答
0
投票

我遇到了和您一样的问题,并且通过将cmd prompt窗口切换到PowerShell窗口解决了这个问题。似乎command prompt窗口非常敏感。您可能在这里有一些想法。 https://discuss.elastic.co/t/kibana-7-4-0-on-windows-command-prompt-not-able-to-start/203877/7

顺便说一句,如果您在重新启动Kibana时收到警告,例如:

  log   [06:27:47.136] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: [resource_already_exists_exception] index [.kibana_task_manager_1/EmPx77s1TLWbLQdqQ8iC0w] already exists, with { index_uuid="EmPx77s1TLWbLQdqQ8iC0w" & index=".kibana_task_manager_1" }
  log   [06:27:47.140] [warning][savedobjects-service] Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_task_manager_1 and restarting Kibana.

只需执行它告诉您的操作,删除索引.kibana_task_manager_1,然后重新启动Kibana。

curl -XDELETE http://localhost:9200/.kibana_task_manager_1

祝你好运。>>

© www.soinside.com 2019 - 2024. All rights reserved.