Issue
- I'm having issues reinstalling X-Pack Security
- How do I reinstall X-Pack Security?
Environment
- DXP 7.2
- DXP 7.1
- DXP 7.0 + Fix Pack 54 onwards (de-54)
Resolution
To Install
- Add Liferay Connector to X-Pack Security [Elastic Stack 6.x].lpkg to deploy folder here: ${liferay.home/deploy}
- Start Server and load to ready state
(Log Output: The portal instance needs to be restarted to complete the installation)
- Restart Server to complete X-Pack Security installation
- Navigate to Control Panel > Configuration > System Settings > Search: X-Pack
-
Go to Control Panel > Apps > App Manager > Search term: x-pack
Status: Active (see below)
To Reinstall
- Inside App Manager, select Uninstall from the options button (3 dots)

We now see Status: Uninstalled (below)

Setting the Status to 'Uninstalled' will cause an entry to be populated in the Bundle Blacklist
This can be verified at this location: Control Panel > Configuration > System Settings > (Search term: Blacklist) > Module Container > Bundle Blacklist
com.liferay.portal.search.elasticsearch6.xpack.security.impl
- Shutdown Server
- Remove Liferay Connector to X-Pack Security [Elastic Stack 6.x] - Impl.lpkg from ${liferay.home}/osgi/marketplace
- Delete the state folder from ${liferay.home/osgi/state}
- Restart Server
- Delete entry com.liferay.portal.search.elasticsearch6.xpack.security.impl from Bundle Blacklist and press Update
- Restart Server (X-Pack is now removed)
- Redeploy com.liferay.portal.search.elasticsearch6.xpack.security.impl in ${liferay.home}/osgi/marketplace
(Log Output: INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:261] Processing Liferay Connector to X-Pack Security [Elastic Stack 6.x].lpkg) - Restart Server to complete installation process