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

    Cannot read property 'sort' of undefined while installing patches

    Scheduled Pinned Locked Moved Xen Orchestra
    9 Posts 4 Posters 1.5k 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.
    • E Offline
      errellion
      last edited by

      Hello,

      5 patches shown recently to be installed, but "Installing pool patches" results in error "Cannot read property 'sort' of undefined"

      af1d14ab-9a84-4cc9-83e8-21a144e2011b-obraz.png

      Clicking on show logs reveal this error:

      pool.installPatches
      {
        "pool": "a66af9e5-10c6-f811-e54a-3312f2c404b7"
      }
      {
        "message": "Cannot read property 'sort' of undefined",
        "name": "TypeError",
        "stack": "TypeError: Cannot read property 'sort' of undefined
          at Xapi._xcpUpdate (file:///opt/xo/xo-builds/xen-orchestra-202204111145/packages/xo-server/src/xapi/mixins/patching.mjs:313:19)
          at Xapi.installPatches (file:///opt/xo/xo-builds/xen-orchestra-202204111145/packages/xo-server/src/xapi/mixins/patching.mjs:453:19)
          at Object.call (file:///opt/xo/xo-builds/xen-orchestra-202204111145/packages/xo-server/src/api/pool.mjs:141:14)
          at Api.callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202204111145/packages/xo-server/src/xo-mixins/api.mjs:314:33)"
      

      }

      I don't know if this is related to all patches, or only those that are shown below.

      I'm running: XCP-ng 8.2.1 (GPLv2) and newest XenOrchestra from sources.

      8b0306c9-b958-4d04-89f0-b63737cb6ad3-obraz.png

      1 Reply Last reply Reply Quote 0
      • E Offline
        errellion
        last edited by errellion

        Oh, it turns out, those are patches for Host, not Pool patches. Going Home - Host - <particular host> - Patches - it shows "5" in patches tab and I can install it. However just hover over Home it shows exclamation mark on Pools, and then same patches are in patches tab on Pool level, resulting in this error while trying to install it.

        You can delete this thread or mark as solved for others if they have same issue. Kind of bug showing Host patches in Pools tab?

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

          Actually, it's a known issue with installing pool patches via XO. A fix should be coming soon. See here for details.

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            errellion @Danp
            last edited by

            @Danp Thanks for the update on this, I will follow it on XO github as well 🙂

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

              It will be fixed tonight 🙂

              1 Reply Last reply Reply Quote 0
              • DanpD Danp referenced this topic on
              • J jrubenc referenced this topic on
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                It's now fixed since commit 2bd3d57f8ae21cdbe6836afae724dc906fe80eb3 (available on master)

                E 1 Reply Last reply Reply Quote 0
                • E Offline
                  errellion @olivierlambert
                  last edited by

                  @olivierlambert Thanks a lot. Updating 🙂

                  rauly1994R 1 Reply Last reply Reply Quote 0
                  • rauly1994R Offline
                    rauly1994 @errellion
                    last edited by

                    @errellion said in Cannot read property 'sort' of undefined while installing patches:

                    I wanted to know how to update the open source version.

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

                      It's documented in the official documentation.

                      https://xen-orchestra.com/docs/installation.html#updating

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