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

    XO Community edition backups dont work as of build 6b263

    Scheduled Pinned Locked Moved Backup
    33 Posts 11 Posters 679 Views 11 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.
    • A Offline
      aseba
      last edited by aseba

      Hi,

      Having the same issue, took me a while to figure out that it was a bug as the last backup got interrupted during a power failure and I thought the issues was to do with that! I reverted to a snapshot pre xoa update and it seems to be working now.

      1 Reply Last reply Reply Quote 0
      • W Offline
        wf @Danp
        last edited by

        @Danp

        You’re a star!
        Backups now working again using commit 19412

        Thanks

        1 Reply Last reply Reply Quote 0
        • florentF Offline
          florent Vates 🪐 XO Team
          last edited by florent

          @archw said in XO Community edition backups dont work as of build 6b263:

          The last argument to .catch() must be a function, got [object Object]

          thanks for the reports
          we are testing the fix ( https://github.com/vatesfr/xen-orchestra/pull/8739 )

          This may be bigger than a simple typo, this code last changes was 2 years ago
          We reworked the timeout/retry mechanic of the unlink method as that doesn't perform as well as expected on some object storage backend, expecting new clues on how to improve the situation.
          And you reports (24h after the merges) pointed us to a possible solution : We were deleting up to 10^depth files in parallel instead of 2^depth.

          fbeauchamp opened this pull request in vatesfr/xen-orchestra

          closed fix(fs): fix 'The last argument to .catch() must be a function, got […object Object]' #8739

          U 1 Reply Last reply Reply Quote 0
          • U Offline
            uwood @florent
            last edited by

            @florent commit 035f5 still seems not to work. Meta Data Backup lasts a few seconds but now it is starting for 2 minutes without doing anything.

            florentF 1 Reply Last reply Reply Quote 0
            • florentF Offline
              florent Vates 🪐 XO Team @uwood
              last edited by

              @uwood a metadata backup shouldn't trigger any timeout
              I am retesting it

              U 1 Reply Last reply Reply Quote 0
              • U Offline
                uwood @florent
                last edited by

                @florent meta data backups make the same problems as normal backups. with commit 85868 the problem still exists.

                U 1 Reply Last reply Reply Quote 0
                • A acebmxer referenced this topic
                • U Offline
                  uwood @uwood
                  last edited by uwood

                  commit 040ae Meta Data Backup fails now instantly.

                  7974a4f9-10b9-41b4-a3ea-941cc95272ca-image.png

                  florentF 1 Reply Last reply Reply Quote 0
                  • florentF Offline
                    florent Vates 🪐 XO Team @uwood
                    last edited by

                    @uwood the fix regarding the "catch" error is still in review, will probably be merged in a few hours

                    the second fix regarding the stuck stream ( so pool metadata, full backup and disaster recovery) is merged . This one was effectively added in friday's PR

                    florentF 1 Reply Last reply Reply Quote 0
                    • florentF Offline
                      florent Vates 🪐 XO Team @florent
                      last edited by

                      second fix is merged
                      Can you retest master, latest commit ?

                      A U 2 Replies Last reply Reply Quote 1
                      • A Offline
                        aseba @florent
                        last edited by

                        @florent Just updated, and the pool metadata and XO config backup seems to be working. Running the main back up right now and seems to be running fine.

                        K 1 Reply Last reply Reply Quote 0
                        • U Offline
                          uwood @florent
                          last edited by

                          @florent commit 1a7b5 seems to work now. meta backup has run succesfully and other backup has run ok too.

                          1 Reply Last reply Reply Quote 2
                          • K Offline
                            katapaltes @aseba
                            last edited by katapaltes

                            I've updated to the latest master as well (1a7b5) and my metadata/config backups completed successfully, as did my smaller test backup. However, only 16 of 19 VMs in my main backup job completed. I am re-running the main backup now and will report back if the error recurs.

                            Update: The job is still running, but here is the error from the three VMs that failed previously: "Error: invalid HTTP header in response body"

                            A florentF 2 Replies Last reply Reply Quote 1
                            • A Offline
                              aseba @katapaltes
                              last edited by

                              @katapaltes I did have that HTTP error before, but everything is running successfully now. I'm getting " cleanVm: incorrect backup size in metadata" on all the VMs, but not sure if that's related - it was happening before so not sure if it's related to my power faliure.

                              K 1 Reply Last reply Reply Quote 0
                              • K Offline
                                katapaltes @aseba
                                last edited by katapaltes

                                Yes, you will always see those "cleanVm: incorrect backup size in metadata" warnings, and Vates has said that it's OK to ignore them. You won't see them if you "Store backup as multiple data blocks instead of a whole VHD file," but your storage will need to support the required 500-1000 files per backed up GB (and of course you'll need to evaluate whether you wish to use multiple data blocks instead of VHD files in the first place).

                                I re-ran my backups and the three VMs that failed backup previously have now succeeded.

                                1 Reply Last reply Reply Quote 2
                                • marcoiM Offline
                                  marcoi
                                  last edited by

                                  posted in the other thread as well but Xen Orchestra, commit 1a7b5 backups are working again. I tested configure and vm backups. They are being backup to NFS share.

                                  1 Reply Last reply Reply Quote 2
                                  • florentF Offline
                                    florent Vates 🪐 XO Team @katapaltes
                                    last edited by

                                    @katapaltes said in XO Community edition backups dont work as of build 6b263:

                                    Error: invalid HTTP header in response body

                                    Error: invalid HTTP header in response body should come with a trace in the logs ( journalctl under the same acount that runs xo )
                                    could you extract it ?

                                    K 1 Reply Last reply Reply Quote 0
                                    • K Offline
                                      katapaltes @florent
                                      last edited by

                                      Hello @florent , the results below between 8:04:10 and 8:04:36 seem to align with one of the three failed VM backups. NB: The error did not return when I did another Delta backup (everything backed up successfully). I am now doing a Force Full Backup on all VMs just to be safe. As of now I am still running 1a7b5 and have not yet updated to 7994f.

                                      Jun 23 08:01:14 sxoap31 xo-server[19663]: }
                                      Jun 23 08:04:10 sxoap31 xo-server[19663]: 2025-06-23T13:04:10.703Z xo:backups:MixinBackupWriter WARN cleanVm: incorrect backup size in metadata {
                                      Jun 23 08:04:10 sxoap31 xo-server[19663]:   path: '/xo-vm-backups/bca06bdf-3e1f-40a4-570e-7b584b356e22/20250623T130122Z.json',
                                      Jun 23 08:04:10 sxoap31 xo-server[19663]:   actual: 12283019264,
                                      Jun 23 08:04:10 sxoap31 xo-server[19663]:   expected: 12288363520
                                      Jun 23 08:04:10 sxoap31 xo-server[19663]: }
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]: 2025-06-23T13:04:31.411Z @xen-orchestra/xapi/disks/Xapi WARN openNbdCBT XapiError: SR_BACKEND_FAILURE_460(, Failed to calculate changed blocks for given VDIs. [opterr=Source and target V>
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     at XapiError.wrap (file:///opt/xo/xo-builds/xen-orchestra-202506230729/packages/xen-api/_XapiError.mjs:16:12)
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     at default (file:///opt/xo/xo-builds/xen-orchestra-202506230729/packages/xen-api/_getTaskResult.mjs:13:29)
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     at Xapi._addRecordToCache (file:///opt/xo/xo-builds/xen-orchestra-202506230729/packages/xen-api/index.mjs:1073:24)
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     at file:///opt/xo/xo-builds/xen-orchestra-202506230729/packages/xen-api/index.mjs:1107:14
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     at Array.forEach (<anonymous>)
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     at Xapi._processEvents (file:///opt/xo/xo-builds/xen-orchestra-202506230729/packages/xen-api/index.mjs:1097:12)
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     at Xapi._watchEvents (file:///opt/xo/xo-builds/xen-orchestra-202506230729/packages/xen-api/index.mjs:1270:14)
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:   code: 'SR_BACKEND_FAILURE_460',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:   params: [
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     '',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     'Failed to calculate changed blocks for given VDIs. [opterr=Source and target VDI are unrelated]',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     ''
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:   ],
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:   call: undefined,
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:   url: undefined,
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:   task: task {
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     uuid: 'aeac5fce-c3c8-d3d5-eff0-f1aa3b7dc4dc',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     name_label: 'Async.VDI.list_changed_blocks',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     name_description: '',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     allowed_operations: [],
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     current_operations: {},
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     created: '20250623T13:04:30Z',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     finished: '20250623T13:04:30Z',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     status: 'failure',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     resident_on: 'OpaqueRef:e9735ec6-f9a5-da8a-0891-262ae26db402',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     progress: 1,
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     type: '<none/>',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     result: '',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     error_info: [
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:       'SR_BACKEND_FAILURE_460',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:       '',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:       'Failed to calculate changed blocks for given VDIs. [opterr=Source and target VDI are unrelated]',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:       ''
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     ],
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     other_config: {},
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     subtask_of: 'OpaqueRef:NULL',
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     subtasks: [],
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:     backtrace: '(((process xapi)(filename lib/backtrace.ml)(line 210))((process xapi)(filename ocaml/xapi/storage_utils.ml)(line 141))((process xapi)(filename ocaml/xapi/message_forwardi>
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]:   }
                                      Jun 23 08:04:31 sxoap31 xo-server[19663]: }
                                      Jun 23 08:04:36 sxoap31 xo-server[19663]: 2025-06-23T13:04:36.914Z xo:xapi:vdi WARN invalid HTTP header in response body {
                                      Jun 23 08:04:36 sxoap31 xo-server[19663]:   body: 'HTTP/1.1 500 Internal Error\r\n' +
                                      Jun 23 08:04:36 sxoap31 xo-server[19663]:     'content-length: 318\r\n' +
                                      Jun 23 08:04:36 sxoap31 xo-server[19663]:     'content-type: text/html\r\n' +
                                      Jun 23 08:04:36 sxoap31 xo-server[19663]:     'connection: close\r\n' +
                                      Jun 23 08:04:36 sxoap31 xo-server[19663]:     'cache-control: no-cache, no-store\r\n' +
                                      Jun 23 08:04:36 sxoap31 xo-server[19663]:     '\r\n' +
                                      Jun 23 08:04:36 sxoap31 xo-server[19663]:     '<html><body><h1>HTTP 500 internal server error</h1>An unexpected error occurred; please wait a while and try again. If the problem persists, please contact your support representati>
                                      Jun 23 08:04:36 sxoap31 xo-server[19663]: }
                                      Jun 23 08:05:14 sxoap31 systemd-timesyncd[412]: Timed out waiting for reply from 23.155.40.38:123 (0.debian.pool.ntp.org).
                                      
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        archw
                                        last edited by

                                        All is well for me ...thanks for the hard work!

                                        1 Reply Last reply Reply Quote 0
                                        • marcoiM Offline
                                          marcoi
                                          last edited by

                                          Seems like backup are broken again for me. I tried the latest build.
                                          Xen Orchestra, commit d8370

                                          Im seeing two kinds of errors:
                                          Error 1 The job starts and does nothing. I do see it creating a snap shot as I deleted the existing snapshot as part of testing

                                          Error2: The job runs and fails with http error.

                                          Testing so far:
                                          XO config backup still work fine.

                                          f6d51b31-0b35-4e5d-a234-7d8dc4700b72-image.png

                                          a1ed0564-6e9c-46e2-872b-3636ce5c3616-image.png

                                          marcoiM 1 Reply Last reply Reply Quote 0
                                          • marcoiM Offline
                                            marcoi @marcoi
                                            last edited by

                                            {
                                              "data": {
                                                "mode": "delta",
                                                "reportWhen": "failure"
                                              },
                                              "id": "1750967273856",
                                              "jobId": "79a021e6-9637-40f0-871f-ab122f104d65",
                                              "jobName": "2D. Dev VM - 6AM - Full: Sunday - Daily:M-F",
                                              "message": "backup",
                                              "scheduleId": "60635a8f-6aa9-4988-96eb-376faaabf740",
                                              "start": 1750967273856,
                                              "status": "pending",
                                              "infos": [
                                                {
                                                  "data": {
                                                    "vms": [
                                                      "4b999d5b-6bbf-78b5-93f2-83747c879be6",
                                                      "1c29eb9f-5b4b-2a63-dee2-47b738701058"
                                                    ]
                                                  },
                                                  "message": "vms"
                                                }
                                            

                                            So I deleted the backup snap shot of one of the two VMs in this backup job. I then did full backup and the job shows running but stuck in pending mode. I do see two folders on my NAS with the same vms ids, which are empty. So its just not doing the backup process.

                                            c8654207-3c33-4dbd-81c9-95132346da78-image.png

                                            marcoiM florentF 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post