Unable to start Elasticsearch - java.lang.IllegalStateException: Duplicate key org.elasticsearch.plugins.PluginsService$Bundle@e3623fe

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Some thoughts:

  • You should not be connected as root but as elasticsearch user.
  • The documentation says to run:
sudo bin/elasticsearch-plugin install ingest-user-agent

May be you did not follow from the start how to properly install elasticsearch? Which package did you install?