cancel
Showing results for 
Search instead for 
Did you mean: 

An authority was not found for admin

trmmnt
Champ on-the-rise
Champ on-the-rise

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?

1 ACCEPTED ANSWER

trmmnt
Champ on-the-rise
Champ on-the-rise

Resolved with setting alfresco_user_store.adminusername.

View answer in original post

3 REPLIES 3

trmmnt
Champ on-the-rise
Champ on-the-rise

Resolved with setting alfresco_user_store.adminusername.

EddieMay
World-Class Innovator
World-Class Innovator

Hi @trmmnt 

Thanks for updating your post - really helpful.

Cheers,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

big
Champ in-the-making
Champ in-the-making

Hello, I'm also having the same problem as you when importing the site, can you tell me more about how to solve it? Thanks