XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    the writer IncrementalRemoteWriter has failed the step writer.beforeBackup() with error Lock file is already being held. It won't be used anymore in this job execution.

    Scheduled Pinned Locked Moved Backup
    35 Posts 6 Posters 897 Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • olivierlambertO Online
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      Can you try to enable "Merge backups synchronously" in the advanced backup settings for your job? And report if you still have the issue then 🙂

      M 1 Reply Last reply Reply Quote 0
      • M Online
        manilx @olivierlambert
        last edited by manilx

        @olivierlambert I have it enabled all the time. And I'm now getting these errors now each day. Most of the time on the 1st backup of the day.

        I get it on Delta, Mirror incremental backup

        M 1 Reply Last reply Reply Quote 0
        • M Online
          manilx @manilx
          last edited by

          @manilx This has started 2 weeks go or so. But it's getting worse. I'm pretty sure it started with one of the XO updates..... As nothing else was changed.

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Online
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Are you on XOA or XO sources? Which version?

            M 1 Reply Last reply Reply Quote 0
            • M Online
              manilx @olivierlambert
              last edited by

              @olivierlambert XO Xen Orchestra, commit 987e9
              Master, commit ef636

              1 Reply Last reply Reply Quote 0
              • olivierlambertO Online
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by olivierlambert

                I'm not sure to understand, why two different commit numbers?

                M 1 Reply Last reply Reply Quote 0
                • M Online
                  manilx @olivierlambert
                  last edited by

                  @olivierlambert That's the last update I did yesterday.....

                  Just updated now to latest: Xen Orchestra, commit ef636
                  Master, commit ef636

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Online
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Do you have the issue on XOA?

                    M 1 Reply Last reply Reply Quote 0
                    • M Online
                      manilx @olivierlambert
                      last edited by manilx

                      @olivierlambert @Business with XOA no. Only HomeLab with XO but it has been rockstable until this.

                      1 Reply Last reply Reply Quote 0
                      • florentF Offline
                        florent Vates 🪐 XO Team
                        last edited by

                        this happens when 2 backup jobs are working on the same VM , or a backup and a background merge worker .
                        If it's the first case, you can use a job sequence to ensure the backup run one after another

                        If it's the latter, you have a check box to ensure the merge is done directly inside the job (bottom of the advanced settings of the backup job ), instead of doing this in a background job. It will slow down a little the job, but ensure it's completely done.

                        M 1 Reply Last reply Reply Quote 0
                        • M Online
                          manilx @florent
                          last edited by

                          @florent No other backup is running as I mentioned!

                          And "Merge backups synchronously" is on as mentioned.

                          This is not it.....

                          florentF 1 Reply Last reply Reply Quote 0
                          • florentF Offline
                            florent Vates 🪐 XO Team @manilx
                            last edited by

                            @manilx are there multiple job running on the same VM ?

                            M 1 Reply Last reply Reply Quote 0
                            • M Online
                              manilx @florent
                              last edited by manilx

                              @florent Only one single backup job every 2hrs (multiple VM's). Running fore more than 1year without issues (not counting the initianl cbt stuff).

                              ScreenShot 2025-02-14 at 13.43.59.png

                              ScreenShot 2025-02-14 at 13.45.27.png

                              M 1 Reply Last reply Reply Quote 0
                              • M Online
                                manilx @manilx
                                last edited by

                                @florent This make no sense. There has to be some leftover sometimes of a lock file.
                                ScreenShot 2025-02-15 at 09.43.16.png ScreenShot 2025-02-15 at 09.43.25.png

                                1 Reply Last reply Reply Quote 0
                                • SudoOracleS Offline
                                  SudoOracle
                                  last edited by

                                  So I started getting this a few days ago as well. My backups have been fine for over a year until now, they are constantly failing at random. They will usually succeed just fine if I restart the failed backup. I am currently on commit 494ea. I haven't had time to delve into this though. I just found this post when initially googling.

                                  M 1 Reply Last reply Reply Quote 0
                                  • olivierlambertO Online
                                    olivierlambert Vates 🪐 Co-Founder CEO
                                    last edited by

                                    That's interesting feedback, maybe a recently introduced bug. Could you try to go on an older commit to see if you can identify the culprit?

                                    SudoOracleS 1 Reply Last reply Reply Quote 0
                                    • M Online
                                      manilx @SudoOracle
                                      last edited by

                                      @SudoOracle Thx for chiming in!

                                      Glad to know I'm not alone.

                                      1 Reply Last reply Reply Quote 0
                                      • SudoOracleS Offline
                                        SudoOracle @olivierlambert
                                        last edited by

                                        @olivierlambert I went back to my prior version, which was commit 04dd9. And the very next backup finished successfully. Not sure if this was a fluke, but I have backups going every 2 hours and this was the first to finish successfully today without me clicking the button to retry the backup. I'll report tomorrow on whether they continue to work or not.

                                        1 Reply Last reply Reply Quote 0
                                        • olivierlambertO Online
                                          olivierlambert Vates 🪐 Co-Founder CEO
                                          last edited by

                                          Okay great, you can use git bisect to easily find the culprit. Now we also need to find the common situation between you and @manilx : type of backup, advanced options enabled, type of BR, and so on to also understand more about this.

                                          M 1 Reply Last reply Reply Quote 0
                                          • M Online
                                            manilx @olivierlambert
                                            last edited by

                                            @olivierlambert I have changed my backup strategy because of that:

                                            Before:
                                            ScreenShot 2025-02-17 at 10.41.02.png

                                            Now:
                                            ScreenShot 2025-02-17 at 10.41.58.png

                                            After this the problem did no longer occur.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post