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

    Unable to restore XO config backup

    Scheduled Pinned Locked Moved Solved Backup
    5 Posts 3 Posters 300 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.
    • I Offline
      ianepreston
      last edited by

      I'm running XO from source, just updated to the latest commit: b1e87

      I've configured backup jobs to run XO config backups with and without pool metadata. The behaviour is the same in either case.
      The backups run successfully, but restores fail. An example log of the restore fail below:

      metadataBackup.restore
      {
        "id": "3f885501-70f9-4219-8707-2a6515b0814e/xo-config-backups/9a515773-8912-4677-9e37-9e187341ecb9/20240101T164640Z",
        "pool": "5041a9f1-7687-65a8-04a3-67babe40e24d"
      }
      {
        "errno": -2,
        "code": "ENOENT",
        "syscall": "open",
        "path": "/run/xo-server/mounts/3f885501-70f9-4219-8707-2a6515b0814e/opt/xo/xo-builds/xen-orchestra-202401010940/packages/xo-server/xo-config-backups/9a515773-8912-4677-9e37-9e187341ecb9/20240101T164640Z/data.json",
        "message": "ENOENT: no such file or directory, open '/run/xo-server/mounts/3f885501-70f9-4219-8707-2a6515b0814e/opt/xo/xo-builds/xen-orchestra-202401010940/packages/xo-server/xo-config-backups/9a515773-8912-4677-9e37-9e187341ecb9/20240101T164640Z/data.json'",
        "name": "Error",
        "stack": "Error: ENOENT: no such file or directory, open '/run/xo-server/mounts/3f885501-70f9-4219-8707-2a6515b0814e/opt/xo/xo-builds/xen-orchestra-202401010940/packages/xo-server/xo-config-backups/9a515773-8912-4677-9e37-9e187341ecb9/20240101T164640Z/data.json'
      From:
          at NfsHandler.addSyncStackTrace (/opt/xo/xo-builds/xen-orchestra-202401010940/@xen-orchestra/fs/src/local.js:18:26)
          at NfsHandler._readFile (/opt/xo/xo-builds/xen-orchestra-202401010940/@xen-orchestra/fs/src/local.js:176:41)
          at NfsHandler.apply [as __readFile] (/opt/xo/xo-builds/xen-orchestra-202401010940/@xen-orchestra/fs/src/abstract.js:284:29)
          at NfsHandler.readFile (/opt/xo/xo-builds/xen-orchestra-202401010940/node_modules/limit-concurrency-decorator/src/index.js:85:24)
          at RestoreMetadataBackup.run (file:///opt/xo/xo-builds/xen-orchestra-202401010940/@xen-orchestra/backups/RestoreMetadataBackup.mjs:25:34)"
      }
      

      I really don't have that path when I check the xo machine, but I have a similar one: /run/xo-server/mounts/3f885501-70f9-4219-8707-2a6515b0814e/xo-config-backups/9a515773-8912-4677-9e37-9e187341ecb9/20240101T164640Z

      Any ideas what would be causing this? I considered filing an issue on GitHub, but I have no idea if anyone else can reproduce this behaviour so it seemed like I should start here.

      julien-fJ 2 Replies Last reply Reply Quote 0
      • julien-fJ Offline
        julien-f Vates 🪐 Co-Founder XO Team @ianepreston
        last edited by

        @ianepreston Fixed: https://github.com/vatesfr/xen-orchestra/commit/80097ea7776ce99c1e8424e4b48591daafed31a2

        Let me know if you have any issues 🙂

        0 julien-f committed to vatesfr/xen-orchestra
        fix(backups/RestoreMetadataBackup): fix data path resolution
        
        Introduced by ad46bde30
        
        Fixes https://xcp-ng.org/forum/post/68999
        I 1 Reply Last reply Reply Quote 1
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          Hello @ianepreston

          You did well to report it here first. Let me ping @julien-f

          1 Reply Last reply Reply Quote 0
          • julien-fJ Offline
            julien-f Vates 🪐 Co-Founder XO Team @ianepreston
            last edited by

            @ianepreston I'm investigating!

            1 Reply Last reply Reply Quote 1
            • julien-fJ Offline
              julien-f Vates 🪐 Co-Founder XO Team @ianepreston
              last edited by

              @ianepreston Fixed: https://github.com/vatesfr/xen-orchestra/commit/80097ea7776ce99c1e8424e4b48591daafed31a2

              Let me know if you have any issues 🙂

              0 julien-f committed to vatesfr/xen-orchestra
              fix(backups/RestoreMetadataBackup): fix data path resolution
              
              Introduced by ad46bde30
              
              Fixes https://xcp-ng.org/forum/post/68999
              I 1 Reply Last reply Reply Quote 1
              • olivierlambertO olivierlambert marked this topic as a question on
              • olivierlambertO olivierlambert has marked this topic as solved on
              • I Offline
                ianepreston @julien-f
                last edited by

                @julien-f that fixed it, thanks very much for the prompt resolution!

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