Cannot find module './mysql_logs'

(Koen Wouters) #1

Hi, I can no longer run Kibana after a mySQL crash and this is the error log I get :

log [08:31:31.995] [fatal][root] { Error: Cannot find module './mysql_logs'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/usr/share/kibana/src/legacy/core_plugins/kibana/server/tutorials/register.js:28:19)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.require.extensions.(anonymous function) [as .js] (/usr/share/kibana/node_modules/babel-register/lib/node.js:152:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/usr/share/kibana/src/legacy/core_plugins/kibana/index.js:173:18)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.require.extensions.(anonymous function) [as .js] (/usr/share/kibana/node_modules/babel-register/lib/node.js:152:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18) code: 'MODULE_NOT_FOUND' }

FATAL Error: Cannot find module './mysql_logs'

Any idea where this module is/should be located, and why it is used with Kibana? Or how I can disable it?

(Tyler Smalley) #2

This is a reference to a Javascript file used for the getting started guides to show how to parse MySQL logs. It's not actually connecting to MySQL nor should it at all be affected by a MySQL process. Is it possible that this file or some files were removed from the Kibana package? I would recommend re-downloading Kibana, copy over your config and start it up again.

(Koen Wouters) #3

Yeah, I assume my purge script was a bit too wide. I've reinstalled Kibana and all is indeed fine now