Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9141

Cannot restore a Hudson config backup to Jenkins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: backup-plugin
    • Labels:
      None
    • Environment:
      Linux
    • Similar Issues:

      Description

      I have made a tar.zip backup using Hudson and I want to restore that backup in to my Jenkins server. I have copied the backup file to the backup folder in Jenkins and when I restore it from the Jenkins UI I get the following error.

      [ INFO] Restore started at [03/23/11 16:27:46]
      [ INFO] Working into /root/.jenkins_restore directory
      [ INFO] A old restore working dir exists, cleaning ...
      [ INFO] Uncompressing archive file...
      org.jvnet.hudson.plugins.backup.utils.compress.ArchiverException: Unable to extract /root/.jenkins/backup/backup_20110321_1509.zip.gz content to /root/.jenkins_restore
      at org.jvnet.hudson.plugins.backup.utils.compress.AbstractUnArchiver.unArchive(AbstractUnArchiver.java:67)
      at org.jvnet.hudson.plugins.backup.utils.RestoreTask.run(RestoreTask.java:94)
      at java.lang.Thread.run(Thread.java:636)
      Caused by: org.codehaus.plexus.archiver.ArchiverException: chmod exit code was: 1
      at org.codehaus.plexus.archiver.util.ArchiveEntryUtils.chmod(ArchiveEntryUtils.java:65)
      at org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.extractFile(AbstractZipUnArchiver.java:257)
      at org.codehaus.plexus.archiver.tar.TarUnArchiver.execute(TarUnArchiver.java:92)
      at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:108)
      at org.jvnet.hudson.plugins.backup.utils.compress.AbstractUnArchiver.unArchive(AbstractUnArchiver.java:62)
      ... 2 more
      [ERROR] Error uncompressing archive : Unable to extract /root/.jenkins/backup/backup_20110321_1509.zip.gz content to /root/.jenkins_restore

        Attachments

          Activity

          Hide
          sarithf Sarith Fernando added a comment -

          All permissions are set properly to all folders too.

          Show
          sarithf Sarith Fernando added a comment - All permissions are set properly to all folders too.
          Hide
          rseguy Romain Seguy added a comment -

          Unassigning myself from this plugin, no time to work in it, sorry.

          Show
          rseguy Romain Seguy added a comment - Unassigning myself from this plugin, no time to work in it, sorry.
          Hide
          johnyhost jan host added a comment - - edited

          I have found a workaround. Put your backup file(tar.gz) into root of your file system ( / ) and setup the path to backup folder as /
          After that you will see options to choose what file you want to use.

          Show
          johnyhost jan host added a comment - - edited I have found a workaround. Put your backup file(tar.gz) into root of your file system ( / ) and setup the path to backup folder as / After that you will see options to choose what file you want to use.
          Hide
          slide_o_mix Alex Earl added a comment -

          Is this still an issue?

          Show
          slide_o_mix Alex Earl added a comment - Is this still an issue?

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sarithf Sarith Fernando
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: