Been looking further into this as like i said before 1.50 has been working fine for a long time, just though i would upgrade to the latest version.
This is what i get in the logs with 1.6.2:
Sep 11, 2012 9:06:43 AM 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
{0}
.
java.io.FileNotFoundException: /home/jenkins/.jenkins/users/��yvind Harboe (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:669)
at org.apache.commons.io.FileUtils.doCopyDirectory(FileUtils.java:929)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:887)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:814)
at org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup.backupRootFolder(HudsonBackup.java:292)
at org.jvnet.hudson.plugins.thinbackup.backup.HudsonBackup.backup(HudsonBackup.java:136)
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:54)
at java.lang.Thread.run(Thread.java:662)
The user name in question is encoded as utf8, if i remove the user from the users directory then all works as expected.
Any suggestions as to why the utf8 name is causing this issue ?
Hi Oliver,
The 'Max number of backup' setting has nothing to do with archive older backups. Archives will be created if the the feature is enabled and more than one FULL backup is done. The older FULL backups will be archived, the last one will be not archived because this will simplifying the mechanism with DIFF backups.
I tried to reproduce your issue on Windows 7 and Kubuntu 12.04, but everything works as expected. In both cases I started jenkins with the build-in winstone servlet container, but on my productive server (Ubuntu Server 12.04) it works also as expected on a Tomcat 7.
So please double check your access rights for the backup directory. The user whose running jenkins need write access for the backup directory and of course for al the backups. If you have older backups, done with an different user it midge be that you are not able to access it for archiving or deleting it.
Please reopen this issue if you feel this is still a problem, and more information about your settings and environment.