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

    backup mail report says INTERRUPTED but it's not ?

    Scheduled Pinned Locked Moved Backup
    11 Posts 4 Posters 198 Views 4 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.
    • P Online
      Pilow
      last edited by Pilow

      we have a strange behavior in the mail reports of XOA Backup.

      the backup is done, we see the delta point on the remote, in XOA it's all green, no sign of INTERRUPTED, but the mail report tells otherwise :
      03d2ca7b-a186-4239-8ff1-66f04950aec3-image.png

      the "INTERRUPTION" seems to happen on the remote
      4a60ea48-5899-4c85-90cb-9fe585ac8e41-image.png

      the point in the remote :00eb35f5-5e2d-43d3-ab1a-9e74b4e37e61-image.png
      in XOA logs :
      92762647-9824-4f69-bc38-4ccc32c8ac4b-image.png

      be23f4b6-50e0-437f-a596-a777a68669ab-image.png
      other backups are okay, this same one will be okay too tonight...

      what is happening ?
      false alarm ? @florent @bastien-nollet

      {
        "data": {
          "mode": "delta",
          "reportWhen": "always"
        },
        "id": "1766680469800",
        "jobId": "87966399-d428-431d-a067-bb99a8fdd67a",
        "jobName": "BCK_C_xxxx",
        "message": "backup",
        "proxyId": "5359db6e-841b-4a6d-b5e6-a5d19f43b6c0",
        "scheduleId": "56872f53-4c20-47fc-8542-2cd9aed2fdde",
        "start": 1766680469800,
        "status": "success",
        "infos": [
          {
            "data": {
              "vms": [
                "b1eef06b-52c1-e02a-4f59-1692194e2376"
              ]
            },
            "message": "vms"
          }
        ],
        "tasks": [
          {
            "data": {
              "type": "VM",
              "id": "b1eef06b-52c1-e02a-4f59-1692194e2376",
              "name_label": "xxxx"
            },
            "id": "1766680472044",
            "message": "backup VM",
            "start": 1766680472044,
            "status": "success",
            "tasks": [
              {
                "id": "1766680472050",
                "message": "clean-vm",
                "start": 1766680472050,
                "status": "success",
                "end": 1766680473396,
                "result": {
                  "merge": false
                }
              },
              {
                "id": "1766680474042",
                "message": "snapshot",
                "start": 1766680474042,
                "status": "success",
                "end": 1766680504544,
                "result": "c4b42a79-532e-c376-833b-22707ddad571"
              },
              {
                "data": {
                  "id": "92ed64a4-e073-4fe9-8db9-11770b7ea2da",
                  "isFull": false,
                  "type": "remote"
                },
                "id": "1766680504544:0",
                "message": "export",
                "start": 1766680504544,
                "status": "success",
                "tasks": [
                  {
                    "id": "1766680511990",
                    "message": "transfer",
                    "start": 1766680511990,
                    "status": "success",
                    "end": 1766680515706,
                    "result": {
                      "size": 423624704
                    }
                  },
                  {
                    "id": "1766680521053",
                    "message": "clean-vm",
                    "start": 1766680521053,
                    "status": "success",
                    "tasks": [
                      {
                        "id": "1766680521895",
                        "message": "merge",
                        "start": 1766680521895,
                        "status": "success",
                        "end": 1766680530887
                      }
                    ],
                    "end": 1766680531173,
                    "result": {
                      "merge": true
                    }
                  }
                ],
                "end": 1766680531192
              }
            ],
            "infos": [
              {
                "message": "Transfer data using NBD"
              },
              {
                "message": "will delete snapshot data"
              },
              {
                "data": {
                  "vdiRef": "OpaqueRef:d8aef4c9-5514-6623-1cda-f5e879c4990f"
                },
                "message": "Snapshot data has been deleted"
              }
            ],
            "end": 1766680531211
          }
        ],
        "end": 1766680531267
      }
      
      1 Reply Last reply Reply Quote 0
      • P Online
        Pilow
        last edited by

        some timeout or race condition between the end of the job and the mail generation ?

        perhaps putting 10sec delay to send mail ?

        P 1 Reply Last reply Reply Quote 0
        • P Online
          Pilow @Pilow
          last edited by

          seeing more and more of this INTERRUPTED issue in mail reports.. anyone has this also ?

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

            @Pilow the run logs ( in backups ) are marked as success ?

            P 1 Reply Last reply Reply Quote 0
            • P Online
              Pilow @florent
              last edited by Pilow

              @florent yes they are, I screenshoted earlier in the thread

              1 Reply Last reply Reply Quote 0
              • Bastien NolletB Offline
                Bastien Nollet Vates 🪐 XO Team
                last edited by Bastien Nollet

                Hi @pilow,

                Currently, I don't know what would cause this or why this would happen more frequently.

                Could you test on your own to add some delay before sending the report, to see if it's indeed a race condition?

                To do that, you just need to edit the file packages/xo-server-backup-reports/dist/index.js by adding these two lines:

                const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
                await delay(10000);
                

                at the beginning of the _report function, like this:

                  async _report(runJobId, {
                    type
                  } = {}, force) {
                    const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
                    await delay(10000);
                    if (type === 'call') {
                      return;
                    }
                

                then just restart xo-server.

                P 1 Reply Last reply Reply Quote 2
                • P Online
                  Pilow @Bastien Nollet
                  last edited by

                  @Bastien-Nollet said in backup mail report says INTERRUPTED but it's not ?:

                  file packages/xo-server-backup-reports/dist/index.js by a

                  modification done, will give feedback

                  P olivierlambertO 2 Replies Last reply Reply Quote 2
                  • P Online
                    Pilow @Pilow
                    last edited by

                    here is a first feedback of this annoying INTERRUPTED random issue (╯‵□′)╯︵┻━┻

                    Started 12/10/2025 to appear (filtered view of mail inbox on word INTERRUPTED)
                    d5aa943b-eff3-4b02-ac8e-97e04960ce2f-image.png

                    All these backups are indeed SUCCESS in XOA, are present on the remotes, are restorable.
                    We have 14 backup reports each day. As you can see, some days no interrupted, some days multiple ones.
                    Backups are spanned from noon to late at night.

                    Today (after applying your patch code) was either a good day, or patch succedeed ¯\_(ツ)_/¯
                    27901574-a827-4710-abf9-dd0abb22f8fd-image.png

                    Will keep looking for rogue INTERRUPTIONs

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

                      @Pilow Thanks, it's promising but we'll wait for more runs on your side 🙂 If it's that, at least it's not a biggie in the end!

                      1 Reply Last reply Reply Quote 2
                      • Bastien NolletB Offline
                        Bastien Nollet Vates 🪐 XO Team
                        last edited by

                        I agree, let's wait for more runs.

                        If it's indeed a race condition, we'll still have to figure out a better way to settle this than just adding delay

                        P 1 Reply Last reply Reply Quote 1
                        • P Online
                          Pilow @Bastien Nollet
                          last edited by Pilow

                          @Bastien-Nollet new day without false INTERRUPTED
                          94dbb451-6567-4d1e-af0a-6d28573416bb-image.png

                          the scrutiny of backup email reports made me find a new bug in backups (not reports this time)
                          i'll create a new topic about the dreaded BACKUP FELL BACK TO A FULL --> can provoke it on purpose !

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