# Kibana 6.2.4 stopped working after x-pack installation

**URL:** <https://discuss.elastic.co/t/kibana-6-2-4-stopped-working-after-x-pack-installation/158266>\
**Category:** Kibana\
**Created:** [November 27, 2018, 5:44am UTC](https://discuss.elastic.co/t/kibana-6-2-4-stopped-working-after-x-pack-installation/158266 "2018-11-27T05:44:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![frasmd](https://avatars.discourse-cdn.com/v4/letter/f/919ad9/32.png) [@frasmd](https://discuss.elastic.co/u/frasmd)\
**Post date:** [November 27, 2018, 5:44am UTC](https://discuss.elastic.co/t/kibana-6-2-4-stopped-working-after-x-pack-installation/158266/1 "2018-11-27T05:44:43Z")

</div>

I have installed elasticstack 6.2.4 on a single server. I was able to send data to elasticsearch and also got index created. I wanted to integrate this setup with x-pack for ML and monitoring purpose. Was able to install and configure x-pack for elasticsearch. But when i installed x-pack for kibana it started throwing below error after service restart

```auto
Uncaught Error: [$injector:unpr] Unknown provider: sessionTimeoutProvider <- sessionTimeout <- $http <- config kibana

```

This error comes when i open kibana URL on the browser. Then i following this link([https://github.com/elastic/kibana/issues/9369](https://github.com/elastic/kibana/issues/9369)) and deleted optimize folder from /usr/share/kibana now i am getting below error on the broswer

`Kibana did not load properly. Check the server output for more information.`

and below error on the logs of kibana

```auto
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: EACCES: permission denied, open '/usr/share/kibana/optimize/.babelcache.json'
    at Error (native)
    at Object.fs.openSync (fs.js:642:18)
    at Object.fs.writeFileSync (fs.js:1356:33)
    at save (/usr/share/kibana/node_modules/babel-register/lib/cache.js:45:16)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)
    at Module.runMain (module.js:613:11)
    at run (bootstrap_node.js:387:7)
    at startup (bootstrap_node.js:153:9)
    at bootstrap_node.js:500:3

```

I granted permission but didnt help bringing the node up. Please help me with this.

Do i need to enable something with respect to x-pack before bringing up kibana?

---

<div class="post-metadata">

**Author:** ![frasmd](https://avatars.discourse-cdn.com/v4/letter/f/919ad9/32.png) [@frasmd](https://discuss.elastic.co/u/frasmd)\
**Post date:** [November 27, 2018, 10:28am UTC](https://discuss.elastic.co/t/kibana-6-2-4-stopped-working-after-x-pack-installation/158266/2 "2018-11-27T10:28:12Z")

</div>

I was able to solve this by removing previous kibana installation completely and installed it again. Then before starting the service i installed x-pack for kibana using `kibana-plugin install` . Now when i started kibana i got the kibana dashboard with x-pack installed and i didnt eved needed to remove optimize files.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [November 28, 2018, 2:16pm UTC](https://discuss.elastic.co/t/kibana-6-2-4-stopped-working-after-x-pack-installation/158266/3 "2018-11-28T14:16:50Z")

</div>

Hey @frasmd, thanks for sharing your solution here, it'll help others that are in a similar position.

---

<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 26, 2018, 2:16pm UTC](https://discuss.elastic.co/t/kibana-6-2-4-stopped-working-after-x-pack-installation/158266/4 "2018-12-26T14:16:57Z")

</div>

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