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

    Solved S3 Backup Restore File Issue

    Xen Orchestra
    3
    4
    138
    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.
    • S
      stevewest15
      last edited by

      Xen Orchestra, commit 2e8e2
      xo-server 5.86.3
      xo-web 5.91.2

      Hello,

      Does backups to S3 support restoring from files? Just tried it and I'm getting the following error:

      0c1170b7-a4e6-4fe5-b2e8-982fd0972825-image.png

      Error logs show the following:

      backupNg.listPartitions
      {
        "remote": "b241d7ad-9e91-4763-96a2-0fe0e54e94c7",
        "disk": "/xo-vm-backups/012b07a1-24cf-6d59-5faf-804e0e187b7a/vdis/5f1c8cfb-e4f5-4571-8a48-50b03c5e0d93/94396c87-11b4-4f0e-a996-985cb74d07bf/20220127T042837Z.alias.vhd"
      }
      {
        "message": "handler._getFilePath is not a function",
        "name": "TypeError",
        "stack": "TypeError: handler._getFilePath is not a function
          at RemoteAdapter.getDisk (/opt/xen-orchestra/@xen-orchestra/backups/RemoteAdapter.js:306:30)
          at getDisk.next (<anonymous>)
          at wrapCall (/opt/xen-orchestra/node_modules/promise-toolbox/wrapCall.js:7:23)
          at loop (/opt/xen-orchestra/node_modules/promise-toolbox/Disposable.js:96:25)
          at RemoteAdapter.getDisk (/opt/xen-orchestra/node_modules/promise-toolbox/Disposable.js:98:10)
          at RemoteAdapter.<anonymous> (/opt/xen-orchestra/@vates/disposable/deduped.js:18:32)
          at RemoteAdapter.getDisk (/opt/xen-orchestra/@xen-orchestra/backups/RemoteAdapter.js:67:43)
          at RemoteAdapter.listPartitions (/opt/xen-orchestra/@xen-orchestra/backups/RemoteAdapter.js:402:32)
          at Function.<anonymous> (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/file-restore-ng.mjs:83:85)
          at wrapApply (/opt/xen-orchestra/node_modules/promise-toolbox/wrapApply.js:7:23)
          at /opt/xen-orchestra/node_modules/promise-toolbox/Disposable.js:143:91
          at AsyncResource.runInAsyncScope (node:async_hooks:199:9)
          at cb (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:355:42)
          at tryCatcher (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:16:23)
          at Promise._settlePromiseFromHandler (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:547:31)
          at Promise._settlePromise (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:604:18)
          at Promise._settlePromise0 (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:649:10)
          at Promise._settlePromises (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:729:18)
          at Promise._fulfill (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:673:18)
          at Promise._resolveCallback (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:466:57)
          at Promise._settlePromiseFromHandler (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:559:17)
          at Promise._settlePromise (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:604:18)"
      }
      

      Thank You,

      SW

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

        @stevewest15 Hi, thanks for your report. File restore is indeed not supported for S3 backups (and it won't be due to implementation limits), we will make this clearer in the UI though 🙂

        1 Reply Last reply Reply Quote 0
        • olivierlambertO
          olivierlambert Vates 🪐 Co-Founder🦸 CEO 🧑‍💼
          last edited by olivierlambert

          I don't think file restore is supported on S3 (yet or will be?). Let me ping @julien-f

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

            @stevewest15 Hi, thanks for your report. File restore is indeed not supported for S3 backups (and it won't be due to implementation limits), we will make this clearer in the UI though 🙂

            1 Reply Last reply Reply Quote 0
            • S
              stevewest15
              last edited by

              Thank you greatly appreciate your assistance as always!

              1 Reply Last reply Reply Quote 0
              • olivierlambertO olivierlambert marked this topic as a question on
              • olivierlambertO olivierlambert has marked this topic as solved on
              • First post
                Last post