Kibana unabe连接到Windows上的Elasticsearch [英] Kibana unabe to connect to elasticsearch on windows

查看:371
本文介绍了Kibana unabe连接到Windows上的Elasticsearch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am running elastic search 7.6 it is working ok on http://localhost:9200/ . I am able to use the REST API to add values to index.

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

Now when i start up kibana 7.6, i get following error:-

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

Unable to connect to Elasticsearch. Error: Request Timeout after 30000ms

推荐答案

我遇到了与您相同的问题,并且通过将cmd prompt窗口切换为PowerShell窗口来解决该问题.似乎command prompt窗口非常敏感.您可能在这里有一些想法.

I've got same problem like yours, and I've sloved it by switching cmd prompt window to PowerShell window. It seems that command prompt window is very sensitive. You may get some idea here. https://discuss.elastic.co/t/kibana-7-4-0-on-windows-command-prompt-not-able-to-start/203877/7

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

BTW, If you get a warning when you restart Kibana, like:

  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.

Just do what it told you, delete the index .kibana_task_manager_1 and restart Kibana.

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

祝你好运.

这篇关于Kibana unabe连接到Windows上的Elasticsearch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆