java.io.IOException: Could not create backup directory. Backup cannot be performed.

Jenkins JIRA | Iain Buclaw | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When the thinBackup is configured to backup to a directory outside of Jenkins home (/var/lib/jenkins) causes the backup to fail with a a wrong error, as per below log dump. Checked permissions, and the jenkins user does have write access to the directory. Mounting the directory to ie: /var/lib/jenkins/backups using --bind, and changing the backup directory from /var/backups/jenkins to /var/lib/jenkins/backups and the backup succeeds. --- 13-Mar-2014 17:24:40 org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink doBackupManual INFO: Starting manual backup. 13-Mar-2014 17:24:40 org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork backupNow WARNING: Do not wait until jenkins/hudson is idle to perform backup. This could cause corrupt backups. 13-Mar-2014 17:24:40 org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup <init> INFO: No previous full backup found, thus creating one. 13-Mar-2014 17:24:40 org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup backup SEVERE: Could not create backup directory. Backup cannot be performed. 13-Mar-2014 17:24:40 org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork backupNow SEVERE: Cannot perform a backup. Please be sure jenkins/hudson has write privileges in the configured backup path 'var/backups/jenkins'. java.io.IOException: Could not create backup directory. Backup cannot be performed. at org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup.backup(HudsonBackup.java:137) at org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork.backupNow(ThinBackupPeriodicWork.java:87) at org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink$1.execute(ThinBackupMgmtLink.java:76) at org.jvnet.hudson.plugins.thinbackup.hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:53) at java.lang.Thread.run(Thread.java:679) 13-Mar-2014 17:24:57 org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink doBackupManual INFO: Starting manual backup. 13-Mar-2014 17:24:57 org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork backupNow WARNING: Do not wait until jenkins/hudson is idle to perform backup. This could cause corrupt backups. 13-Mar-2014 17:24:57 org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup <init> INFO: No previous full backup found, thus creating one. 13-Mar-2014 17:24:57 org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup backup SEVERE: Could not create backup directory. Backup cannot be performed. 13-Mar-2014 17:24:57 org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork backupNow SEVERE: Cannot perform a backup. Please be sure jenkins/hudson has write privileges in the configured backup path '/var/backups/jenkins'. java.io.IOException: Could not create backup directory. Backup cannot be performed. at org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup.backup(HudsonBackup.java:137) at org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork.backupNow(ThinBackupPeriodicWork.java:87) at org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink$1.execute(ThinBackupMgmtLink.java:76) at org.jvnet.hudson.plugins.thinbackup.hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:53) at java.lang.Thread.run(Thread.java:679)

    Jenkins JIRA | 3 years ago | Iain Buclaw
    java.io.IOException: Could not create backup directory. Backup cannot be performed.
  2. 0

    When the thinBackup is configured to backup to a directory outside of Jenkins home (/var/lib/jenkins) causes the backup to fail with a a wrong error, as per below log dump. Checked permissions, and the jenkins user does have write access to the directory. Mounting the directory to ie: /var/lib/jenkins/backups using --bind, and changing the backup directory from /var/backups/jenkins to /var/lib/jenkins/backups and the backup succeeds. --- 13-Mar-2014 17:24:40 org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink doBackupManual INFO: Starting manual backup. 13-Mar-2014 17:24:40 org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork backupNow WARNING: Do not wait until jenkins/hudson is idle to perform backup. This could cause corrupt backups. 13-Mar-2014 17:24:40 org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup <init> INFO: No previous full backup found, thus creating one. 13-Mar-2014 17:24:40 org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup backup SEVERE: Could not create backup directory. Backup cannot be performed. 13-Mar-2014 17:24:40 org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork backupNow SEVERE: Cannot perform a backup. Please be sure jenkins/hudson has write privileges in the configured backup path 'var/backups/jenkins'. java.io.IOException: Could not create backup directory. Backup cannot be performed. at org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup.backup(HudsonBackup.java:137) at org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork.backupNow(ThinBackupPeriodicWork.java:87) at org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink$1.execute(ThinBackupMgmtLink.java:76) at org.jvnet.hudson.plugins.thinbackup.hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:53) at java.lang.Thread.run(Thread.java:679) 13-Mar-2014 17:24:57 org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink doBackupManual INFO: Starting manual backup. 13-Mar-2014 17:24:57 org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork backupNow WARNING: Do not wait until jenkins/hudson is idle to perform backup. This could cause corrupt backups. 13-Mar-2014 17:24:57 org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup <init> INFO: No previous full backup found, thus creating one. 13-Mar-2014 17:24:57 org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup backup SEVERE: Could not create backup directory. Backup cannot be performed. 13-Mar-2014 17:24:57 org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork backupNow SEVERE: Cannot perform a backup. Please be sure jenkins/hudson has write privileges in the configured backup path '/var/backups/jenkins'. java.io.IOException: Could not create backup directory. Backup cannot be performed. at org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup.backup(HudsonBackup.java:137) at org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork.backupNow(ThinBackupPeriodicWork.java:87) at org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink$1.execute(ThinBackupMgmtLink.java:76) at org.jvnet.hudson.plugins.thinbackup.hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:53) at java.lang.Thread.run(Thread.java:679)

    Jenkins JIRA | 3 years ago | Iain Buclaw
    java.io.IOException: Could not create backup directory. Backup cannot be performed.
  3. 0

    ADB Connection Error

    Stack Overflow | 4 years ago | Raveesh Lawrance
    java.io.IOException: An existing connection was forcibly closed by the remote host at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(Unknown Source) at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.read(Unknown Source) at sun.nio.ch.SocketChannelImpl.read(Unknown Source) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:395) at com.android.ddmlib.Device.executeShellCommand(Device.java:462) at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:110)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.IllegalArgumentException: URI scheme is not "file"

    java-forums.org | 8 months ago
    java.io.IOException: Server returned HTTP response code: 403 for URL: at sun.net. at slideshowapplet.SlideshowApplet.doListofImagefiles (SlideshowApplet.java:461) at slideshowapplet.SlideshowApplet.init(SlideshowAppl et.java:180) at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Plugin2Manager.java:1658)
  6. 0

    java.lang.IllegalArgumentException: URI scheme is not "file"

    java-forums.org | 8 months ago
    java.io.IOException: Server returned HTTP response code: 403 for URL: at sun.net. at slideshowapplet.SlideshowApplet.doListofImagefiles (SlideshowApplet.java:484) at slideshowapplet.SlideshowApplet.init(SlideshowAppl et.java:182) at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Plugin2Manager.java:1658)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Could not create backup directory. Backup cannot be performed.

      at org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup.backup()
    2. org.jvnet.hudson
      AsyncPeriodicWork$1.run
      1. org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup.backup(HudsonBackup.java:137)
      2. org.jvnet.hudson.plugins.thinbackup.ThinBackupPeriodicWork.backupNow(ThinBackupPeriodicWork.java:87)
      3. org.jvnet.hudson.plugins.thinbackup.ThinBackupMgmtLink$1.execute(ThinBackupMgmtLink.java:76)
      4. org.jvnet.hudson.plugins.thinbackup.hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:53)
      4 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:679)
      1 frame