Confluence restore xml backup error
Asked by TheXDSummsi:

Hi everyone,

My confluence broke down and now i want to restore it from a backup but when i try to import it stops after about 5 mins.

Heres the log output:

2019-12-18 15:09:16,426 WARN \[Long running task: Importing data\] \[activeobjects.confluence.backup.LoggingRestoreProgressMonitor\] endRestore Completed restoring Active Objects Backup.  
-- url: /longrunningtaskxml.action \| referer: http://localhost:8090/admin/restore-local-file.action \| traceId: e26ba57d17539c95 \| userName: admin \| action: longrunningtaskxml  
2019-12-18 15:09:16,909 ERROR \[Long running task: Importing data\] \[atlassian.confluence.importexport.KeyInitPostImportTask\] execute Problem when init Confluence key after a site import  
-- url: /longrunningtaskxml.action \| referer: http://localhost:8090/admin/restore-local-file.action \| traceId: e26ba57d17539c95 \| userName: admin \| action: longrunningtaskxml  
2019-12-18 15:09:16,962 WARN \[Caesium-1-1\] \[impl.schedule.caesium.JobRunnerWrapper\] runJob Scheduled job LaasPerformanceLoggingJob#LaasPerformanceLoggingJob completed unsuccessfully with response JobRunnerResponse\[runOutcome=ABORTED,message='LaaS performance logging is turned off'\]  
-- referer: http://localhost:8090/setup/setupadministrator-start.action \| url: /setup/finishsetup.action \| traceId: 54f4e9081b40d06f \| userName: anonymous \| action: finishsetup

2019-12-18 15:09:17,802 WARN \[Long running task: Importing data\] \[confluence.impl.hibernate.ConfluenceHibernateTransactionManager\] doRollback Performing rollback. Transactions:  
-\>\[com.atlassian.confluence.importexport.DefaultImportExportManager.performImport\]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1494483727)  
Showing 10 last transactions at this level out of 31 in total:  
\[null\]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #1709936683)  
\[null\]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #673371992)  
\[null\]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #2019264370)  
\[null\]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #991370295)  
\[null\]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #878474822)  
\[null\]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #122614118)  
\[null\]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #1544711702)  
\[com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJobDao.findByJobRunnerKey\]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #216017081)  
\[com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJobDao.delete\]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #1235367936)  
\[com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJobDao.delete\]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #1551715473)  
-- url: /longrunningtaskxml.action \| referer: http://localhost:8090/admin/restore-local-file.action \| traceId: e26ba57d17539c95 \| userName: admin \| action: longrunningtaskxml  
2019-12-18 15:09:17,927 ERROR \[Long running task: Importing data\] \[springframework.transaction.interceptor.TransactionInterceptor\] completeTransactionAfterThrowing Application exception overridden by commit exception  
-- url: /longrunningtaskxml.action \| referer: http://localhost:8090/admin/restore-local-file.action \| traceId: e26ba57d17539c95 \| userName: admin \| action: longrunningtaskxml  
com.atlassian.confluence.importexport.ImportExportException: java.lang.NullPointerException  
at com.atlassian.confluence.importexport.KeyInitPostImportTask.execute(KeyInitPostImportTask.java:25)  
at com.atlassian.confluence.importexport.Importer.doImport(Importer.java:82)  
at com.atlassian.confluence.importexport.DefaultImportExportManager.performImportInternal(DefaultImportExportManager.java:131)  
at com.atlassian.confluence.importexport.DefaultImportExportManager.doPerformImport(DefaultImportExportManager.java:119)  
at com.atlassian.confluence.importexport.DefaultImportExportManager.performImport(DefaultImportExportManager.java:114)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)  
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)  
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)  
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)  
at com.sun.proxy.$Proxy216.performImport(Unknown Source)  
at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:58)  
at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:26)  
at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:52)  
at com.atlassian.confluence.impl.util.concurrent.ConfluenceExecutors$ThreadLocalContextTaskWrapper.lambda$wrap$1(ConfluenceExecutors.java:90)  
at com.atlassian.confluence.vcache.VCacheRequestContextOperations.lambda$doInRequestContext$0(VCacheRequestContextOperations.java:50)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:87)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:71)  
at com.atlassian.confluence.vcache.VCacheRequestContextOperations.doInRequestContext(VCacheRequestContextOperations.java:49)  
at com.atlassian.confluence.vcache.VCacheRequestContextOperations.lambda$withRequestContext$2(VCacheRequestContextOperations.java:66)  
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at java.lang.Thread.run(Thread.java:748)  
Caused by: java.lang.NullPointerException  
at java.security.MessageDigest.update(MessageDigest.java:335)  
at java.security.MessageDigest.digest(MessageDigest.java:410)  
at org.apache.commons.codec.digest.DigestUtils.md5(DigestUtils.java:351)  
at org.apache.commons.codec.digest.DigestUtils.md5(DigestUtils.java:376)  
at com.atlassian.confluence.security.trust.DefaultCurrentApplicationIdProvider.getAliasForSid(DefaultCurrentApplicationIdProvider.java:33)  
at com.atlassian.confluence.security.trust.DefaultCurrentApplicationIdProvider.getCurrentApplicationId(DefaultCurrentApplicationIdProvider.java:28)  
at com.atlassian.confluence.security.trust.DefaultTrustedApplicationsManager.getCurrentApplication(DefaultTrustedApplicationsManager.java:157)  
at com.atlassian.confluence.security.trust.DefaultTrustedApplicationsManager.initConfluenceKey(DefaultTrustedApplicationsManager.java:167)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)  
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)  
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)  
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)  
at com.sun.proxy.$Proxy239.initConfluenceKey(Unknown Source)  
at com.atlassian.confluence.importexport.KeyInitPostImportTask.execute(KeyInitPostImportTask.java:22)  
... 31 more  
2019-12-18 15:09:17,927 ERROR \[Long running task: Importing data\] \[confluence.importexport.actions.ImportLongRunningTask\] runInternal Failure during import  
-- url: /longrunningtaskxml.action \| referer: http://localhost:8090/admin/restore-local-file.action \| traceId: e26ba57d17539c95 \| userName: admin \| action: longrunningtaskxml  
org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only  
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:728)  
at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)  
at com.sun.proxy.$Proxy150.commit(Unknown Source)  
at org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:556)  
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:286)  
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)  
at com.sun.proxy.$Proxy216.performImport(Unknown Source)  
at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:58)  
at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:26)  
at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:52)  
at com.atlassian.confluence.impl.util.concurrent.ConfluenceExecutors$ThreadLocalContextTaskWrapper.lambda$wrap$1(ConfluenceExecutors.java:90)  
at com.atlassian.confluence.vcache.VCacheRequestContextOperations.lambda$doInRequestContext$0(VCacheRequestContextOperations.java:50)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:87)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:71)  
at com.atlassian.confluence.vcache.VCacheRequestContextOperations.doInRequestContext(VCacheRequestContextOperations.java:49)  
at com.atlassian.confluence.vcache.VCacheRequestContextOperations.lambda$withRequestContext$2(VCacheRequestContextOperations.java:66)  
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at java.lang.Thread.run(Thread.java:748)  
2019-12-18 15:09:17,928 WARN \[Long running task: Importing data\] \[confluence.util.profiling.DefaultActivityMonitor\] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1576681470916, threadId=2015, threadName='Long running task: Importing data', userId='', type='long-running-task', summary='Importing data'}  
-- url: /longrunningtaskxml.action \| referer: http://localhost:8090/admin/restore-local-file.action \| traceId: e26ba57d17539c95 \| userName: admin \| action: longrunningtaskxml  
2019-12-18 15:09:18,048 WARN \[HealthCheckWatchdog:thread-7\] \[troubleshooting.healthcheck.concurrent.SupportHealthCheckTask\] healthCheckError Unable to complete execution of health check Collaborative Editing Mode due to an exception  
-- url: /setup/finishsetup.action \| traceId: 54f4e9081b40d06f \| userName: anonymous \| referer: http://localhost:8090/setup/setupadministrator-start.action \| action: finishsetup  
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Base URL misconfigured: \<null\>  
at java.util.concurrent.FutureTask.report(FutureTask.java:122)  
at java.util.concurrent.FutureTask.get(FutureTask.java:206)  
at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckTask.getFutureWithTimeout(SupportHealthCheckTask.java:88)  
at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckTask.lambda$runAsync$0(SupportHealthCheckTask.java:68)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at java.lang.Thread.run(Thread.java:748)  
Caused by: java.lang.IllegalStateException: Base URL misconfigured: \<null\>  
at com.atlassian.confluence.api.impl.sal.ConfluenceApplicationProperties.getCanonicalContextPath(ConfluenceApplicationProperties.java:94)  
at com.atlassian.fugue.Option$2.fold(Option.java:373)  
at com.atlassian.fugue.Option.getOrElse(Option.java:207)  
at com.atlassian.confluence.api.impl.sal.ConfluenceApplicationProperties.getBaseUrl(ConfluenceApplicationProperties.java:58)  
at sun.reflect.GeneratedMethodAccessor878.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)  
at com.sun.proxy.$Proxy60.getBaseUrl(Unknown Source)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)  
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)  
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)  
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)  
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)  
at com.sun.proxy.$Proxy2802.getBaseUrl(Unknown Source)  
at com.atlassian.troubleshooting.healthcheck.SupportHealthStatusBuilder.getHelpPathUrl(SupportHealthStatusBuilder.java:114)  
at com.atlassian.troubleshooting.healthcheck.SupportHealthStatusBuilder.buildStatus(SupportHealthStatusBuilder.java:135)  
at com.atlassian.troubleshooting.healthcheck.SupportHealthStatusBuilder.ok(SupportHealthStatusBuilder.java:63)  
at com.atlassian.troubleshooting.confluence.healthcheck.support.CollabEditingModeSupportHealthCheck.check(CollabEditingModeSupportHealthCheck.java:50)  
at com.atlassian.troubleshooting.healthcheck.impl.PluginSuppliedSupportHealthCheck.check(PluginSuppliedSupportHealthCheck.java:49)  
... 4 more  
Caused by: java.net.MalformedURLException  
at java.net.URL.\<init\>(URL.java:627)  
at java.net.URL.\<init\>(URL.java:490)  
at java.net.URL.\<init\>(URL.java:439)  
at com.atlassian.confluence.api.impl.sal.ConfluenceApplicationProperties.getCanonicalContextPath(ConfluenceApplicationProperties.java:92)  
... 38 more  
Caused by: java.lang.NullPointerException  
at java.net.URL.\<init\>(URL.java:532)  
... 41 more

Does anyone has an idea?

Thx :)


Answers:
author: Gonchik Tsymzhitov
body: Looks like that one

<https://jira.atlassian.com/browse/CONFSERVER-58556>


Tags: backup

new-to-confluence

restore