Issue
- The Admin is unable to impersonate certain user with the following error:
NoSuchGroupException: No Group exists with the key {companyId=20155, classNameId=20005, classPK=20555}
Environment
- Liferay Portal 6.2
Resolution
One possible reason for this error is because the user's group record is missing in thegroup_
table in the database (data corruption). For the root cause of the data corruption issue, you may need to further check the database log to see when and why the record was missing.
Besides that, the missing record could be added back by verifying users. Refer to the following steps:
- Add the above properties into portal-ext.properties and restart the server.
verify.processes=com.liferay.portal.verify.VerifyUser
verify.frequency=-1
2. The following INFO will be printed in the log:
06:56:07,164 INFO [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyUser
3. Then Admin user should be able to impersonate this user.