confluence5.1?????7????
Asked by ??:

??I??confluence???????????????,????????![confluence.jpg](/t5/image/serverpage/image-id/131324i0D6E1CC093056C8D/image-size/large?v=v2&px=999 "confluence.jpg")![confluence1.jpg](/t5/image/serverpage/image-id/131323i0343727595EFB982/image-size/large?v=v2&px=999 "confluence1.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)


Answers:
author: Gonchik Tsymzhitov
body: 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.

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


author: Gonchik Tsymzhitov
body: 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.


Tags: confluence-server

server