Restore backup fails with ArrayIndexOutOfBound
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Restoring Fisheye backup fails with the following error:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
INFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@bbfa5c: defining beans [org.springframework.aop.config.internalAutoProxyCreator,springContext,dbControlFactory,encryptionProvider,effectiveUserProvider,txTemplateRestore,hostContextAccessorRestore,trustedApplicationsManager,trustedApplicationsAuthenticationController,trustedApplicationsAuthenticationListener,trustedApplicationsUserResolver,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,eventManager,eventPublisher,applicationProperties,salPluginSettingsFactory,fisheyeAccessor,hostComponentProvider,projectManager,projectDataFactory,pluginDirectoryConfiguration,osgiPersistentCache,packageScannerConfiguration,pluginEventManager,osgiContainerManager,pluginStateStore,hostContainer,moduleDescriptorFactory,pluginManager,backup,dataSourceProvider]; root of factory hierarchy
ERROR: problem running command
java.lang.reflect.InvocationTargetException
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.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:98)
at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:41)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at com.cenqua.fisheye.Path.getComponent(Path.java:414)
at com.atlassian.crucible.migration.item.FileBackupItem.list(FileBackupItem.java:55)
at com.atlassian.crucible.migration.item.FishEyeCacheBackup$1.restore(FishEyeCacheBackup.java:209)
at com.cenqua.fisheye.ctl.Restore.run(Restore.java:191)
at com.cenqua.fisheye.ctl.Restore.main(Restore.java:267)
... 6 more
Cause
The backup containing repository and application caches might be too large for Fisheye to restore.
Resolution
Backup the data without repository and applicationcaches
Restore the backup in the new server
Manually transfer the following files to the new server:
FISHEYE_INST/cache
FISHEYE_INST/var/cache
Was this helpful?