# Plugin installation failure

**URL:** <https://discuss.elastic.co/t/plugin-installation-failure/63422>\
**Category:** Kibana\
**Created:** [October 19, 2016, 4:40pm UTC](https://discuss.elastic.co/t/plugin-installation-failure/63422 "2016-10-19T16:40:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlonberg](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@rlonberg](https://discuss.elastic.co/u/rlonberg)\
**Post date:** [October 19, 2016, 4:40pm UTC](https://discuss.elastic.co/t/plugin-installation-failure/63422/1 "2016-10-19T16:40:13Z")

</div>

So this is weird...

I am trying to install a custom plugin located on a local directory to kibana. When I attempt to install using './kibana plugin --install'. I get the following:

```
[lma@qthlmwbtt02 bin]$ ./kibana plugin --install health-metric-vis -u file:/home/CIQDEV/ravi_lonberg/health_metric_vis-master.zip
Installing health-metric-vis
Attempting to transfer from file:/home/CIQDEV/ravi_lonberg/health_metric_vis-master.zip
Transferring 38802 bytes....................
Transfer complete
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation was unsuccessful due to error "child "server" fails because [child "basePath" fails because ["basePath" with value "&#x2f;" fails to match the start with a slash, don't end with one pattern]]"
[lma@qthlmwbtt02 bin]$

```

I have no idea where to begin with this, please let me know what files would be helpful for me to upload in order to further this discussion.

Thanks,  
Ravi

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [October 19, 2016, 6:23pm UTC](https://discuss.elastic.co/t/plugin-installation-failure/63422/2 "2016-10-19T18:23:57Z")

</div>

Are you setting `server.basePath` in your config file (kibana.yml)?

---

<div class="post-metadata">

**Author:** ![rlonberg](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@rlonberg](https://discuss.elastic.co/u/rlonberg)\
**Post date:** [October 19, 2016, 11:02pm UTC](https://discuss.elastic.co/t/plugin-installation-failure/63422/3 "2016-10-19T23:02:14Z")

</div>

Yes I just checked and _I am_ setting `server.basePath`

What is the difference between the following configuration in kibana.yml,

**my configuration:**

```
# If you are running kibana behind a proxy, and want to mount it at a path,
# specify that path here. The basePath can't end in a slash.
server.basePath: "/"

```

and the default kibana.yml, where server.basePath is commented out...

**default:**

```
# If you are running kibana behind a proxy, and want to mount it at a path,
# specify that path here. The basePath can't end in a slash.
# server.basePath: ""

```

?

Thanks!

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [October 20, 2016, 3:42pm UTC](https://discuss.elastic.co/t/plugin-installation-failure/63422/4 "2016-10-20T15:42:23Z")

</div>

The `server.basePath` setting should only be used if you're running Kibana behind a proxy or something that changes the root of Kibana to something other than `/`. And, as the instructions say:

> The basePath can't end in a slash.

So your configuration is actually invalid, which is why you're seeing this error.

---

<div class="post-metadata">

**Author:** ![rlonberg](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@rlonberg](https://discuss.elastic.co/u/rlonberg)\
**Post date:** [October 20, 2016, 4:40pm UTC](https://discuss.elastic.co/t/plugin-installation-failure/63422/5 "2016-10-20T16:40:19Z")

</div>

Okay thanks for clarification. Hasn't been an issue until I tried to install a custom plugin

---

<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:** [July 6, 2017, 1:36pm UTC](https://discuss.elastic.co/t/plugin-installation-failure/63422/6 "2017-07-06T13:36:06Z")

</div>


