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

    Backup fails with "all targets have failed, step: writer.beforeBackup()"

    Scheduled Pinned Locked Moved Backup
    6 Posts 3 Posters 452 Views 3 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.
    • A Offline
      archw
      last edited by

      Every once in a while, in the morning I find that one or two of the backup jobs has an error. This is one from last night.

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

      Start: Jan 9, 2024, 02:00:09 AM
      End: Jan 9, 2024, 02:00:09 AM
      Duration: a few seconds
      Error: all targets have failed, step: writer.beforeBackup()

      Any idea what causes it? The backups go to two different NFS servers.

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

        Question for @florent , but also in the meantime, double check you are on the latest available commit on the master branch 🙂

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

          @archw it happens when two process try to access to the same VM on the backup repository

          often it is the merge process and the backup process, mbut it can also be two backup job working on the same VMs

          can you check in the log if a merge is occurring ?

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            archw @florent
            last edited by

            @florent
            Where would I find that log? I assume its in /var/log but which file?

            florentF 1 Reply Last reply Reply Quote 0
            • A Offline
              archw @olivierlambert
              last edited by

              @olivierlambert

              Its currently on master, commit bcc04 but I updated a few minutes ago. I can't tell what version last nigvht was runni gon but it was saved here. :

              /opt/xo/xo-builds/xen-orchestra-202401081119

              (I have it update every day so its whatever was current as of lunch yesterday))

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

                @archw said in Backup fails with "all targets have failed, step: writer.beforeBackup()":

                @florent
                Where would I find that log? I assume its in /var/log but which file?

                For a xoa it's in journalctl -u xo-server

                from source, it depends how you did setup XO

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