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

jenkins backup is taking much time to complete

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • thinbackup-plugin
    • None

      Hi 

      ThinBackup process in the Jenkins is failing to complete successfully. 

      Its taking too much to complete the backup . sometimes it will take exact time to complete .

       

      drwxr-xr-x  3 jenkins jenkins  12K Feb 12 03:00 FULL-2024-02-12_03-00

      Actually the jenkins took 3-4 hours to complete the backup process . Now its taking too much time 

      in logs i found 
      Cannot perform a backup. Please be sure jenkins/hudson has write privileges in the configured backup path '/jenkins-workspace/backupNow'.

      [id=68015] WARNING o.j.h.p.t.ThinBackupPeriodicWork#backupNow: Do not wait until jenkins/hudson is idle to perform backup. This could cause corrupt backups.

      root@server:/var/log/jenkins# cat jenkins.log | grep 'ThinBackup'
      2024-02-12 11:00:09.380+0000 [id=68015] WARNING o.j.h.p.t.ThinBackupPeriodicWork#backupNow: Do not wait until jenkins/hudson is idle to perform backup. This could cause corrupt backups.
      2024-02-12 11:01:09.379+0000 [id=159]   WARNING o.j.h.p.t.h.m.AsyncPeriodicWork#doRun: ThinBackup Worker Thread thread is still running. Execution aborted.
      2024-02-12 11:02:09.379+0000 [id=158]   WARNING o.j.h.p.t.h.m.AsyncPeriodicWork#doRun: ThinBackup Worker Thread thread is still running. Execution aborted.
      2024-02-12 11:03:09.379+0000 [id=46]    WARNING o.j.h.p.t.h.m.AsyncPeriodicWork#doRun: ThinBackup Worker Thread thread is still running. Execution aborted.

       

       

      Cannot perform a backup. Please be sure jenkins/hudson has write privileges in the configured backup path '/jenkins-workspace/backupNow'.

      Note : Sometimes the  Backup is successfully on time  and sometimes it takes more than 12-20hrs to complete the backup .

          [JENKINS-72703] jenkins backup is taking much time to complete

          Jana added a comment - - edited

          ravi508
          have you enabled "Wait until Jenkins/Hudson is idle to perform a backup" option?
          also check permissions of /jenkins-workspace/backupNow folder

          Jana added a comment - - edited ravi508 have you enabled "Wait until Jenkins/Hudson is idle to perform a backup" option? also check permissions of /jenkins-workspace/backupNow folder

          Raviteja added a comment -

          janasrikanth 

          Wait until Jenkins/Hudson is idle to perform a backup" option is not enabled .

          And /jenkins-workspace/backupNow folder has full permissions.

          Raviteja added a comment - janasrikanth   Wait until Jenkins/Hudson is idle to perform a backup" option is not enabled . And /jenkins-workspace/backupNow folder has full permissions.

          Raviteja added a comment - - edited

          janasrikanth 

            If i enable "Wait until Jenkins/Hudson is idle to perform a backup" option , then we have to wait until safe state of your instance ?

          for us each and every minute many jobs will run  . 

          Raviteja added a comment - - edited janasrikanth     If i enable "Wait until Jenkins/Hudson is idle to perform a backup" option , then we have to wait until safe state of your instance ? for us each and every minute many jobs will run  . 

          Jana added a comment -

          Yeah, jenkins will wait until there are no jobs running.
          i can see yesterday successful backup. is there any changes done on jenkins masters?

          Jana added a comment - Yeah, jenkins will wait until there are no jobs running. i can see yesterday successful backup. is there any changes done on jenkins masters?

          Jana added a comment -

          Can you check the ownership of /jenkins-workspace/backupNow
          and try this command:
          chown jenkins:jenkins /jenkins-workspace/backupNow

          Jana added a comment - Can you check the ownership of /jenkins-workspace/backupNow and try this command: chown jenkins:jenkins /jenkins-workspace/backupNow

          Raviteja added a comment - - edited

          janasrikanth 

          No changes done in jenkins master .

          if you see this drwxr-xr-x  3 jenkins jenkins  12K Feb 12 03:00 FULL-2024-02-12_03-00  the backup is not updated(usually backup should finish with in 4 hours). but its been taking almost 20hrs still counting .

           

          This is issue we are facing since last one month . 

          we can see the backup is completing successfully . but its taking too much time than as usual .  

           

          ownership of backup folder 

          drwxrwxr-x   5 jenkins jenkins 4.0K Feb 12 22:45  backupNow

          Raviteja added a comment - - edited janasrikanth   No changes done in jenkins master . if you see this drwxr-xr-x  3 jenkins jenkins  12K Feb 12 03:00 FULL-2024-02-12_03-00   the backup is not updated(usually backup should finish with in 4 hours). but its been taking almost 20hrs still counting .   This is issue we are facing since last one month .  we can see the backup is completing successfully . but its taking too much time than as usual .     ownership of backup folder  drwxrwxr-x   5 jenkins jenkins 4.0K Feb 12 22:45  backupNow

          Jana added a comment -

          ravi508 whats the jenkins version and thinbackup plugin version

          Jana added a comment - ravi508 whats the jenkins version and thinbackup plugin version

          Raviteja added a comment -

          jenkins version : 2.231

          Thinbackup : 1.10

          Raviteja added a comment - jenkins version : 2.231 Thinbackup : 1.10

          Raviteja added a comment -

          janasrikanth / tofuatjava 

          Any idea ?

          Raviteja added a comment - janasrikanth / tofuatjava   Any idea ?

            tofuatjava Thomas Fürer
            ravi508 Raviteja
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: