# Unable to install 3rd party pluging using ES + Kibana 7.6.0

**URL:** <https://discuss.elastic.co/t/unable-to-install-3rd-party-pluging-using-es-kibana-7-6-0/341903>\
**Category:** Kibana\
**Created:** [August 29, 2023, 3:24pm UTC](https://discuss.elastic.co/t/unable-to-install-3rd-party-pluging-using-es-kibana-7-6-0/341903 "2023-08-29T15:24:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asad\_ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asad_ali/32/47894_2.png) [@asad\_ali](https://discuss.elastic.co/u/asad_ali)\
**Post date:** [August 29, 2023, 3:24pm UTC](https://discuss.elastic.co/t/unable-to-install-3rd-party-pluging-using-es-kibana-7-6-0/341903/1 "2023-08-29T15:24:25Z")

</div>

Hello,

I'm stuck in the situation where I'm to run a plugin which only support ES/Kibana 7.6.0 version, so I installed and run both services and they are working as expected. Problem comes when I attempt to install the plugin using the command

> /usr/share/kibana/bin/./kibana-plugin install ​file​:​///PATH\_TO\_FILE/sigma-ui-xxxxx.zip

> and I get error as  
> "Kibana should not be run as root. Use --allow-root to continue."

Further I attempt to edit elasticsearch bin file and added

> if ! echo $\* | grep -E '(^-d |-d$| -d |--daemonize$|--daemonize )' \> /dev/null; then  
> exec   
> "$JAVA"   
> $ES\_JAVA\_OPTS   
> -Des.path.home="$ES\_HOME"   
> -Des.path.conf="$ES\_PATH\_CONF"   
> -Des.distribution.flavor="$ES\_DISTRIBUTION\_FLAVOR"   
> -Des.distribution.type="$ES\_DISTRIBUTION\_TYPE"   
> -Des.bundled\_jdk="$ES\_BUNDLED\_JDK"   
> -cp "$ES\_CLASSPATH"   
> \*_-Des.insecure.allow.root=true \*_  
> org.elasticsearch.bootstrap.Elasticsearch   
> "$@"  
> else  
> exec   
> "$JAVA"   
> $ES\_JAVA\_OPTS   
> -Des.path.home="$ES\_HOME"   
> -Des.path.conf="$ES\_PATH\_CONF"   
> -Des.distribution.flavor="$ES\_DISTRIBUTION\_FLAVOR"   
> -Des.distribution.type="$ES\_DISTRIBUTION\_TYPE"   
> -Des.bundled\_jdk="$ES\_BUNDLED\_JDK"   
> -cp "$ES\_CLASSPATH"   
> \*_-Des.insecure.allow.root=true \*_  
> org.elasticsearch.bootstrap.Elasticsearch   
> "$@"   
> \<&- &

but adding \*\*-Des.insecure.allow.root=true \*\*" didn't helped me as I'm still getting same errors, here are different combination I tried in order to install the plugin all returning with errors, I appreciate if someone can guide me overcome this issue. Thank you.

```auto
asad@elk:~$ /usr/share/kibana/bin/./kibana-plugin install file:///home/asad/sigma_ui_1.2.5.zip
Found previous install attempt. Deleting...
Babel could not write cache to file: /usr/share/kibana/optimize/.babel_register_cache.json 
due to a permission issue. Cache is disabled.
Plugin installation was unsuccessful due to error "Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option."

```

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [August 31, 2023, 9:26am UTC](https://discuss.elastic.co/t/unable-to-install-3rd-party-pluging-using-es-kibana-7-6-0/341903/2 "2023-08-31T09:26:33Z")

</div>

Hi @asad_ali,

Is this your own custom plugin, or one from a member of the community.

> [@asad\_ali](#):
>
> Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option."

Have you tried using the force option for the latest error as directed above?

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [August 31, 2023, 11:47am UTC](https://discuss.elastic.co/t/unable-to-install-3rd-party-pluging-using-es-kibana-7-6-0/341903/3 "2023-08-31T11:47:54Z")

</div>

> [@asad\_ali](#):
>
> "Kibana should not be run as root. Use --allow-root to continue."

You are running the command as non-kibana user, you should use or impersonate as `kibana` user. Try something like this:  
`su -m kibana -c "/usr/share/kibana/bin/kibana"`

---

<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:** [September 28, 2023, 11:48am UTC](https://discuss.elastic.co/t/unable-to-install-3rd-party-pluging-using-es-kibana-7-6-0/341903/4 "2023-09-28T11:48:42Z")

</div>

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