Details
-
Bug
-
Resolution: Fixed
-
Medium
-
7
-
Severity 2 - Major
-
Description
When importing, the following message is displayed:
Import failed. Check your server logs for more information. null
or
Import failed. Check your server logs for more information. User [ sysadmin] does not have the required privileges.
Affects:
- Exports from OnDemand Confluence + Jira with new User Management enabled using "Backup Manager" section.
- Importing to OnDemand
- Maybe another exports as well
Steps to reproduce:
- Do a Confluence export from an OnDemand instance with the new User Management enabled using "Backup Manager"
- Import to another instance using "Site Import"
The error logged:
... 2014-04-02 12:03:36,803 INFO [Long running task: Importing data] [confluenceimporter.procesors.post.UserPostImportTask] updateGroupMemberships Adding user andrewd to group balsamiq-mockups-editors 2014-04-02 12:03:36,894 INFO [Long running task: Importing data] [confluenceimporter.procesors.post.UserPostImportTask] updateGroupMemberships Adding user stevew to group _licensed-confluence 2014-04-02 12:03:36,908 INFO [Long running task: Importing data] [atlassian.confluence.importexport.Importer] doImport Running post-import attempt tasks 2014-04-02 12:03:36,908 INFO [Long running task: Importing data] [confluence.importexport.xmlimport.BackupImporter] postImportAndCleanUp Restarting the scheduler 2014-04-02 12:03:36,908 INFO [Long running task: Importing data] [confluence.importexport.xmlimport.BackupImporter] postImportAndCleanUp The scheduler was successfully restarted 2014-04-02 12:03:36,909 INFO [Long running task: Importing data] [confluence.importexport.xmlimport.FileBackupImporter] postImportAndCleanUp Deleting /data/jirastudio/confluence/home/temp/import_04022014_120248 2014-04-02 12:03:37,700 INFO [Long running task: Importing data] [atlassian.confluence.importexport.Importer] doImport Finished running the post-import tasks 2014-04-02 12:03:37,708 ERROR [Long running task: Importing data] [confluence.importexport.actions.ImportLongRunningTask] runInternal Failure during import -- referer: https://instance.atlassian.net/wiki/admin/import/importconfluencesite.action | url: /wiki/admin/import/doimportconfluencesite.action | userName: sysadmin | action: doimportconfluencesite com.atlassian.confluence.user.UserManagementOperationFailedException at com.atlassian.confluence.user.DefaultUserAccessor.addMembership(DefaultUserAccessor.java:187) at bucket.user.DefaultUserAccessor.addMembership(DefaultUserAccessor.java:488) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy82.addMembership(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at $Proxy208.addMembership(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy1946.addMembership(Unknown Source) at com.atlassian.ondemand.confluenceimporter.procesors.post.UserPostImportTask.updateGroupMemberships(UserPostImportTask.java:219) at com.atlassian.ondemand.confluenceimporter.procesors.post.UserPostImportTask.doExecute(UserPostImportTask.java:125) at com.atlassian.ondemand.confluenceimporter.procesors.post.AbstractPostImportTask$1.call(AbstractPostImportTask.java:25) at com.atlassian.ondemand.confluenceimporter.procesors.post.AbstractPostImportTask$1.call(AbstractPostImportTask.java:21) at com.atlassian.ondemand.confluenceimporter.util.SysadminImpersonatorImpl.execute(SysadminImpersonatorImpl.java:43) at com.atlassian.ondemand.confluenceimporter.procesors.post.AbstractPostImportTask.execute(AbstractPostImportTask.java:20) at com.atlassian.confluence.importexport.Importer.doImport(Importer.java:86) at com.atlassian.confluence.importexport.DefaultImportExportManager.performImportInternal(DefaultImportExportManager.java:82) at com.atlassian.confluence.importexport.DefaultImportExportManager.performImport(DefaultImportExportManager.java:72) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy124.performImport(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at $Proxy390.performImport(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at $Proxy390.performImport(Unknown Source) at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:88) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:26) at com.atlassian.ondemand.confluenceimporter.service.importer.OnDemandImportLongRunningTask.runInternal(OnDemandImportLongRunningTask.java:174) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:26) at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:35) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) 2014-04-02 12:03:38,365 INFO [Long running task: Importing data] [confluenceimporter.service.importer.OnDemandImportLongRunningTask] runInternal Import has finished running. isSuccessful=false, status=Import failed. Check your server logs for more information. null, elapsedTime=49824 2014-04-02 12:03:38,366 INFO [Long running task: Importing data] [confluenceimporter.service.importer.CleanUpManager] cleanUpInstance Cleaning up the instance ...
Problem:
- The _licensed-confluence users memberships are exported and cause problems when importing.
Workaround:
- Edit the file entities.xml inside the backup and remove "_" from "_licensed-confluence" 2 appearances (make sure to re-zip placing files in the root of the zip) and import again.
Note: This may also occur for the "atlassian-addons" group. The workaround is the same (remove the dash from both instances of the group name).