Restore backup fails with ArrayIndexOutOfBound

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Restoring Fisheye backup fails with the following error:

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

  1. Backup the data without repository and application caches
  2. Restore the backup in the new server
  3. Manually transfer the following files to the new server:
    • FISHEYE_INST/cache
    • FISHEYE_INST/var/cache
Last modified on Jul 31, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.