# Trying to install ingest-geoip but java error

**URL:** <https://discuss.elastic.co/t/trying-to-install-ingest-geoip-but-java-error/141556>\
**Category:** Elasticsearch\
**Created:** [July 25, 2018, 12:07pm UTC](https://discuss.elastic.co/t/trying-to-install-ingest-geoip-but-java-error/141556 "2018-07-25T12:07:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesl](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jamesl](https://discuss.elastic.co/u/jamesl)\
**Post date:** [July 25, 2018, 12:07pm UTC](https://discuss.elastic.co/t/trying-to-install-ingest-geoip-but-java-error/141556/1 "2018-07-25T12:07:11Z")

</div>

Hi. My Elastic node hung as I was installing the ingest-geoip plugin.  
Now when I try to run it again it comes up with the below error message.  
ingest-user-agent does the same.  
Is there anyway I can fix this up without re-installing Elasticsearch and/or Java?  
Thanks.

```
  root@els03:~# time sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-geoip
    -> Downloading ingest-geoip from elastic
    [=================================================] 100%   
    Exception in thread "main" java.lang.IllegalStateException: duplicate plugin: - Plugin information:
    Name: ingest-geoip
    Description: Ingest processor that uses looksup geo data based on ip adresses using the Maxmind geo database
    Version: 6.3.2
    Elasticsearch Version: 6.3.2
    Java Version: 1.8
    Native Controller: false
    Extended Plugins: []
     * Classname: org.elasticsearch.ingest.geoip.IngestGeoIpPlugin
    	at org.elasticsearch.plugins.PluginsService.readPluginBundle(PluginsService.java:491)
    	at org.elasticsearch.plugins.PluginsService.findBundles(PluginsService.java:463)
    	at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:454)
    	at org.elasticsearch.plugins.InstallPluginCommand.jarHellCheck(InstallPluginCommand.java:618)
    	at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:606)
    	at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:717)
    	at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:641)
    	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:225)
    	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:210)
    	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
    	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
    	at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:79)
    	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
    	at org.elasticsearch.cli.Command.main(Command.java:90)
    	at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:48)

    real	0m12.780s
    user	0m3.440s
    sys	0m0.496s
    root@els03:~# 

root@els03:~# time sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-user-agent
-> Downloading ingest-user-agent from elastic
[=================================================] 100%   
Exception in thread "main" java.lang.IllegalStateException: duplicate plugin: - Plugin information:
Name: ingest-user-agent
Description: Ingest processor that extracts information from a user agent
Version: 6.3.2
Elasticsearch Version: 6.3.2
Java Version: 1.8
Native Controller: false
Extended Plugins: []
 * Classname: org.elasticsearch.ingest.useragent.IngestUserAgentPlugin
	at org.elasticsearch.plugins.PluginsService.readPluginBundle(PluginsService.java:491)
	at org.elasticsearch.plugins.PluginsService.findBundles(PluginsService.java:463)
	at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:454)
	at org.elasticsearch.plugins.InstallPluginCommand.jarHellCheck(InstallPluginCommand.java:618)
	at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:606)
	at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:717)
	at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:641)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:225)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:210)
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
	at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:79)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
	at org.elasticsearch.cli.Command.main(Command.java:90)
	at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:48)

real	0m3.494s
user	0m1.396s
sys	0m0.084s
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 25, 2018, 12:26pm UTC](https://discuss.elastic.co/t/trying-to-install-ingest-geoip-but-java-error/141556/2 "2018-07-25T12:26:10Z")

</div>

Can you try to remove those plugins?

```auto
/usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-geoip

```

---

<div class="post-metadata">

**Author:** ![jamesl](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jamesl](https://discuss.elastic.co/u/jamesl)\
**Post date:** [July 25, 2018, 12:45pm UTC](https://discuss.elastic.co/t/trying-to-install-ingest-geoip-but-java-error/141556/3 "2018-07-25T12:45:48Z")

</div>

I found I had these kind of directories in my /usr/share/elasticsearch/plugins:  
.installing-607788898439645650  
hs\_err\_pid30000.log

I moved the HS file out to another directory and then restarted elasticsearch then ran the above command... gone. 🙂

root@els04:/usr/share/elasticsearch/plugins# ls -la  
total 16  
drwxr-xr-x 4 elasticsearch elasticsearch 4096 Jul 25 22:43 .  
drwxr-xr-x 6 root root 4096 Jul 25 18:09 ..  
drwxr-xr-x 2 root root 4096 Jul 25 22:43 ingest-geoip  
drwxr-xr-x 2 root root 4096 Jul 25 22:43 ingest-user-agent  
root@els04:/usr/share/elasticsearch/plugins# /usr/share/elasticsearch/bin/elasticsearch-plugin list  
ingest-geoip  
ingest-user-agent  
root@els04:/usr/share/elasticsearch/plugins#

---

<div class="post-metadata">

**Author:** ![Shree](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@Shree](https://discuss.elastic.co/u/Shree)\
**Post date:** [August 2, 2018, 11:51am UTC](https://discuss.elastic.co/t/trying-to-install-ingest-geoip-but-java-error/141556/4 "2018-08-02T11:51:53Z")

</div>

Hi

I am having the same problem but inside `/usr/share/elasticsearch/plugins# ls -la` this I couldn't see any ingest-geoip  
Here is the error:

```
root@localhost:/usr/share/elasticsearch# sudo bin/elasticsearch-plugin install ingest-geoip
-> Downloading ingest-geoip from elastic
[=================================================] 100%?? 
Exception in thread "main" java.lang.IllegalStateException: duplicate plugin: - Plugin information:
Name: ingest-geoip
Description: Ingest processor that uses looksup geo data based on ip adresses using the Maxmind geo database
Version: 6.3.2
Elasticsearch Version: 6.3.2
Java Version: 1.8
Native Controller: false
Extended Plugins: []
 * Classname: org.elasticsearch.ingest.geoip.IngestGeoIpPlugin
	at org.elasticsearch.plugins.PluginsService.readPluginBundle(PluginsService.java:491)
	at org.elasticsearch.plugins.PluginsService.findBundles(PluginsService.java:463)
	at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:454)
	at org.elasticsearch.plugins.InstallPluginCommand.jarHellCheck(InstallPluginCommand.java:618)
	at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:606)
	at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:717)
	at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:641)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:225)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:210)
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
	at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:79)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
	at org.elasticsearch.cli.Command.main(Command.java:90)
	at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:48)

```

Please help me with this.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 2, 2018, 12:27pm UTC](https://discuss.elastic.co/t/trying-to-install-ingest-geoip-but-java-error/141556/5 "2018-08-02T12:27:03Z")

</div>

@Shree You should better open a new discussion about your problem.  
And you can link from your thread to this post if you wish.

---

<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:** [August 30, 2018, 12:27pm UTC](https://discuss.elastic.co/t/trying-to-install-ingest-geoip-but-java-error/141556/6 "2018-08-30T12:27:17Z")

</div>

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