7.2 Patch Rollback

Rollback restores the previous OCLM application wheel and dependency wheel files, then reruns upgrade.sh so the existing virtual environment is reinstalled from those previous artifacts.


BACKUP_DIR=/home/admusr/oclm-patch-backup-TIMESTAMP

sudo systemctl stop oclm-service

sudo rm -f /opt/oclm-service/oclm_service-*.whl
sudo rm -f /opt/oclm-service/wheels/*.whl

sudo cp -p "$BACKUP_DIR"/oclm_service-*.whl /opt/oclm-service/
sudo cp -p "$BACKUP_DIR"/wheels/*.whl /opt/oclm-service/wheels/

sudo chown admusr:admusr   /opt/oclm-service/oclm_service-*.whl   /opt/oclm-service/wheels/*.whl

sudo bash /opt/oclm-service/bin/upgrade.sh
sudo systemctl status --no-pager oclm-service
sudo ss -ltnp | grep ':8989'
sudo tail -n 200 /var/log/oclm.log

If rollback does not restore expected service behavior, restore the VM snapshot taken before the patch or contact support.