Issue
- After upgrading to stack
v4, the portal shows the message "This server has not been activated with Liferay Connected Services" on the login page.
- The build logs show:
build-5278 [liferay-abc-xyz] [dxp] ERROR [fileinstall-/opt/liferay/osgi/modules][LicenseManager:?] Unable to register license
build-5278 [liferay-abc-xyz] java.io.FileNotFoundException: /opt/liferay/data/license/DXPCloudInternal_DigitalEnterpriseUnlimitedEnterpriseWide_enterprise.li (Permission denied)
Environment
- Liferay SaaS stack
v4
Resolution
- Remove the compatibility variables
LCP_BACKUP_VOLUME_UIDandLCP_BACKUP_VOLUME_GIDfrom the LCP.json file of thebackupservice. - On the Cloud user interface, remove the
backupservice from the affected environment. - On the affected environment, do a new deployment with the changes from step 1.
- Restart the
liferayservice.
Additional Information
- Root cause: the /opt/liferay/data folder still uses the
v3'sowner:group(999:999instead ofv4's1000:1000).