Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

confluence5.1版本升级到7版本报错

王楠
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2021

我咋I升级confluence的时候再导入备份的时候出现异常,一直提示报错信息confluence.jpgconfluence1.jpg

Import failed. Check your server logs for more information. com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: could not resolve property: userName of: com.atlassian.confluence.security.ContentPermission

 

 

2021-02-20 11:06:45,309 ERROR [Long running task: Importing data] [confluence.importexport.xmlimport.DefaultImportProcessor] persist Error while saving object: Imported[com.atlassian.confluence.security.ContentPermission] [Id[id]=4194305, Property[type]=Edit, Property[userName]=liuxiyan, Property[groupName]=, Property[owningSet]=com.atlassian.confluence.security.ContentPermissionSet[Id[id]=4161537], Property[creatorName]=, Property[creationDate]=2020-01-02 11:27:54.000, Property[lastModifierName]=liuxiyan, Property[lastModificationDate]=2020-01-02 11:27:54.000]
-- url: /setup/longrunningtaskxml.action | referer: http://18.16.204.88:8090/setup/setup-restore-local.action | traceId: 3890ef89816caaf9 | userName: anonymous | action: longrunningtaskxml
2021-02-20 11:06:45,344 ERROR [Long running task: Importing data] [confluence.importexport.xmlimport.BackupImporter] importEntities Cannot import the entities:
-- url: /setup/longrunningtaskxml.action | referer: http://18.16.204.88:8090/setup/setup-restore-local.action | traceId: 3890ef89816caaf9 | userName: anonymous | action: longrunningtaskxml
com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: could not resolve property: userName of: com.atlassian.confluence.security.ContentPermission
at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImportInternal(DefaultXmlImporter.java:64)
at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:42)
at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:399)
at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEverything(BackupImporter.java:368)
at com.atlassian.confluence.importexport.xmlimport.FileBackupImporter.importEverything(FileBackupImporter.java:169)
at com.atlassian.confluence.importexport.xmlimport.BackupImporter$1.doInTransactionWithoutResult(BackupImporter.java:260)
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:36)
at com.atlassian.confluence.importexport.xmlimport.RestorePluginStateStoreTransactionCallbackDecorator.doInTransaction(RestorePluginStateStoreTransactionCallbackDecorator.java:47)
at com.atlassian.confluence.importexport.xmlimport.RestoreBandanaValuesTransactionCallbackDecorator.doInTransaction(RestoreBandanaValuesTransactionCallbackDecorator.java:50)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at com.atlassian.confluence.importexport.xmlimport.BackupImporter.doImportInternal(BackupImporter.java:222)
at com.atlassian.confluence.importexport.Importer.doImport(Importer.java:73)
at com.atlassian.confluence.importexport.DefaultImportExportManager.performImportInternal(DefaultImportExportManager.java:118)
at com.atlassian.confluence.importexport.DefaultImportExportManager.doPerformImport(DefaultImportExportManager.java:106)
at com.atlassian.confluence.importexport.DefaultImportExportManager.performImport(DefaultImportExportManager.java:101)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
February 21, 2021

As I see you know exact place of cause:

[Id[id]=4194305,

Property[userName]=liuxiyan, Property[groupName]=, Property[owningSet]=com.atlassian.confluence.security.ContentPermissionSet[Id[id]=4161537],

Property[creatorName]=, Property[creationDate]=2020-01-02 11:27:54.000, Property[lastModifierName]=liuxiyan

 

 

Please, double check the permissions on that content via link.

王楠
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 21, 2021

I can't understand what you said.  Please Can you make it clear? thanks

Gonchik Tsymzhitov
Community Champion
February 22, 2021

So in the log you can find the error,

com.atlassian.confluence.security.ContentPermission

 

which relate to the content with id=4194305.

you can fix via next url 

{wiki_url}/pages/viewpage.action?pageId=4194305

on old system, or you need to dig into xml backup. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events