Hello,
I'm having some issues with Kibana recently and could really use the community's help.
I'm running Elasticsearch + Kibana 6.5.4 (both) on a Windows Server with one master node without any issues. Elasticsearch is running as a Windows Service and Kibana is running by the Kibana.bat script.
About 2 weeks ago i started to notice sudden Timeout Errors (after 30000ms) after a 12-hour (approximately) time period of proper behavior. Checking Elasticsearch's service, i didn't find any issues and Kibana was running since i could see everything from the Web App.
After checking the running Kibana.bat (via Terminal/CMD) i noticed the following non-stop errors:
Error: Cannot find module '/proc/self/environ'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at Function.Module._preloadModules (module.js:754:12)
at preloadModules (bootstrap_node.js:488:38)
at startup (bootstrap_node.js:201:9)
at bootstrap_node.js:625:3
module.js:550
throw err;
^
I Restarted Kibana (closed and reinitialized Kibana.bat) and everything went back to normal until it came back after the stated time period (happens every time).
I've tried to perform some basic troubleshooting:
- Restarting Elasticsearch Service
- Restarting the Server
- Downgrade Browser's (Google Chrome) version
- Replacing Kibana 6.5.4's copy with a fresh download
Nothing worked. I also tried to replace the node.js executable without success (errors seems to be generated by node's process).
I've also routed the logging to a file in order to find more information regarding thid issue and encounter this error, which i'm not sure it's related:
{
"type": "error",
"@timestamp": "2019-11-14T21:10:50Z",
"tags": [
"warning",
"process"
],
"pid": 4668,
"level": "error",
"error": {
"message": "Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6)",
"name": "UnhandledPromiseRejectionWarning",
"stack": "Error: Specified object should be an Object or Array
at validateObject (KIBANA_PATH/kibana-6.5.4-windows-x86_64/kibana-6.5.4-windows-x86_64/node_modules/x-pack/server/lib/key_case_converter.js:39:11)
at convertKeysToSnakeCaseDeep (KIBANA_PATH/kibana-6.5.4-windows-x86_64/kibana-6.5.4-windows-x86_64/node_modules/x-pack/server/lib/key_case_converter.js:44:3)
at handler (KIBANA_PATH/kibana-6.5.4-windows-x86_64/kibana-6.5.4-windows-x86_64/node_modules/x-pack/plugins/xpack_main/server/routes/api/v1/xpack_info.js:22:13)
at Object.internals.handler (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\handler.js:96:36)
at request._protect.run (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\handler.js:30:23)
at module.exports.internals.Protect.internals.Protect.run (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\protect.js:64:5)
at exports.execute (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\handler.js:24:22)
at each (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\request.js:384:16)
at iterate (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\items\\lib\\index.js:36:13)
at done (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\items\\lib\\index.js:28:25)
at Hoek.once (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\protect.js:52:16)
at wrapped (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hoek\\lib\\index.js:879:20)
at done (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\items\\lib\\index.js:31:25)
at Function.wrapped [as _next] (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hoek\\lib\\index.js:879:20)
at Function.internals.continue (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\reply.js:108:10)
at method (KIBANA_PATH/kibana-6.5.4-windows-x86_64/kibana-6.5.4-windows-x86_64/node_modules/x-pack/plugins/dashboard_mode/server/dashboard_mode_request_interceptor.js:44:7)
at Items.serial (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\request.js:403:22)
at iterate (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\items\\lib\\index.js:36:13)
at done (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\items\\lib\\index.js:28:25)
at Function.wrapped [as _next] (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hoek\\lib\\index.js:879:20)
at Function.internals.continue (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\reply.js:108:10)
at spacesOnRequestHandler (KIBANA_PATH/kibana-6.5.4-windows-x86_64/kibana-6.5.4-windows-x86_64/node_modules/x-pack/plugins/spaces/server/lib/space_request_interceptors.js:82:16)
at Items.serial (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\request.js:403:22)
at iterate (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\items\\lib\\index.js:36:13)
at done (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\items\\lib\\index.js:28:25)
at Function.wrapped (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hoek\\lib\\index.js:879:20)
at Function.internals.continue (KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\node_modules\\hapi\\lib\\reply.js:108:10)
at KIBANA_PATH\\kibana-6.5.4-windows-x86_64\\kibana-6.5.4-windows-x86_64\\src\\server\\http\\xsrf.js:33:26"
},
"message": "Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6)"
}
I didn't find neither similar nor related issues online, hoping someone can direct me to additional troubleshooting or a possible solution.
Thanks,
Tomer Vainstein.