After installing features, if you encounter server issues or startup failures, you can revert the current configuration by restoring a previous one using either the management console or the command line. The latter is recommended if you cannot start the server.
Use the following steps to check your feature installation history and revert the server back to a previous installation. In this recovery process, some features might get installed and some uninstalled.
Restoring using the management console
- Log in to the management console and select Features from the Configure menu.
- In the Feature Management page, go to the Installation History tab.
- This tab lists the history of provisioning operations performed on the system. For example,
- Click on a configuration to view its details. For example,
Previous configurations can be identified as previous states of the system. It is a set of installed features. When you perform a provisioning operation such as installing/uninstalling of features, a system state/configuration change occurs.
- Verify if the state is where you want to revert to and click Revert.
Restoring using the command line
If you cannot start the server after an unsuccessful feature installation, use the following steps to restore to a previous installation.
- Start the product with
Once the server is started, type the command
A list of previous server states appears. For example,
You can check what features are installed and uninstalled in a given state by entering the following command:
osgi> getInstallationHistory 1376933879416The output gives you details similar to the following:
Decide to which state you want to revert the system and enter the following command:
osgi> revert <timestamp>
osgi> revert 1376933879416
The output will be similar to the following: