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

    Sources upgrade - can't restore backups ('invalid parameters')

    Scheduled Pinned Locked Moved Xen Orchestra
    14 Posts 4 Posters 731 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.
    • T Offline
      Tackyone
      last edited by

      Hi,

      Not been here for a while - all the forums have changed, so hope this is the right place to post...

      I recently upgraded my home 'from the sources' xen-orchestra - I was running apparently 'feat: release 5.55.1', I'm now running the latest ('feat: release 5.61.0')

      This seems to work - but testing backup restores, I get an "invalid parameters" error popup and the restore doesn't start.

      Looking at the error in detail I see:

      backupNg.importVmBackup
      {
        "id": "604ab8e7-0132-4879-a2e1-b5fcf886ac09/xo-vm-backups/b7e27857-0bf3-24b9-84f9-ed618fbf4531/20210808T032240Z.json",
        "settings": {
          "newMacAddresses": false
        },
        "sr": "0d54ce46-eb09-7515-e8e3-45528b7ebe2d"
      }
      {
        "code": 10,
        "data": {
          "errors": [
            {
              "code": null,
              "reason": "strict",
              "message": "should not contains property [\"settings\"]",
              "property": "@"
            }
          ]
        },
        "message": "invalid parameters",
        "name": "XoError",
        "stack": "XoError: invalid parameters
          at Object.invalidParameters (/home/xo-user/xen-orchestra/packages/xo-common/src/api-errors.js:21:32)
          at Object.call (/home/xo-user/xen-orchestra/packages/xo-server/src/xo-mixins/api.js:73:18)
          at Api.callApiMethod (/home/xo-user/xen-orchestra/packages/xo-server/src/xo-mixins/api.js:300:19)"
      } 
      

      Any ideas? - This happens for any backups (that were all done with 5.55.1) - they are all delta backups. I've checked the remote (NFS backup storage) is connected, and ok (and it pasts the 'test' option).

      I did have a quick search around but couldn't see any issue with this or similar open etc.

      Thanks

      DanpD 1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team @Tackyone
        last edited by

        What happens if you run the backup job again? Does the problem still occur afterwards?

        T 1 Reply Last reply Reply Quote 0
        • J Offline
          jmccoy555
          last edited by jmccoy555

          Funnily enough (well not...), I was just having a back up tidyup and am seeing this;

          backupNg.deleteVmBackup
          {
            "id": "c20a37bc-748d-4320-ac56-53bf97c2f307//xo-vm-backups/2c4beba7-e1b7-0b4c-0165-a12cb7c0fb04/20210713T051224Z.json"
          }
          {
            "code": -32601,
            "data": "backup.deleteVmBackup",
            "message": "method not found: backup.deleteVmBackup"
          } 
          

          xo-server 5.81.0
          xo-web 5.85.0

          Last built a few weeks ago.

          edit.... hummm my issue could be proxy related by the looks of it.

          DanpD 1 Reply Last reply Reply Quote 0
          • DanpD Offline
            Danp Pro Support Team @jmccoy555
            last edited by

            @jmccoy555 This doesn't appear to be related to the OP. However, I would suggest rebuilding using the latest source and then try again.

            T 1 Reply Last reply Reply Quote 1
            • T Offline
              Tackyone @Danp
              last edited by

              @danp

              Ok - I created a new backup job, for a small VM (again, delta backup) - going to a new test remote.

              The backup ran - as it's the first time, it did a full copy as you'd expect, and it completed ok.

              I cannot restore it either - shows the same 'invalid parameters' error - and the log details shows the same '"should not contains property ["settings"]"' 😞

              Backend server is XCP-ng 8.2

              1 Reply Last reply Reply Quote 0
              • T Offline
                Tackyone @Danp
                last edited by

                @danp
                Hi, don't know if you were suggesting I do the rebuild or @jmccoy555 - but I've tried rebuilding re-checking out - and yarn clean / yarn built et'al - and still have the same error.

                DanpD 1 Reply Last reply Reply Quote 0
                • DanpD Offline
                  Danp Pro Support Team @Tackyone
                  last edited by

                  @tackyone Are you able to test this with XOA to check if the error also occurs there?

                  T 2 Replies Last reply Reply Quote 0
                  • J Offline
                    jmccoy555
                    last edited by

                    Just rebuilt to xo-server 5.81.2 / xo-web 5.86.0

                    Removing the Proxy from the remote and it looks like everything is good. Restored backup taken in Dec 2019.... so plenty of versions ago, and all is ok.

                    Backups still work with the Proxy.

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      Tackyone @Danp
                      last edited by

                      @danp Hi - unfortunately not. I don't have access to XOA. I just tried to download the trial / starter edition, which can't restore - and I can't upgrade to the free trial - because I've already had a free trial 😞

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        Tackyone @Danp
                        last edited by

                        @danp I think there's something out of sync somewhere (though I was careful this was a new/fresh clone of git master) - I can't create VM's either (e.g. ""message": "should not contains property ["bypassMacAddressesCheck"]"".

                        I'll do a completely clean build not upgrade and see if it's still happening...

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          Tackyone
                          last edited by

                          Ok, full rebuild from nothing seems to have fixed it... Bonus points if someone can suggest how I can copy the settings from the previous instance to this one?

                          /var/lib/xo-server/data/leveldb doesn't seem to like being copied (even with XO shutdown).

                          It'd be great to be able to pull the backup jobs over.

                          DanpD 1 Reply Last reply Reply Quote 0
                          • DanpD Offline
                            Danp Pro Support Team @Tackyone
                            last edited by

                            @tackyone Just export the config from the old VM and import into the new one

                            T 1 Reply Last reply Reply Quote 0
                            • T Offline
                              Tackyone @Danp
                              last edited by

                              @danp I'd convinced myself that the 'Export Settings' option didn't work when XO was compiled from sources 😞

                              I've just tried it now, and it does work - what was happening (literally all this time!) is Safari pops up the tiniest "Popup window blocked" icon in the address bar you've ever seen. Click that - and the download starts 🤦

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

                                FYI, you can always ask for another XOA trial when you need it 🙂

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