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 3.0k 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.
    • S
      stevewest15
      last edited by

      Xen Orchestra, commit 0f00c
      Master, commit 0f00c

      n lts: v20.10.0 (with npm 10.2.3)
      nodejs: v12.22.5

      Hi,

      XO backups have been working fine but after updating XCP 8.2 to 8.2.1 and updating XOCE to the latest build, the nightly backups are all failing the health check with the error "healthCheckVm.add_tag is not a function":

      165baaa3-0a1a-41c7-a224-99d65e809086-image.png

                "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)"
      

      I'm unsure if the XCP update or the XOCE recent update is causing the above error.

      I'm wondering if it is safe to revert XOCE VM to an older version or will that break something w/ XCP?

      Thank you,

      SW

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

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

        Thank you for report 🙂

        S 1 Reply Last reply
        Reply Quote 0
        • olivierlambertO
          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
            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
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              🔥

              S 1 Reply Last reply
              Reply Quote 1
              • S
                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
                  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
                    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
                      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
                        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
                          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
                            julien-f Vates 🪐 Co-Founder XO Team @olivierlambert
                            last edited by

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

                            Thank you for report 🙂

                            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
                              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

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              • First post
                                Last post