# injectDefaultVars in plugin shield - BUT the versions are correct

**URL:** <https://discuss.elastic.co/t/injectdefaultvars-in-plugin-shield-but-the-versions-are-correct/104931>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [October 23, 2017, 4:37pm UTC](https://discuss.elastic.co/t/injectdefaultvars-in-plugin-shield-but-the-versions-are-correct/104931 "2017-10-23T16:37:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlfriedrichgauss](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@carlfriedrichgauss](https://discuss.elastic.co/u/carlfriedrichgauss)\
**Post date:** [October 23, 2017, 4:37pm UTC](https://discuss.elastic.co/t/injectdefaultvars-in-plugin-shield-but-the-versions-are-correct/104931/1 "2017-10-23T16:37:47Z")

</div>

I see lots of answers to this error: Plugin installation was unsuccessful due to error "unknown export types injectDefaultVars in plugin shield"

The answer is always fix the versions. ES and Shield version must match ... in my case they do.

[root@ELKhost elasticsearch]# /opt/kibana/bin/kibana plugin --install kibana/shield/2.4.4  
Installing shield  
Attempting to transfer from [https://download.elastic.co/kibana/shield/shield-2.4.4.tar.gz](https://download.elastic.co/kibana/shield/shield-2.4.4.tar.gz)  
Transferring 9726777 bytes....................  
Transfer complete  
Extracting plugin archive  
Extraction complete  
Optimizing and caching browser bundles...  
Plugin installation was unsuccessful due to error "unknown export types injectDefaultVars in plugin shield"  
[root@vhaeceelk elasticsearch]# /opt/kibana/bin/kibana --version  
4.4.0  
[root@vhaeceelk elasticsearch]# /usr/share/elasticsearch/bin/elasticsearch --version  
Version: 2.4.4, Build: fcbb46d/2017-01-03T11:33:16Z, JVM: 1.8.0\_144

Is it a JAVA problem?  
[root@ELKhost elasticsearch]# java -version  
openjdk version "1.8.0\_144"  
OpenJDK Runtime Environment (build 1.8.0\_144-b01)  
OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)

Going to X-PACK is not an option. I know these are old versions, but I have to due to company requirements .

---

<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:** [November 7, 2017, 5:57pm UTC](https://discuss.elastic.co/t/injectdefaultvars-in-plugin-shield-but-the-versions-are-correct/104931/4 "2017-11-07T17:57:04Z")

</div>

Have you tried Kibana 4.4.2?

---

<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 5, 2017, 5:57pm UTC](https://discuss.elastic.co/t/injectdefaultvars-in-plugin-shield-but-the-versions-are-correct/104931/5 "2017-12-05T17:57:10Z")

</div>

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