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

    S3 backup failure after update

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    8 Posts 4 Posters 320 Views 3 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
      Andrew Top contributor
      last edited by Andrew

      @julien-f
      S3 delta backups fail after update..... (XO from source)
      fail d9ead2d9f5cbcc642d3c03b7f62c8cd0ee4ddb1a
      works 5b7228ed697697b243b34df985643b20a41d0faf

      Error: Cannot read properties of undefined (reading 'call')
      

      So somewhere in there causes a problem.

          {
            "data": {
              "type": "VM",
              "id": "00371171-0a0b-f32f-916e-a79e8f8a98d4"
            },
            "id": "1653455400938:1",
            "message": "backup VM",
            "start": 1653455400938,
            "status": "failure",
            "tasks": [
              {
                "id": "1653455448361",
                "message": "snapshot",
                "start": 1653455448361,
                "status": "success",
                "end": 1653455450792,
                "result": "8a724963-152c-fc6c-9032-efb327a30ad2"
              },
              {
                "data": {
                  "id": "db9ad0a8-bce6-4a2b-b9fd-5c4cecf059c4",
                  "isFull": false,
                  "type": "remote"
                },
                "id": "1653455450792:0",
                "message": "export",
                "start": 1653455450792,
                "status": "failure",
                "tasks": [
                  {
                    "id": "1653455451549",
                    "message": "transfer",
                    "start": 1653455451549,
                    "status": "success",
                    "end": 1653455493043,
                    "result": {
                      "size": 463617024
                    }
                  },
                  {
                    "id": "1653455493817",
                    "message": "health check",
                    "start": 1653455493817,
                    "status": "failure",
                    "tasks": [
                      {
                        "id": "1653455510268",
                        "message": "transfer",
                        "start": 1653455510268,
                        "status": "failure",
                        "end": 1653455510269,
                        "result": {
                          "message": "Cannot read properties of undefined (reading 'call')",
                          "name": "TypeError",
                          "stack": "TypeError: Cannot read properties of undefined (reading 'call')\n    at /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/ImportVmBackup.js:48:34\n    at /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:108:24\n    at Zone.run (/opt/xo/xo-builds/xen-orchestra-202205241158/node_modules/node-zone/index.js:80:23)\n    at Task.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:106:23)\n    at Function.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:38:27)\n    at ImportVmBackup.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/ImportVmBackup.js:42:17)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/writers/DeltaBackupWriter.js:84:36"
                        }
                      }
                    ],
                    "end": 1653455510269,
                    "result": {
                      "message": "Cannot read properties of undefined (reading 'call')",
                      "name": "TypeError",
                      "stack": "TypeError: Cannot read properties of undefined (reading 'call')\n    at /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/ImportVmBackup.js:48:34\n    at /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:108:24\n    at Zone.run (/opt/xo/xo-builds/xen-orchestra-202205241158/node_modules/node-zone/index.js:80:23)\n    at Task.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:106:23)\n    at Function.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:38:27)\n    at ImportVmBackup.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/ImportVmBackup.js:42:17)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/writers/DeltaBackupWriter.js:84:36"
                    }
                  }
                ],
                "end": 1653455510269,
                "result": {
                  "message": "Cannot read properties of undefined (reading 'call')",
                  "name": "TypeError",
                  "stack": "TypeError: Cannot read properties of undefined (reading 'call')\n    at /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/ImportVmBackup.js:48:34\n    at /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:108:24\n    at Zone.run (/opt/xo/xo-builds/xen-orchestra-202205241158/node_modules/node-zone/index.js:80:23)\n    at Task.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:106:23)\n    at Function.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:38:27)\n    at ImportVmBackup.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/ImportVmBackup.js:42:17)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/writers/DeltaBackupWriter.js:84:36"
                }
              }
            ],
            "end": 1653455533845,
            "result": {
              "message": "Cannot read properties of undefined (reading 'call')",
              "name": "TypeError",
              "stack": "TypeError: Cannot read properties of undefined (reading 'call')\n    at /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/ImportVmBackup.js:48:34\n    at /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:108:24\n    at Zone.run (/opt/xo/xo-builds/xen-orchestra-202205241158/node_modules/node-zone/index.js:80:23)\n    at Task.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:106:23)\n    at Function.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/Task.js:38:27)\n    at ImportVmBackup.run (/opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/ImportVmBackup.js:42:17)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async /opt/xo/xo-builds/xen-orchestra-202205241158/@xen-orchestra/backups/writers/DeltaBackupWriter.js:84:36"
            }
          },
      
      1 Reply Last reply Reply Quote 0
      • julien-fJ Offline
        julien-f Vates 🪐 Co-Founder XO Team @olivierlambert
        last edited by

        @Andrew @Danp It's merged, thank you ❤

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

          Please try fix_health_check and report! Thanks 👍

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            Andrew Top contributor @olivierlambert
            last edited by

            @olivierlambert Yes, that works.

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

              FWIW, I'm seeing the same issue for a non-S3 backup. Here is what the system log shows --

              May 26 00:05:06 ubuntu-xo xo-server[11563]:   error: Error: task has already ended
              May 26 00:05:06 ubuntu-xo xo-server[11563]:       at Task.logAfterEnd (/opt/xen-orchestra/@xen-orchestra/backups/Task.js:7:9)
              May 26 00:05:06 ubuntu-xo xo-server[11563]:       at Task.#log (/opt/xen-orchestra/@xen-orchestra/backups/Task.js:144:16)
              May 26 00:05:06 ubuntu-xo xo-server[11563]:       at Task.#end (/opt/xen-orchestra/@xen-orchestra/backups/Task.js:139:14)
              May 26 00:05:06 ubuntu-xo xo-server[11563]:       at Task.success (/opt/xen-orchestra/@xen-orchestra/backups/Task.js:124:14)
              May 26 00:05:06 ubuntu-xo xo-server[11563]:       at /opt/xen-orchestra/@xen-orchestra/backups/Task.js:111:52
              

              Edit: Testing with fix_health_check and appears to work correctly.

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

                Great, we'll merge the fix in master ASAP (it's a public holiday in France today)

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

                  @Andrew @Danp It's merged, thank you ❤

                  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
                  • A Offline
                    Andrew Top contributor @olivierlambert
                    last edited by

                    @olivierlambert @julien-f
                    Merci. Bonne Fête De L'Ascension.

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

                      Thank you!

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