It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
In the log file:
2014-04-24 20:10:26,371 ERROR [Long running task: Importing data] [confluence.importexport.actions.ImportLongRunningTask] runInternal Failure during import -- referer: http://localhost:1990/confluence/admin/backup.action | url: /confluence/admin/restore-local-file.action | userName: admin | action: restore-local-file java.lang.IllegalArgumentException: duplicate key: class=class com.atlassian.confluence.labels.Label,id=1212417,<null> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115) at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72) at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:221) at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:207) at com.google.common.collect.RegularImmutableBiMap.<init>(RegularImmutableBiMap.java:39) at com.google.common.collect.ImmutableBiMap$Builder.build(ImmutableBiMap.java:176) at com.atlassian.confluence.importexport.DefaultImmutableImportProcessorSummary.newInstance(DefaultImmutableImportProcessorSummary.java:99) at com.atlassian.confluence.importexport.DefaultImportExportManager.performImport(DefaultImportExportManager.java:73) 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 $Proxy77.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.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)
There are duplicate entries in the CONTENT_LABEL table (on labelid + contentid).
I have experienced the same thing. Is there any other problems than the favorites thing? Does the import stop when the error occurs or does it continue until the end?
After further investigation I found out it depends on order of elements in the export XML file. Order is somewhat random. If you're unlucky you end up with objects of class ConfluenceUserImpl being after objects of class Label. Space import fails in that case (if you have a page favourited by two users).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Rp Subhub,
Thanks for reporting your findings on this. I found it while doing tests on this same bug and guided me to the cause and a workaround
There is now a bug for this behaviour at https://jira.atlassian.com/browse/CONF-36348
Thanks again!
Mauro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.