Error: Module not found error on 6.5.0 upgrade


(Alexandre Klein) #1

Hello,

I can't install Kibana 6.5.0. I had to rollback to 6.4.3 (My ES are still in 6.5.0)

I am working on Debian Stretch and installed it throught apt.

Here is the log error :
Nov 15 12:32:33 logs-es1 systemd[1]: kibana.service: Failed with result 'exit-code'.
Nov 15 12:32:34 logs-es1 systemd[1]: kibana.service: Service hold-off time over, scheduling restart.
Nov 15 12:32:34 logs-es1 systemd[1]: Stopped Kibana.
Nov 15 12:32:34 logs-es1 systemd[1]: Started Kibana.
Nov 15 12:32:41 logs-es1 kibana[32356]: {"type":"log","@timestamp":"2018-11-15T11:32:41Z","tags":["info","optimize"],"
pid":32356,"message":"Optimizing and caching bundles for ml, stateSessionStorageRedirect, status_page, timelion, monit
oring, space_selector, dashboardViewer, apm, canvas, infra and kibana. This may take a few minutes"}
Nov 15 12:34:37 logs-es1 kibana[32356]: {"type":"error","@timestamp":"2018-11-15T11:34:37Z","tags":["fatal","root"],"p
id":32356,"level":"fatal","error":{"message":"Optimizations failure.\n   7877 modules\n    \n    \u001b[1m\u001b[31mER
ROR in /usr/share/kibana/node_modules/x-pack/plugins/canvas/public/components/workpad_export/index.js\n    Module not
found: Error: Can't resolve 'plugins/reporting/lib/job_completion_notifications' in '/usr/share/kibana/node_modules/x-
pack/plugins/canvas/public/components/workpad_export'\u001b[39m\u001b[22m\n","name":"Error","stack":"Error: Optimizati
ons failure.\n   7877 modules\n    \n    \u001b[1m\u001b[31mERROR in /usr/share/kibana/node_modules/x-pack/plugins/can
vas/public/components/workpad_export/index.js\n    Module not found: Error: Can't resolve 'plugins/reporting/lib/job_c
ompletion_notifications' in '/usr/share/kibana/node_modules/x-pack/plugins/canvas/public/components/workpad_export'\u0
01b[39m\u001b[22m\n\n    at FsOptimizer.failedStatsToError (/usr/share/kibana/src/optimize/base_optimizer.js:379:27)\n
   at compiler.run (/usr/share/kibana/src/optimize/fs_optimizer.js:47:26)\n    at onCompiled (/usr/share/kibana/node_
modules/webpack/lib/Compiler.js:241:12)\n    at applyPluginsAsync.err (/usr/share/kibana/node_modules/webpack/lib/Comp
iler.js:514:14)\n    at next (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:202:11)\n    at Compiler.<anonymou
s> (/usr/share/kibana/node_modules/webpack/lib/CachePlugin.js:78:5)\n    at Compiler.applyPluginsAsyncSeries (/usr/sha
re/kibana/node_modules/tapable/lib/Tapable.js:206:13)\n    at compilation.seal.err (/usr/share/kibana/node_modules/web
pack/lib/Compiler.js:511:11)\n    at Compilation.applyPluginsAsyncSeries (/usr/share/kibana/node_modules/tapable/lib/T
apable.js:195:46)\n    at self.applyPluginsAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compilation.js:671:19
)\n    at Compilation.applyPluginsAsyncSeries (/usr/share/kibana/node_modules/tapable/lib/Tapable.js:195:46)\n    at s
elf.applyPluginsAsync.err (/usr/share/kibana/node_modules/webpack/lib/Compilation.
Nov 15 12:34:37 logs-es1 kibana[32356]: js:662:11)\n    at next (/usr/share/kibana/node_modules/tapable/lib/Tapable.js
:202:11)\n    at /usr/share/kibana/node_modules/uglifyjs-webpack-plugin/dist/index.js:282:11\n    at step (/usr/share/
kibana/node_modules/uglifyjs-webpack-plugin/dist/uglify/index.js:90:11)\n    at done (/usr/share/kibana/node_modules/u
glifyjs-webpack-plugin/dist/uglify/index.js:99:22)\n    at /usr/share/kibana/node_modules/uglifyjs-webpack-plugin/dist
/uglify/index.js:105:15\n    at /usr/share/kibana/node_modules/worker-farm/lib/farm.js:191:19\n    at _combinedTickCal
lback (internal/process/next_tick.js:131:7)\n    at process._tickCallback (internal/process/next_tick.js:180:9)"},"mes
sage":"Optimizations failure.\n   7877 modules\n    \n    ERROR in /usr/share/kibana/node_modules/x-pack/plugins/canva
s/public/components/workpad_export/index.js\n    Module not found: Error: Can't resolve 'plugins/reporting/lib/job_com
pletion_notifications' in '/usr/share/kibana/node_modules/x-pack/plugins/canvas/public/components/workpad_export'\n"}
Nov 15 12:34:37 logs-es1 kibana[32356]:  FATAL  Error: Optimizations failure.
Nov 15 12:34:37 logs-es1 kibana[32356]:    7877 modules
Nov 15 12:34:37 logs-es1 kibana[32356]:      
Nov 15 12:34:37 logs-es1 kibana[32356]:     ERROR in /usr/share/kibana/node_modules/x-pack/plugins/canvas/public/compo
nents/workpad_export/index.js
Nov 15 12:34:37 logs-es1 kibana[32356]:     Module not found: Error: Can't resolve 'plugins/reporting/lib/job_completi
on_notifications' in '/usr/share/kibana/node_modules/x-pack/plugins/canvas/public/components/workpad_export'

Is there any workaround to make it work ?
I purged and reinstall kibana and i am not using any plugins since xpack is bundled with Kibana :).

Thanks!


#2

Hey @Alexkl,

Can you please check that you have reporting plugin enabled (no xpack.reporting.enabled: false in kibana.yml)?

Best,
Oleg


(Alexandre Klein) #3

Hello @azasypkin !

cat /etc/kibana/kibana.yml
server.port: 5601

server.host: "127.0.0.1"

server.name: "Ook"

elasticsearch.url: "http://myservers:9200"

xpack.security.enabled: false

xpack.graph.enabled: false

xpack.reporting.enabled: false

xpack.monitoring.enabled: true
xpack.ml.enabled: false


#4

Yeah, it seems Canvas plugin requires Reporting for some reason and breaks Kibana if Reporting is disabled. So, as a workaround, you either need to remove xpack.reporting.enabled: false from your config or disable Canvas plugin (add xpack.canvas.enabled: false to your config file).

Ping @Joe_Fleming


FATAL Error: Optimizations failure
(Alexandre Klein) #5

Thank you very much !