Cannot read property 'sort' of undefined while installing patches
-
Hello,
5 patches shown recently to be installed, but "Installing pool patches" results in error "Cannot read property 'sort' of undefined"
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.
-
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?
-
Actually, it's a known issue with installing pool patches via XO. A fix should be coming soon. See here for details.
-
@Danp Thanks for the update on this, I will follow it on XO github as well
-
It will be fixed tonight
-
-
-
It's now fixed since commit
2bd3d57f8ae21cdbe6836afae724dc906fe80eb3
(available onmaster
) -
@olivierlambert Thanks a lot. Updating
-
@errellion said in Cannot read property 'sort' of undefined while installing patches:
I wanted to know how to update the open source version.
-
It's documented in the official documentation.