System Administrator

OSGi cache flush does not reinstall modules

Question

After flushing of bundles-deployed folder and restarting the server, modules do not get installed.

Cause

With the provisioning mechanism introduced with Jahia 8.0.3.0, core module jars are not maintained under /modules, but handled through the provisioning mechanism.

Solution

Starting with Jahia 8.0.3.0, if a flush of the OSGi cache is done ( i.e, deleting contents under bundles-deployed folder), it is also required to rename the provisioning scripts present under [JAHIA_DATA_FOLDER]/patches/provisioning/. After the initial start of Jahia, these scripts would've been renamed with an extension .installed, .success, or .failed. These extensions need to be removed before restarting the server.
So your steps will be
- flush contents of bundles-deployed folder
- remove extensions for the provisioning scripts under [JAHIA_DATA_FOLDER]/patches/provisioning/
- restart Jahia