ES throws an exception about duplicated pluging. Then trying to reinstall x-pack I get the same exception:
/usr/share/elasticsearch # bin/elasticsearch-plugin remove x-pack
Exception in thread "main" java.lang.IllegalStateException: duplicate plugin: - Plugin information:
Name: x-pack-core
Description: Elasticsearch Expanded Pack Plugin - Core
Version: 6.2.2
Native Controller: false
Requires Keystore: false
Extended Plugins: []
* Classname: org.elasticsearch.xpack.core.XPackPlugin
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:355)
at org.elasticsearch.plugins.RemovePluginCommand.execute(RemovePluginCommand.java:89)
at org.elasticsearch.plugins.RemovePluginCommand.execute(RemovePluginCommand.java:67)
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:75)
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)
/usr/share/elasticsearch # bin/elasticsearch-plugin list
x-pack
extensions
x-pack-core
x-pack-deprecation
x-pack-graph
x-pack-logstash
x-pack-ml
x-pack-monitoring
x-pack-security
x-pack-upgrade
x-pack-watcher