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

    AssertionError [ERR_ASSERTION]: footer1 !== footer2

    Scheduled Pinned Locked Moved Backup
    8 Posts 2 Posters 147 Views 2 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.
    • J Offline
      justjosh
      last edited by justjosh

      xo-backups clean-vms -m /vm1
      VHD check error {
        path: '/vm1/vdis/e8c6772b-0bab-489d-a24e-b41e07f9298b/7572fba5-2cbb-496a-9349-deb8f0c1af29/.20240914T191707Z.vhd',
        error: AssertionError [ERR_ASSERTION]: footer1 !== footer2
            at VhdFile.readHeaderAndFooter (/usr/lib/node_modules/@xen-orchestra/backups-cli/node_modules/vhd-lib/Vhd/VhdFile.js:195:7)
            at async VhdFile.open (/usr/lib/node_modules/@xen-orchestra/backups-cli/node_modules/vhd-lib/Vhd/VhdFile.js:95:7)
            at async openVhd (/usr/lib/node_modules/@xen-orchestra/backups-cli/node_modules/vhd-lib/openVhd.js:15:14)
            at async Promise.all (index 0)
            at async Set.<anonymous> (file:///usr/lib/node_modules/@xen-orchestra/backups-cli/node_modules/@xen-orchestra/backups/_cleanVm.mjs:209:7)
            at async Promise.all (index 0)
            at async RemoteAdapter.cleanVm (file:///usr/lib/node_modules/@xen-orchestra/backups-cli/node_modules/@xen-orchestra/backups/_cleanVm.mjs:203:3)
            at async Disposable.<anonymous> (file:///usr/lib/node_modules/@xen-orchestra/backups-cli/commands/clean-vms.mjs:26:9)
            at async Promise.all (index 0)
            at async cleanVms (file:///usr/lib/node_modules/@xen-orchestra/backups-cli/commands/clean-vms.mjs:23:3) {
          generatedMessage: false,
          code: 'ERR_ASSERTION',
          actual: false,
          expected: true,
          operator: '=='
        }
      }
      
      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        I'm not sure to understand what you expect by just posting an error log without any context like this 🤔

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          justjosh @olivierlambert
          last edited by

          @olivierlambert I was running the clean-vms -m command to try and merge a bunch of delta backups into a single .vhd file but it throws this strange assertion error which makes no sense to me. Looking for suggestions because it should be a relatively straightfoward task..

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

            Context is king: XO source or XOA? Which version?

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              justjosh @olivierlambert
              last edited by

              @olivierlambert Neither. A ubuntu VM with backups-cli installed via npm install --global @xen-orchestra/backups-cli

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

                Hmm I'm not sure we provide anything supported directly via npm. Pinging @julien-f

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  justjosh @olivierlambert
                  last edited by

                  @olivierlambert Shouldn't it be a disaster recovery option in case one is unable to spin up another XO instance?

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

                    Why you wouldn't be able to deploy another XOA? 🤔 It's meant to be re-deployed anytime you lose it, because even a fresh one can access a backup repo and restore everything.

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