Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-4482

Cannot restore backups with cache data

    XMLWordPrintable

Details

    Description

      If you create a backup with the "repository and application caches" flag set, it's unable to be restored on a new instance. The following error is thrown during the restore process:

      ...
      Extracting cache/var/cache/FECRUPlugin/hgfelog/hgFeGenTestData.py (4K)...
      Extracting cache/var/cache/FECRUPlugin/hgfelog/hgfelog_currentRepoTest.py (635B)...
      Replacing existing cache for deleteme.txt...
      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:106)
              at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:39)
      Caused by: java.lang.NullPointerException
              at com.cenqua.fisheye.util.FileUtils.deleteTree(FileUtils.java:30)
              at com.atlassian.crucible.migration.item.FishEyeCacheBackup$1.restore(FishEyeCacheBackup.java:150)
              at com.cenqua.fisheye.ctl.Restore.run(Restore.java:157)
              at com.cenqua.fisheye.ctl.Restore.main(Restore.java:212)
              ... 6 more
      

      To reproduce:

      1. Create a backup with the "repository and application caches" flag set.
      2. Try to restore the backup in a new instance:
        ./fisheyectl.sh restore -f /usr/local/fecru/fecru-2.3.6/backup/backup_2010-08-10_1329.zip -t built-in

      Attachments

        Activity

          People

            mheemskerk Michael Heemskerk (Inactive)
            dhansen@atlassian.com Dylan Hansen [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 2m
                2m