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

The backup archive folders are not getting deleted following retention. The max number of backup sets is 4 but we have backup folders for last 6 months stored in backup folder

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • thinbackup-plugin
    • None
    • Version is 2.176.1. Linux OS

      The backup folders are retained even after the configured retention. This fills the space and disk will ran out of space eventually.

          [JENKINS-65516] The backup archive folders are not getting deleted following retention. The max number of backup sets is 4 but we have backup folders for last 6 months stored in backup folder

          Stephan Krull added a comment -

          bmathew: Meanwhile you might have found the root cause but here is what we found from time to time: This is usually caused by a failure in the backup process. Check the Jenkins logs and search for "thin" or "backup". When the backup process runs into any exception it seems to keep processing the backup but not triggering the rotation of old backups.

          We worked around by checking the number of backups in the folder daily and act immediately if there are more than the expected number of backups. As I said it usually is caused by an exception in the backup process and you need to handle it manually (e.g. by deleting some outdated job folders), see e.g. https://github.com/jenkinsci/thin-backup-plugin/pull/24.

          Stephan Krull added a comment - bmathew : Meanwhile you might have found the root cause but here is what we found from time to time: This is usually caused by a failure in the backup process. Check the Jenkins logs and search for "thin" or "backup". When the backup process runs into any exception it seems to keep processing the backup but not triggering the rotation of old backups. We worked around by checking the number of backups in the folder daily and act immediately if there are more than the expected number of backups. As I said it usually is caused by an exception in the backup process and you need to handle it manually (e.g. by deleting some outdated job folders), see e.g. https://github.com/jenkinsci/thin-backup-plugin/pull/24 .

          Stephan Krull added a comment -

          I think this issue here is also kind of related: JENKINS-67479

          Stephan Krull added a comment - I think this issue here is also kind of related: JENKINS-67479

            tofuatjava Thomas Fürer
            bmathew Bibin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: