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

    Delta Backup AssertionError

    Scheduled Pinned Locked Moved Backup
    10 Posts 3 Posters 1.3k 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.
    • mdavicoM Offline
      mdavico
      last edited by

      Good day, I am using xo-server 5.122.0 and xo-web 5.124.1 compiled from sources and I started getting AssertionError on a Delta backup, however I am seeing the copy in the repository

      "id": "1694649608020",
            "message": "backup VM",
            "start": 1694649608020,
            "status": "failure",
            "tasks": [
              {
                "id": "1694649608719",
                "message": "clean-vm",
                "start": 1694649608719,
                "status": "failure",
                "tasks": [
                  {
                    "id": "1694649609499",
                    "message": "merge",
                    "start": 1694649609499,
                    "status": "failure",
                    "end": 1694649618941,
                    "result": {
                      "generatedMessage": true,
                      "code": "ERR_ASSERTION",
                      "actual": 295936,
                      "expected": 2097664,
                      "operator": "strictEqual",
                      "message": "Expected values to be strictly equal:\n+ actual - expected\n\n+ 295936\n- 2097664",
                      "name": "AssertionError",
                      "stack": "AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n+ actual - expected\n\n+ 295936\n- 2097664\n    at VhdFile._read (/opt/xen-orchestra/packages/vhd-lib/Vhd/VhdFile.js:124:12)\n    at async VhdFile.mergeBlock (/opt/xen-orchestra/packages/vhd-lib/Vhd/VhdAbstract.js:117:19)\n    at async asyncEach.concurrency (/opt/xen-orchestra/packages/vhd-lib/merge.js:208:39)"
                    }
                  }
                ],
                "end": 1694649618941,
                "result": {
                  "generatedMessage": true,
                  "code": "ERR_ASSERTION",
                  "actual": 295936,
                  "expected": 2097664,
                  "operator": "strictEqual",
                  "message": "Expected values to be strictly equal:\n+ actual - expected\n\n+ 295936\n- 2097664",
                  "name": "AssertionError",
                  "stack": "AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n+ actual - expected\n\n+ 295936\n- 2097664\n    at VhdFile._read (/opt/xen-orchestra/packages/vhd-lib/Vhd/VhdFile.js:124:12)\n    at async VhdFile.mergeBlock (/opt/xen-orchestra/packages/vhd-lib/Vhd/VhdAbstract.js:117:19)\n    at async asyncEach.concurrency (/opt/xen-orchestra/packages/vhd-lib/merge.js:208:39)"
                }
      
      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates πŸͺ Co-Founder CEO
        last edited by

        Hi,

        Are you on the latest commit from master branch?

        mdavicoM 1 Reply Last reply Reply Quote 0
        • mdavicoM Offline
          mdavico @olivierlambert
          last edited by

          @olivierlambert Yes Oliver, it is the latest version. happened after enabling NBD

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates πŸͺ Co-Founder CEO
            last edited by

            Can you provide the commit number?

            Adding @florent in the loop

            mdavicoM 1 Reply Last reply Reply Quote 0
            • mdavicoM Offline
              mdavico @olivierlambert
              last edited by mdavico

              @olivierlambert will this be?

              {
                "data": {
                  "mode": "delta",
                  "reportWhen": "failure"
                },
                "id": "1694649600005",
                "jobId": "b18baa25-8ca5-407c-9b47-3b32919b1c65",
                "jobName": "Backup_hosting2",
                "message": "backup",
                "scheduleId": "6c145708-744f-4a05-a4aa-d7c2fc264ef6",
                "start": 1694649600005,
                "status": "failure",
                "infos": [
                  {
                    "data": {
                      "vms": [
                        "62517a8e-8539-d395-c8c2-a2ffb1c7c35e"
                      ]
                    },
                    "message": "vms"
                  }
                ],
                "tasks": [
                  {
                    "data": {
                      "type": "VM",
                      "id": "62517a8e-8539-d395-c8c2-a2ffb1c7c35e",
                      "name_label": "Hosting2 < (ProducciΓ³n)"
                    },
                    "id": "1694649608020",
                    "message": "backup VM",
                    "start": 1694649608020,
                    "status": "failure",
                    "tasks": [
                      {
                        "id": "1694649608719",
                        "message": "clean-vm",
                        "start": 1694649608719,
                        "status": "failure",
                        "tasks": [
                          {
                            "id": "1694649609499",
                            "message": "merge",
                            "start": 1694649609499,
                            "status": "failure",
                            "end": 1694649618941,
                            "result": {
                              "generatedMessage": true,
                              "code": "ERR_ASSERTION",
                              "actual": 295936,
                              "expected": 2097664,
                              "operator": "strictEqual",
                              "message": "Expected values to be strictly equal:\n+ actual - expected\n\n+ 295936\n- 2097664",
                              "name": "AssertionError",
                              "stack": "AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n+ actual - expected\n\n+ 295936\n- 2097664\n    at VhdFile._read (/opt/xen-orchestra/packages/vhd-lib/Vhd/VhdFile.js:124:12)\n    at async VhdFile.mergeBlock (/opt/xen-orchestra/packages/vhd-lib/Vhd/VhdAbstract.js:117:19)\n    at async asyncEach.concurrency (/opt/xen-orchestra/packages/vhd-lib/merge.js:208:39)"
                            }
                          }
                        ],
                        "end": 1694649618941,
                        "result": {
                          "generatedMessage": true,
                          "code": "ERR_ASSERTION",
                          "actual": 295936,
                          "expected": 2097664,
                          "operator": "strictEqual",
                          "message": "Expected values to be strictly equal:\n+ actual - expected\n\n+ 295936\n- 2097664",
                          "name": "AssertionError",
                          "stack": "AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n+ actual - expected\n\n+ 295936\n- 2097664\n    at VhdFile._read (/opt/xen-orchestra/packages/vhd-lib/Vhd/VhdFile.js:124:12)\n    at async VhdFile.mergeBlock (/opt/xen-orchestra/packages/vhd-lib/Vhd/VhdAbstract.js:117:19)\n    at async asyncEach.concurrency (/opt/xen-orchestra/packages/vhd-lib/merge.js:208:39)"
                        }
                      },
                      {
                        "id": "1694649620779",
                        "message": "snapshot",
                        "start": 1694649620779,
                        "status": "success",
                        "end": 1694649622982,
                        "result": "f44b9d86-4961-7e71-dbeb-456e93f6058c"
                      },
                      {
                        "data": {
                          "id": "082ffdb2-0fee-4e3c-8173-2229b581785d",
                          "isFull": false,
                          "type": "remote"
                        },
                        "id": "1694649622983",
                        "message": "export",
                        "start": 1694649622983,
                        "status": "success",
                        "tasks": [
                          {
                            "id": "1694649625892",
                            "message": "transfer",
                            "start": 1694649625892,
                            "status": "success",
                            "end": 1694654200433,
                            "result": {
                              "size": 92109162496
                            }
                          },
                          {
                            "id": "1694654201049",
                            "message": "clean-vm",
                            "start": 1694654201049,
                            "status": "success",
                            "end": 1694654201977,
                            "result": {
                              "merge": true
                            }
                          }
                        ],
                        "end": 1694654202013
                      }
                    ],
                    "infos": [
                      {
                        "message": "Transfer data using NBD"
                      }
                    ],
                    "end": 1694654202014
                  }
                ],
                "end": 1694654202014
              }
              
              1 Reply Last reply Reply Quote 0
              • olivierlambertO Offline
                olivierlambert Vates πŸͺ Co-Founder CEO
                last edited by

                The commit number is available is the about section

                mdavicoM 1 Reply Last reply Reply Quote 0
                • mdavicoM Offline
                  mdavico @olivierlambert
                  last edited by

                  @olivierlambert 6953e

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates πŸͺ Co-Founder CEO
                    last edited by

                    Good then πŸ™‚ @florent will take a look here when he can πŸ™‚

                    planedropP mdavicoM 2 Replies Last reply Reply Quote 0
                    • planedropP Offline
                      planedrop Top contributor @olivierlambert
                      last edited by

                      @olivierlambert @mdavico if it helps here at all I am on commit 1c9d1 from the sources, Incremental Backups to an SMB share are working perfectly for me with no errors.

                      When I can I will try and update to latest and see if I'm having the same issue.

                      1 Reply Last reply Reply Quote 0
                      • mdavicoM Offline
                        mdavico @olivierlambert
                        last edited by

                        @olivierlambert Checking the storage where the delta backups are, I find 13 copies, and I have a retention of 7 configured.

                        235b1aae-b8f9-4f3c-b732-b6a79977628a-image.png

                        1 Reply Last reply Reply Quote 0
                        • olivierlambertO olivierlambert moved this topic from Xen Orchestra on

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better πŸ’—

                        Register Login
                        • First post
                          Last post