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

    Health Check Failing After Recent XOCE Update

    Scheduled Pinned Locked Moved Solved Backup
    12 Posts 5 Posters 619 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.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      Hi,

      You should stick with the right version of Node before anything: https://xen-orchestra.com/docs/installation.html#packages-and-pre-requisites

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

        Hi... this may not have any effect, but you should try it with Node 18 since that is the supported version at this time.

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

          🔥

          S 1 Reply Last reply Reply Quote 1
          • S Offline
            stevewest15 @olivierlambert
            last edited by

            @olivierlambert Thank you for assistance! I have updated nodejs to v18.19.0 and ran a quick backup test and still getting the same error (see below):

            {
              "data": {
                "mode": "delta",
                "reportWhen": "always"
              },
              "id": "1704403800003",
              "jobId": "bff2ddd9-42c4-4e2f-9cbf-d1677c4722f7",
              "jobName": "Test Backup",
              "message": "backup",
              "scheduleId": "86086afa-89b4-4c97-b81f-f5b84bfd0de8",
              "start": 1704403800003,
              "status": "failure",
              "infos": [
                {
                  "data": {
                    "vms": [
                      "605507d7-29cc-acee-176a-2e26a3726d39"
                    ]
                  },
                  "message": "vms"
                }
              ],
              "tasks": [
                {
                  "data": {
                    "type": "VM",
                    "id": "605507d7-29cc-acee-176a-2e26a3726d39",
                    "name_label": "Email-Relay"
                  },
                  "id": "1704403803299",
                  "message": "backup VM",
                  "start": 1704403803299,
                  "status": "failure",
                  "tasks": [
                    {
                      "id": "1704403803307",
                      "message": "clean-vm",
                      "start": 1704403803307,
                      "status": "success",
                      "end": 1704403803362,
                      "result": {
                        "merge": false
                      }
                    },
                    {
                      "id": "1704403803373",
                      "message": "snapshot",
                      "start": 1704403803373,
                      "status": "success",
                      "end": 1704403806203,
                      "result": "b41c174e-511d-69cb-800d-c5d98c806fb2"
                    },
                    {
                      "data": {
                        "id": "45ff0925-797b-43dd-a95c-7e298c61ad02",
                        "isFull": true,
                        "type": "remote"
                      },
                      "id": "1704403806213",
                      "message": "export",
                      "start": 1704403806213,
                      "status": "success",
                      "tasks": [
                        {
                          "id": "1704403807469",
                          "message": "transfer",
                          "start": 1704403807469,
                          "status": "success",
                          "end": 1704403945962,
                          "result": {
                            "size": 9496147968
                          }
                        },
                        {
                          "id": "1704403946008",
                          "message": "health check",
                          "start": 1704403946008,
                          "status": "success",
                          "tasks": [
                            {
                              "id": "1704403946082",
                              "message": "transfer",
                              "start": 1704403946082,
                              "status": "success",
                              "end": 1704404004994,
                              "result": {
                                "size": 9496147456,
                                "id": "6a6770c4-52f9-440b-5fd6-9bd7decc3930"
                              }
                            },
                            {
                              "id": "1704404004994:0",
                              "message": "vmstart",
                              "start": 1704404004994,
                              "status": "success",
                              "end": 1704404030700
                            }
                          ],
                          "end": 1704404032136
                        },
                        {
                          "id": "1704404032136:0",
                          "message": "clean-vm",
                          "start": 1704404032136,
                          "status": "success",
                          "end": 1704404032158,
                          "result": {
                            "merge": false
                          }
                        }
                      ],
                      "end": 1704404032159
                    },
                    {
                      "data": {
                        "id": "349e7130-da43-6550-e7c0-aa0a84102e0f",
                        "isFull": true,
                        "name_label": "Local storage",
                        "type": "SR"
                      },
                      "id": "1704403806214",
                      "message": "export",
                      "start": 1704403806214,
                      "status": "failure",
                      "tasks": [
                        {
                          "id": "1704403807467",
                          "message": "transfer",
                          "start": 1704403807467,
                          "status": "success",
                          "end": 1704403944794,
                          "result": {
                            "size": 9496147968
                          }
                        },
                        {
                          "id": "1704403946008:0",
                          "message": "health check",
                          "start": 1704403946008,
                          "status": "failure",
                          "tasks": [
                            {
                              "id": "1704403946078",
                              "message": "copying-vm",
                              "start": 1704403946078,
                              "status": "success",
                              "end": 1704404030703,
                              "result": "OpaqueRef:3029e1b8-507e-436d-9634-d4e24b5e82c2"
                            }
                          ],
                          "end": 1704404031113,
                          "result": {
                            "message": "healthCheckVm.add_tag is not a function",
                            "name": "TypeError",
                            "stack": "TypeError: healthCheckVm.add_tag is not a function\n    at file:///opt/xen-orchestra/@xen-orchestra/backups/_runners/_writers/_MixinXapiWriter.mjs:61:33\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
                          }
                        }
                      ],
                      "end": 1704404031113,
                      "result": {
                        "message": "healthCheckVm.add_tag is not a function",
                        "name": "TypeError",
                        "stack": "TypeError: healthCheckVm.add_tag is not a function\n    at file:///opt/xen-orchestra/@xen-orchestra/backups/_runners/_writers/_MixinXapiWriter.mjs:61:33\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
                      }
                    }
                  ],
                  "end": 1704404032159
                }
              ],
              "end": 1704404032159
            }
            

            Thank you again for your assistance!

            SW

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

              @stevewest15 said in Health Check Failing After Recent XOCE Update:

              healthCheckVm.add_tag

              I could be wrong here, but I think this is supposed to be healthCheckVm.add_tags

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

                @Danp Thanks! So is this a bug or did I fail to make some changes after updating that's now causing these errors?

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

                  @stevewest15 I suspect that it is a bug that was recently introduced in this commit. Maybe @julien-f will be able to confirm for us.

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    fataugie
                    last edited by

                    I'm seeing the exact same issue. Also, when I updated to the latest build a few minutes ago...when I go into the main Backup overview page, all the jobs are there, but the schedules are missing, the area is just blank. I have to roll back to a previous build

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

                      @julien-f is back this afternoon, he'll take a look ASAP 🙂 Thanks for the report!

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

                        Fixes https://github.com/vatesfr/xen-orchestra/commit/7780cb176a7e345c96fa0b660322c05349385892

                        Thank you for report 🙂

                        0 julien-f committed to vatesfr/xen-orchestra
                        fix(backups/_MixinXapiWriter#healthCheck): add_tag → add_tags
                        
                        Fixes https://xcp-ng.org/forum/post/69156
                        
                        Introduced by a5acc7d26
                        S 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
                        • S Offline
                          stevewest15 @julien-f
                          last edited by

                          @julien-f Thank you! That appears to fix the error. Greatly appreciate your help and @olivierlambert.

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