Skip to content

node does not start after upgrade to 6.3 with x-pack installed #31465

@immon

Description

@immon

With version 6.3 x-pack is bundled as a module and you do not need to install it as a plugin. For users already using x-pack an upgrade via OS package manager like yum or apt-get does not remove x-pack plugin before installing ES 6.3. This leads to an issue where node does not start and following exception is logged:

[2018-06-15T10:28:26,252][ERROR][o.e.b.Bootstrap ] Exception
java.lang.IllegalStateException: Duplicate key org.elasticsearch.plugins.PluginsService$Bundle@24a783dd
at java.util.stream.Collectors.lambda$throwingMerger$0(Collectors.java:133) ~[?:1.8.0_171]
at java.util.HashMap.merge(HashMap.java:1254) ~[?:1.8.0_171] 

To recover from it one need to:

  • remove x-pack /usr/share/elasticsearch/bin/elasticsearch-plugin remove x-pack
  • append log4j config of x-pack to the main one: cat /etc/elasticsearch/x-pack/log4j2.properties >> /etc/elasticsearch/log4j2.properties
  • move x-pack config files from /etc/elasticsearch/x-pack to /etc/elasticsearch

Can we have an upgrade document updated to explicitly reflect additional steps when upgrading to 6.3? Or it should be handled in post-upgrade script of rpm/deb package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scripts>enhancementTeam:DeliveryMeta label for Delivery team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions