Kibana初始化启动失败原因及解决办法

一) Unable to retrieve version information from Elasticsearch nodes

报错日志:

折叠源码

|----------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [root@node1 bin]``# ./kibana --allow-root ``log [16:03:07.086] [info][plugins``-service``] Plugin ``"metricsEntities" is disabled. ``log [16:03:07.163] [info][server][Preboot][http] http server running athttp://192.168.17.36:5601 ``log [16:03:07.209] [warning][config][deprecation] Starting in 8.0, the Kibana logging format will be changing. This may affect you if you are doing any special handling of your Kibana logs, such as ingesting logs into Elasticsearch for further analysis. If you are using the new logging configuration, you are already receiving logs in both old and new formats, and the old format will simply be going away. If you are not yet using the new logging configuration, the log format will change upon upgrade to 8.0. Beginning in 8.0, the format of JSON logs will be ECS``-compatible JSON, and the default pattern log format will be configurable with our new logging system. Please refer to the documentation for more information about the new logging format. ``log [16:03:07.210] [warning][config][deprecation] The default mechanism for Reporting privileges will work differently in future versions, which will affect the behavior of this cluster. ``Set "xpack.reporting.roles.enabled" to ``"false" to adopt the future behavior before upgrading. ``log [16:03:07.210] [warning][config][deprecation] User sessions will automatically time out after 8 hours of inactivity starting in 8.0. Override this value to change the timeout. ``log [16:03:07.211] [warning][config][deprecation] Users are automatically required to log in again after 30 days starting in 8.0. Override this value to change the timeout. ``log [16:03:07.354] [info][plugins``-system``][standard] Setting up [113] plugins: [translations,licensing,globalSearch,globalSearchProviders,features,licenseApiGuard,code,usageCollection,xpackLegacy,taskManager,telemetryCollectionManager,telemetryCollectionXpack,kibanaUsageCollection,share,embeddable,uiActionsEnhanced,screenshotMode,banners,telemetry,newsfeed,mapsEms,mapsLegacy,kibanaLegacy,fieldFormats,expressions,dataViews,charts,esUiShared,bfetch,data,savedObjects,presentationUtil,expressionShape,expressionRevealImage,expressionRepeatImage,expressionMetric,expressionImage,customIntegrations,home,searchprofiler,painlessLab,grokdebugger,management,watcher,licenseManagement,advancedSettings,spaces,security,savedObjectsTagging,reporting,canvas,lists,ingestPipelines,fileUpload,encryptedSavedObjects,dataEnhanced,cloud,snapshotRestore,eventLog,actions,alerting,triggersActionsUi,transform,stackAlerts,ruleRegistry,visualizations,visTypeXy,visTypeVislib,visTypeVega,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypePie,visTypeMetric,visTypeMarkdown,tileMap,regionMap,expressionTagcloud,expressionMetricVis,console,graph,fleet,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,dashboard,maps,dashboardMode,dashboardEnhanced,visualize,visTypeTimeseries,rollup,indexPatternFieldEditor,lens,cases,timelines,discover,osquery,observability,discoverEnhanced,dataVisualizer,ml,uptime,securitySolution,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,savedObjectsManagement,indexPatternManagement] ``log [16:03:07.369] [info][plugins][taskManager] TaskManager is identified by the Kibana UUID: 8bf4fa48-ee5c-4550-a5d4-52bff47e6c4b ``log [16:03:07.486] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please ``set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana``-encryption``-keys command. ``log [16:03:07.487] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended. ``log [16:03:07.507] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please ``set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana``-encryption``-keys command. ``log [16:03:07.508] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended. ``log [16:03:07.523] [warning][config][plugins][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent sessions from being invalidated on restart, please ``set xpack.reporting.encryptionKey in the kibana.yml or use the bin/kibana``-encryption``-keys command. ``log [16:03:07.540] [warning][encryptedSavedObjects][plugins] Saved objects encryption key is not ``set``. This will severely limit Kibana functionality. Please ``set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana``-encryption``-keys command. ``log [16:03:07.554] [warning][actions][plugins] APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please ``set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana``-encryption``-keys command. ``log [16:03:07.574] [warning][alerting][plugins] APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please ``set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana``-encryption``-keys command. ``log [16:03:07.588] [info][plugins][ruleRegistry] Installing common resources shared between all indices ``log [16:03:08.045] [info][config][plugins][reporting] Chromium sandbox provides an additional layer of protection, and is supported for Linux RHEL OS. Automatically enabling Chromium sandbox. ``log [16:03:08.087] [error][elasticsearch``-service``] Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED 127.0.0.1:9200 |

问题原因:

在配置kibana/config/kibana.yml时未设置所连elasticsearch服务器的地址及端口号。

解决办法:

修改kibana/config/kibana.yml文件,设置elasticsearch.hosts信息,如:elasticsearch.hosts: ["http://192.168.17.36:9200"]

另外建议将server.host修改为 server.host: "0.0.0.0",允许外部访问。

相关推荐
我言秋日胜春朝★5 分钟前
【Linux】基础IO-----软硬链接与动静态库
linux·运维·服务器
篱笆院的狗7 分钟前
1、Java中的序列化和反序列化是什么?
java·开发语言
等一场春雨11 分钟前
Spring Boot 3 文件上传、多文件上传、大文件分片上传、文件流处理以及批量操作
java·spring boot·后端
骑着王八撵玉兔37 分钟前
【非关系型数据库Redis 】 入门
java·数据库·spring boot·redis·后端·缓存·nosql
小七蒙恩1 小时前
java 上传txt json等类型文件解析后返回给前端
java·前端·json
郭老师的小迷弟雅思莫了2 小时前
【JAVA高级篇教学】第六篇:Springboot实现WebSocket
java·spring boot·websocket
mqiqe2 小时前
Nginx 配置前端后端服务
运维·前端·nginx
神仙别闹3 小时前
基于Java+MySQL实现的(GUI)酒店管理系统(软件工程设计)
java·mysql·软件工程
正在绘制中3 小时前
Java重要面试名词整理(十五):Dubbo
java·面试·dubbo
程序猿阿伟3 小时前
《量子AI:突破量子比特稳定性与容错性的关键瓶颈》
运维·人工智能·自动化