1、报错
近日在windows平台使用7.15.2 的elasticsearch 和kibana 时候,在开启es cmd窗口后,kibana无法启动,报错误下。
log [09:03:50.365] [error][savedobjects-service] [.kibana] Action failed with 'Request timed out'. Retrying attempt 1 in 2 seconds. log [09:03:50.371] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS. took: 120043ms. log [09:03:50.410] [error][savedobjects-service] [.kibana_task_manager] Action failed with 'Request timed out'. Retrying attempt 1 in 2 seconds. log [09:03:50.412] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS. took: 120059ms. log [09:05:52.415] [error][savedobjects-service] [.kibana] Action failed with 'Request timed out'. Retrying attempt 2 in 4 seconds. log [09:05:52.416] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS. took: 122050ms. log [09:05:52.462] [error][savedobjects-service] [.kibana_task_manager] Action failed with 'Request timed out'. Retrying attempt 2 in 4 seconds. log [09:05:52.463] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS. took: 122052ms. log [09:07:56.471] [error][savedobjects-service] [.kibana] Action failed with 'Request timed out'. Retrying attempt 3 in 8 seconds. log [09:07:56.472] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS. took: 124055ms. log [09:07:56.517] [error][savedobjects-service] [.kibana_task_manager] Action failed with 'Request timed out'. Retrying attempt 3 in 8 seconds. log [09:07:56.518] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS. took: 124055ms.
2、原因
原因其实很简单,就是因为不小心在es启动的cmd窗口中鼠标不小心选中了任何字符串都会导致es的输出受阻,进而导致kibana启动失败。如下图所示。
3、解决方法
最简单的方法当是取消选择即可,通过回车、esc键都可以,然后再重新启动kibana。当然这更推荐将es内置为windows的系统服务,以避免类似的问题。这里采用es官方截图,操作如下所示。