# Error: Module not found error on 6.5.0 upgrade

**URL:** <https://discuss.elastic.co/t/error-module-not-found-error-on-6-5-0-upgrade/156845>\
**Category:** Kibana\
**Created:** [November 15, 2018, 11:49am UTC](https://discuss.elastic.co/t/error-module-not-found-error-on-6-5-0-upgrade/156845 "2018-11-15T11:49:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexkl](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alexkl](https://discuss.elastic.co/u/Alexkl)\
**Post date:** [November 15, 2018, 11:49am UTC](https://discuss.elastic.co/t/error-module-not-found-error-on-6-5-0-upgrade/156845/1 "2018-11-15T11:49:35Z")

</div>

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 &nbsp;&nbsp;7877 modules\n &nbsp;&nbsp;&nbsp;\n &nbsp;&nbsp;&nbsp;\u001b[1m\u001b[31mER  
ROR in /usr/share/kibana/node\_modules/x-pack/plugins/canvas/public/components/workpad\_export/index.js\n &nbsp;&nbsp;&nbsp;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 &nbsp;&nbsp;7877 modules\n &nbsp;&nbsp;&nbsp;\n &nbsp;&nbsp;&nbsp;\u001b[1m\u001b[31mERROR in /usr/share/kibana/node\_modules/x-pack/plugins/can  
vas/public/components/workpad\_export/index.js\n &nbsp;&nbsp;&nbsp;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 &nbsp;&nbsp;&nbsp;at FsOptimizer.failedStatsToError (/usr/share/kibana/src/optimize/base\_optimizer.js:379:27)\n  
&nbsp;&nbsp;&nbsp;at compiler.run (/usr/share/kibana/src/optimize/fs\_optimizer.js:47:26)\n &nbsp;&nbsp;&nbsp;at onCompiled (/usr/share/kibana/node\_  
modules/webpack/lib/Compiler.js:241:12)\n &nbsp;&nbsp;&nbsp;at applyPluginsAsync.err (/usr/share/kibana/node\_modules/webpack/lib/Comp  
iler.js:514:14)\n &nbsp;&nbsp;&nbsp;at next (/usr/share/kibana/node\_modules/tapable/lib/Tapable.js:202:11)\n &nbsp;&nbsp;&nbsp;at Compiler.\<anonymou  
s\> (/usr/share/kibana/node\_modules/webpack/lib/CachePlugin.js:78:5)\n &nbsp;&nbsp;&nbsp;at Compiler.applyPluginsAsyncSeries (/usr/sha  
re/kibana/node\_modules/tapable/lib/Tapable.js:206:13)\n &nbsp;&nbsp;&nbsp;at compilation.seal.err (/usr/share/kibana/node\_modules/web  
pack/lib/Compiler.js:511:11)\n &nbsp;&nbsp;&nbsp;at Compilation.applyPluginsAsyncSeries (/usr/share/kibana/node\_modules/tapable/lib/T  
apable.js:195:46)\n &nbsp;&nbsp;&nbsp;at self.applyPluginsAsync.err (/usr/share/kibana/node\_modules/webpack/lib/Compilation.js:671:19  
)\n &nbsp;&nbsp;&nbsp;at Compilation.applyPluginsAsyncSeries (/usr/share/kibana/node\_modules/tapable/lib/Tapable.js:195:46)\n &nbsp;&nbsp;&nbsp;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 &nbsp;&nbsp;&nbsp;at next (/usr/share/kibana/node\_modules/tapable/lib/Tapable.js  
:202:11)\n &nbsp;&nbsp;&nbsp;at /usr/share/kibana/node\_modules/uglifyjs-webpack-plugin/dist/index.js:282:11\n &nbsp;&nbsp;&nbsp;at step (/usr/share/  
kibana/node\_modules/uglifyjs-webpack-plugin/dist/uglify/index.js:90:11)\n &nbsp;&nbsp;&nbsp;at done (/usr/share/kibana/node\_modules/u  
glifyjs-webpack-plugin/dist/uglify/index.js:99:22)\n &nbsp;&nbsp;&nbsp;at /usr/share/kibana/node\_modules/uglifyjs-webpack-plugin/dist  
/uglify/index.js:105:15\n &nbsp;&nbsp;&nbsp;at /usr/share/kibana/node\_modules/worker-farm/lib/farm.js:191:19\n &nbsp;&nbsp;&nbsp;at \_combinedTickCal  
lback (internal/process/next\_tick.js:131:7)\n &nbsp;&nbsp;&nbsp;at process.\_tickCallback (internal/process/next\_tick.js:180:9)"},"mes  
sage":"Optimizations failure.\n &nbsp;&nbsp;7877 modules\n &nbsp;&nbsp;&nbsp;\n &nbsp;&nbsp;&nbsp;ERROR in /usr/share/kibana/node\_modules/x-pack/plugins/canva  
s/public/components/workpad\_export/index.js\n &nbsp;&nbsp;&nbsp;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]: &nbsp;FATAL &nbsp;Error: Optimizations failure.  
Nov 15 12:34:37 logs-es1 kibana[32356]: &nbsp;&nbsp;&nbsp;7877 modules  
Nov 15 12:34:37 logs-es1 kibana[32356]: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
Nov 15 12:34:37 logs-es1 kibana[32356]: &nbsp;&nbsp;&nbsp;&nbsp;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]: &nbsp;&nbsp;&nbsp;&nbsp;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!

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [November 15, 2018, 3:16pm UTC](https://discuss.elastic.co/t/error-module-not-found-error-on-6-5-0-upgrade/156845/2 "2018-11-15T15:16:13Z")

</div>

Hey @Alexkl,

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

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![Alexkl](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alexkl](https://discuss.elastic.co/u/Alexkl)\
**Post date:** [November 15, 2018, 3:22pm UTC](https://discuss.elastic.co/t/error-module-not-found-error-on-6-5-0-upgrade/156845/3 "2018-11-15T15:22:08Z")

</div>

Hello @azasypkin !

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

server.host: "127.0.0.1"

server.name: "Ook"

elasticsearch.url: "[http://myservers:9200](http://myservers:9200)"

xpack.security.enabled: false

xpack.graph.enabled: false

xpack.reporting.enabled: false

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

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [November 15, 2018, 3:27pm UTC](https://discuss.elastic.co/t/error-module-not-found-error-on-6-5-0-upgrade/156845/4 "2018-11-15T15:27:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alexkl](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alexkl](https://discuss.elastic.co/u/Alexkl)\
**Post date:** [November 15, 2018, 3:46pm UTC](https://discuss.elastic.co/t/error-module-not-found-error-on-6-5-0-upgrade/156845/5 "2018-11-15T15:46:15Z")

</div>

Thank you very much !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 13, 2018, 3:46pm UTC](https://discuss.elastic.co/t/error-module-not-found-error-on-6-5-0-upgrade/156845/6 "2018-12-13T15:46:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
