Trying to install ingest-geoip but java error

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

Can you try to remove those plugins?

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

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. :slight_smile:

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#

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.

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