I was upgrading some older instance of Alfresco 5.0.d to version 5.2:
1. exported database of 5.0.d, configuration backup (alfresco-global.properties) etc.
2. installed 5.2
3. applied previous configuration
4. imported data into new database of 5.2
At the startup I got the following exception message:
2020-09-16 23:57:50,158 INFO [org.alfresco.repo.admin.patch.PatchExecuter] [localhost-startStop-1] Applying patch 'patch.alfrescoModelAdministrators' (Adds the 'GROUP_ALFRESCO_MODEL_ADMINISTRATORS' group).
2020-09-16 23:57:50,888 ERROR [org.alfresco.repo.admin.patch.PatchExecuter] [localhost-startStop-1] 08160002 org.alfresco.repo.security.authority.UnknownAuthorityException: 08160001 An authority was not found for admin
at org.alfresco.repo.security.authority.AuthorityDAOImpl.addAuthority(AuthorityDAOImpl.java:353)
at org.alfresco.repo.security.authority.AuthorityServiceImpl.addAuthority(AuthorityServiceImpl.java:487)
at org.alfresco.repo.security.authority.AuthorityServiceImpl.addAuthority(AuthorityServiceImpl.java:479)
at org.alfresco.repo.admin.patch.impl.AddGroupAuthorityPatch.applyInternal(AddGroupAuthorityPatch.java:92)
at org.alfresco.repo.admin.patch.AbstractPatch$1.execute(AbstractPatch.java:455)
at org.alfresco.repo.admin.patch.AbstractPatch$1.execute(AbstractPatch.java:1)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
There is no authority admin in the alf_authority table which relates to the exception message. It seems that there was no admin user in the 5.0.d.
Any suggestions?