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

cron driven backups never happen

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Manual backup works fine, Cron driven backups just never happen. Don't see any msgs in the jenkins log.

        Attachments

          Issue Links

            Activity

            casadelgato John Lussmyer created issue -
            Hide
            tofuatjava Thomas Fürer added a comment -

            hi John,
            It would be nice if you could also send me your settings for thin-backup. and a list of installed plugins.
            I will try to look into this problem soon.

            Show
            tofuatjava Thomas Fürer added a comment - hi John, It would be nice if you could also send me your settings for thin-backup. and a list of installed plugins. I will try to look into this problem soon.
            Hide
            tofuatjava Thomas Fürer added a comment -

            raise the priority, because it blocks a uiser with a regular backup on a very new jenkins release.

            Show
            tofuatjava Thomas Fürer added a comment - raise the priority, because it blocks a uiser with a regular backup on a very new jenkins release.
            tofuatjava Thomas Fürer made changes -
            Field Original Value New Value
            Priority Major [ 3 ] Blocker [ 1 ]
            Hide
            tofuatjava Thomas Fürer added a comment -

            I've tested it with 1.559 right now and it works for me on a windows 7 machine and also on a ubuntu 14.04 linux box. please add more information about the problem. Add a new log recorder with "hudson.plugins.thinbackup" and a detailed log level. add the logs to this issue.

            Show
            tofuatjava Thomas Fürer added a comment - I've tested it with 1.559 right now and it works for me on a windows 7 machine and also on a ubuntu 14.04 linux box. please add more information about the problem. Add a new log recorder with "hudson.plugins.thinbackup" and a detailed log level. add the logs to this issue.
            Hide
            casadelgato John Lussmyer added a comment -

            ThinBackup config. (as you can see, I've been experimenting with the cron settings.)
            This has been set like this seince the 9th. There have been no automatic backups during that interval.

            <?xml version="1.0" encoding="UTF-8"?>
            -<org.jvnet.hudson.plugins.thinbackup.ThinBackupPluginImpl plugin="thinBackup@1.7.4">
            <fullBackupSchedule>2 * * * *</fullBackupSchedule>
            <diffBackupSchedule>H 1 * * 1-5</diffBackupSchedule>
            <backupPath>/var/lib/jenkins/backups</backupPath>
            <nrMaxStoredFull>50</nrMaxStoredFull>
            <excludedFilesRegex/>
            <waitForIdle>false</waitForIdle>
            <forceQuietModeTimeout>120</forceQuietModeTimeout>
            <cleanupDiff>true</cleanupDiff>
            <moveOldBackupsToZipFile>true</moveOldBackupsToZipFile>
            <backupBuildResults>true</backupBuildResults>
            <backupBuildArchive>false</backupBuildArchive>
            <backupUserContents>true</backupUserContents>
            <backupNextBuildNumber>true</backupNextBuildNumber>
            <backupBuildsToKeepOnly>false</backupBuildsToKeepOnly>
            </org.jvnet.hudson.plugins.thinbackup.ThinBackupPluginImpl>

            Show
            casadelgato John Lussmyer added a comment - ThinBackup config. (as you can see, I've been experimenting with the cron settings.) This has been set like this seince the 9th. There have been no automatic backups during that interval. <?xml version="1.0" encoding="UTF-8"?> -<org.jvnet.hudson.plugins.thinbackup.ThinBackupPluginImpl plugin="thinBackup@1.7.4"> <fullBackupSchedule>2 * * * *</fullBackupSchedule> <diffBackupSchedule>H 1 * * 1-5</diffBackupSchedule> <backupPath>/var/lib/jenkins/backups</backupPath> <nrMaxStoredFull>50</nrMaxStoredFull> <excludedFilesRegex/> <waitForIdle>false</waitForIdle> <forceQuietModeTimeout>120</forceQuietModeTimeout> <cleanupDiff>true</cleanupDiff> <moveOldBackupsToZipFile>true</moveOldBackupsToZipFile> <backupBuildResults>true</backupBuildResults> <backupBuildArchive>false</backupBuildArchive> <backupUserContents>true</backupUserContents> <backupNextBuildNumber>true</backupNextBuildNumber> <backupBuildsToKeepOnly>false</backupBuildsToKeepOnly> </org.jvnet.hudson.plugins.thinbackup.ThinBackupPluginImpl>
            Hide
            casadelgato John Lussmyer added a comment -

            I did create a logger with the suggested setup, and level set to ALL.
            This is the last part of it. (since I saved the ThinConfig configuration changes.)

            Processing request for /log/hudson.plugins.thinbackup/configSubmit
            Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher
            -> evaluate(<hudson.model.Hudson@1991a218> :hudson.model.Hudson,"/log/hudson.plugins.thinbackup/configSubmit")
            Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher
            -> evaluate(((StaplerProxy)<hudson.model.Hudson@1991a218>).getTarget(),"/log/hudson.plugins.thinbackup/configSubmit")
            Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL
            hasPermission(PrincipalSID:hudson.security.HudsonPrivateSecurityRealm$Details@518e0008,Permission[class hudson.model.Hudson,Read])=>null
            Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL
            hasPermission(GroupSID:authenticated,Permission[class hudson.model.Hudson,Read])=>null
            Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL
            hasPermission(EVERYONE,Permission[class hudson.model.Hudson,Read])=>true
            Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher
            -> evaluate(<hudson.model.Hudson@1991a218>.getLog(),"/hudson.plugins.thinbackup/configSubmit")
            Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL
            hasPermission(PrincipalSID:hudson.security.HudsonPrivateSecurityRealm$Details@518e0008,Permission[class hudson.model.Hudson,Administer])=>null
            Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL
            hasPermission(GroupSID:authenticated,Permission[class hudson.model.Hudson,Administer])=>null
            Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL
            hasPermission(EVERYONE,Permission[class hudson.model.Hudson,Administer])=>true
            Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher
            -> evaluate(<hudson.logging.LogRecorderManager@47c96519> :hudson.logging.LogRecorderManager,"/hudson.plugins.thinbackup/configSubmit")
            Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher
            -> evaluate(<hudson.logging.LogRecorderManager@47c96519>.getDynamic("hudson.plugins.thinbackup",...),"/configSubmit")
            Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher
            -> evaluate(<hudson.logging.LogRecorder@11529683> :hudson.logging.LogRecorder,"/configSubmit")
            Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher
            -> <hudson.logging.LogRecorder@11529683>.doConfigSubmit(...)
            Jun 10, 2014 10:36:28 AM FINE org.eclipse.jetty.webapp.WebAppClassLoader
            getResource(hudson/logging/LogRecorder$Target.class)=jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.559.jar!/hudson/logging/LogRecorder$Target.class
            Jun 10, 2014 10:36:28 AM FINE org.apache.commons.beanutils.converters.StringConverter convert
            Converting 'String' value 'hudson.plugins.thinbackup' to type 'String'
            Jun 10, 2014 10:36:28 AM FINE org.apache.commons.beanutils.converters.StringConverter convert
            Converting 'String' value 'ALL' to type 'String'
            Feed

            Show
            casadelgato John Lussmyer added a comment - I did create a logger with the suggested setup, and level set to ALL. This is the last part of it. (since I saved the ThinConfig configuration changes.) Processing request for /log/hudson.plugins.thinbackup/configSubmit Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher -> evaluate(<hudson.model.Hudson@1991a218> :hudson.model.Hudson,"/log/hudson.plugins.thinbackup/configSubmit") Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher -> evaluate(((StaplerProxy)<hudson.model.Hudson@1991a218>).getTarget(),"/log/hudson.plugins.thinbackup/configSubmit") Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL hasPermission(PrincipalSID:hudson.security.HudsonPrivateSecurityRealm$Details@518e0008,Permission [class hudson.model.Hudson,Read] )=>null Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL hasPermission(GroupSID:authenticated,Permission [class hudson.model.Hudson,Read] )=>null Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL hasPermission(EVERYONE,Permission [class hudson.model.Hudson,Read] )=>true Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher -> evaluate(<hudson.model.Hudson@1991a218>.getLog(),"/hudson.plugins.thinbackup/configSubmit") Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL hasPermission(PrincipalSID:hudson.security.HudsonPrivateSecurityRealm$Details@518e0008,Permission [class hudson.model.Hudson,Administer] )=>null Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL hasPermission(GroupSID:authenticated,Permission [class hudson.model.Hudson,Administer] )=>null Jun 10, 2014 10:36:28 AM FINER hudson.security.SidACL hasPermission(EVERYONE,Permission [class hudson.model.Hudson,Administer] )=>true Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher -> evaluate(<hudson.logging.LogRecorderManager@47c96519> :hudson.logging.LogRecorderManager,"/hudson.plugins.thinbackup/configSubmit") Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher -> evaluate(<hudson.logging.LogRecorderManager@47c96519>.getDynamic("hudson.plugins.thinbackup",...),"/configSubmit") Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher -> evaluate(<hudson.logging.LogRecorder@11529683> :hudson.logging.LogRecorder,"/configSubmit") Jun 10, 2014 10:36:28 AM FINE org.kohsuke.stapler.Dispatcher -> <hudson.logging.LogRecorder@11529683>.doConfigSubmit(...) Jun 10, 2014 10:36:28 AM FINE org.eclipse.jetty.webapp.WebAppClassLoader getResource(hudson/logging/LogRecorder$Target.class)=jar: file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.559.jar!/hudson/logging/LogRecorder$Target.class Jun 10, 2014 10:36:28 AM FINE org.apache.commons.beanutils.converters.StringConverter convert Converting 'String' value 'hudson.plugins.thinbackup' to type 'String' Jun 10, 2014 10:36:28 AM FINE org.apache.commons.beanutils.converters.StringConverter convert Converting 'String' value 'ALL' to type 'String' Feed
            Hide
            casadelgato John Lussmyer added a comment -

            Plugins

            Ant Plugin 1.2
            Credentials Plugin 1.10
            CVS Plugin 2.11
            Email-ext plugin 2.37.2.2
            Environment Injector Plugin 1.89
            External Monitor Job Type Plugin 1.2
            FindBugs Plug-in 4.56
            Javadoc Plugin 1.1
            LDAP Plugin 1.8
            Mailer Plugin 1.8
            Matrix Authorization Strategy Plugin 1.1
            Maven Project Plugin 2.1
            Mercurial plugin 1.50
            OWASP Markup Formatter Plugin 1.0
            PAM Authentication plugin 1.1
            SCM API Plugin 0.2
            SSH Credentials Plugin 1.6.1
            SSH Slaves plugin 1.6
            Static Analysis Collector Plug-in 1.41
            Static Code Analysis Plug-ins 1.56
            Subversion Plugin 2.2
            ThinBackup 1.7.4
            Token Macro Plugin 1.10
            Translation Assistance plugin 1.11
            Warnings Plug-in 4.40
            Windows Slaves Plugin 1.0

            Show
            casadelgato John Lussmyer added a comment - Plugins Ant Plugin 1.2 Credentials Plugin 1.10 CVS Plugin 2.11 Email-ext plugin 2.37.2.2 Environment Injector Plugin 1.89 External Monitor Job Type Plugin 1.2 FindBugs Plug-in 4.56 Javadoc Plugin 1.1 LDAP Plugin 1.8 Mailer Plugin 1.8 Matrix Authorization Strategy Plugin 1.1 Maven Project Plugin 2.1 Mercurial plugin 1.50 OWASP Markup Formatter Plugin 1.0 PAM Authentication plugin 1.1 SCM API Plugin 0.2 SSH Credentials Plugin 1.6.1 SSH Slaves plugin 1.6 Static Analysis Collector Plug-in 1.41 Static Code Analysis Plug-ins 1.56 Subversion Plugin 2.2 ThinBackup 1.7.4 Token Macro Plugin 1.10 Translation Assistance plugin 1.11 Warnings Plug-in 4.40 Windows Slaves Plugin 1.0
            Hide
            larsthorup Lars Thorup added a comment - - edited

            I see the same issue. Version:
            CentOS release 6.5
            Jenkins ver. 1.572
            ThinBackup 1.7.4

            Let me know if there is more information you need.
            Thanks.

            Show
            larsthorup Lars Thorup added a comment - - edited I see the same issue. Version: CentOS release 6.5 Jenkins ver. 1.572 ThinBackup 1.7.4 Let me know if there is more information you need. Thanks.
            Hide
            pearlj Josh Pearl added a comment -

            Bump. Seeing the same thing here, but not seeing anything in the logs other than "update config successful"

            Show
            pearlj Josh Pearl added a comment - Bump. Seeing the same thing here, but not seeing anything in the logs other than "update config successful"
            Hide
            pearlj Josh Pearl added a comment -

            Nevermind. Believe it or a not, a reboot of the server seems to have corrected things

            Show
            pearlj Josh Pearl added a comment - Nevermind. Believe it or a not, a reboot of the server seems to have corrected things
            Hide
            marcshallbrook Marc Shallbrook added a comment -

            Had this issue on 2 Jenkins instances: 1.516 and 1.532.2 both using thinbackup 1.7.4

            In both cases a simple restart of Jenkins resolved the issue.

            Show
            marcshallbrook Marc Shallbrook added a comment - Had this issue on 2 Jenkins instances: 1.516 and 1.532.2 both using thinbackup 1.7.4 In both cases a simple restart of Jenkins resolved the issue.
            Hide
            tofuatjava Thomas Fürer added a comment -

            reduced to minor because workaround is available and working an different systems

            Show
            tofuatjava Thomas Fürer added a comment - reduced to minor because workaround is available and working an different systems
            tofuatjava Thomas Fürer made changes -
            Priority Blocker [ 1 ] Minor [ 4 ]
            Hide
            danielbeck Daniel Beck added a comment -

            What's the workaround? Many Jenkins instances cannot just be restarted due to many long-running builds.

            Show
            danielbeck Daniel Beck added a comment - What's the workaround? Many Jenkins instances cannot just be restarted due to many long-running builds.
            Hide
            ceilfors Wisen Tanasa added a comment -

            Looks related to JENKINS-16714?

            Show
            ceilfors Wisen Tanasa added a comment - Looks related to JENKINS-16714 ?
            ceilfors Wisen Tanasa made changes -
            Link This issue depends on JENKINS-16714 [ JENKINS-16714 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 155944 ] JNJira + In-Review [ 179174 ]
            Hide
            pbro Paolo Brocco added a comment - - edited

            This still happened to me with Jenkins ver. 2.73.3, Windows Server 2012r2.

            Created a cron expression: 0 22 * * 1-5

            or: H 22 * * 1-5 (as jenkins suggests to use "H"), the scheduled backup never happened. It worked only when triggered manually.

            After posting this comment, I updated Jenkins to ver. 2.89.2 (there were some security updates pending, and it was recommended to update Jenkins (LTS) from 2.73.2 to 2.89.2) and now the scheduled backup works according to the cron expression.

            Show
            pbro Paolo Brocco added a comment - - edited This still happened to me with Jenkins ver. 2.73.3, Windows Server 2012r2. Created a cron expression: 0 22 * * 1-5 or: H 22 * * 1-5 (as jenkins suggests to use "H"), the scheduled backup never happened. It worked only when triggered manually. After posting this comment, I updated Jenkins to ver. 2.89.2 (there were some security updates pending, and it was recommended to update Jenkins (LTS) from 2.73.2 to 2.89.2) and now the scheduled backup  works according to the cron expression.
            Hide
            hano2 ho Han added a comment -

            If it is not working directly, try to restart jenkins.

            Show
            hano2 ho Han added a comment - If it is not working directly, try to restart jenkins.
            Hide
            teilo James Nord added a comment -

            may be fixed by JENKINS-28683 in in 2.129 or higher when it is available.

            Show
            teilo James Nord added a comment - may be fixed by JENKINS-28683 in in 2.129 or higher when it is available.

              People

              Assignee:
              tofuatjava Thomas Fürer
              Reporter:
              casadelgato John Lussmyer
              Votes:
              5 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated: