<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cannot read property 'sort' of undefined while installing patches]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">5 patches shown recently to be installed, but "Installing pool patches" results in error "Cannot read property 'sort' of undefined"</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1649755641558-af1d14ab-9a84-4cc9-83e8-21a144e2011b-obraz.png" alt="af1d14ab-9a84-4cc9-83e8-21a144e2011b-obraz.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">Clicking on show logs reveal this error:</p>
<pre><code>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)"
</code></pre>
<p dir="auto">}</p>
<p dir="auto">I don't know if this is related to all patches, or only those that are shown below.</p>
<p dir="auto">I'm running: XCP-ng 8.2.1 (GPLv2) and newest XenOrchestra from sources.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1649755540202-8b0306c9-b958-4d04-89f0-b63737cb6ad3-obraz.png" alt="8b0306c9-b958-4d04-89f0-b63737cb6ad3-obraz.png" class="img-markdown  img-fluid" /></p>
]]></description><link>https://xcp-ng.org/forum/topic/5759/cannot-read-property-sort-of-undefined-while-installing-patches</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 09:37:12 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/5759.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Apr 2022 09:46:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cannot read property 'sort' of undefined while installing patches on Sat, 28 May 2022 10:13:29 GMT]]></title><description><![CDATA[<p dir="auto">It's documented in the official documentation.</p>
<p dir="auto"><a href="https://xen-orchestra.com/docs/installation.html#updating" target="_blank" rel="noopener noreferrer nofollow ugc">https://xen-orchestra.com/docs/installation.html#updating</a></p>
]]></description><link>https://xcp-ng.org/forum/post/49624</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49624</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sat, 28 May 2022 10:13:29 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot read property 'sort' of undefined while installing patches on Sat, 28 May 2022 03:16:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/errellion" aria-label="Profile: errellion">@<bdi>errellion</bdi></a> said in <a href="/forum/post/48352">Cannot read property 'sort' of undefined while installing patches</a>:</p>
<blockquote></blockquote>
<p dir="auto">I wanted to know how to update the open source version.</p>
]]></description><link>https://xcp-ng.org/forum/post/49618</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49618</guid><dc:creator><![CDATA[rauly1994]]></dc:creator><pubDate>Sat, 28 May 2022 03:16:38 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot read property 'sort' of undefined while installing patches on Thu, 14 Apr 2022 08:15:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> Thanks a lot. Updating <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=1d3f495298e" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/48352</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/48352</guid><dc:creator><![CDATA[errellion]]></dc:creator><pubDate>Thu, 14 Apr 2022 08:15:37 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot read property 'sort' of undefined while installing patches on Wed, 13 Apr 2022 15:58:08 GMT]]></title><description><![CDATA[<p dir="auto">It's now fixed since commit <code>2bd3d57f8ae21cdbe6836afae724dc906fe80eb3</code> (available on <code>master</code>)</p>
]]></description><link>https://xcp-ng.org/forum/post/48325</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/48325</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 13 Apr 2022 15:58:08 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot read property 'sort' of undefined while installing patches on Tue, 12 Apr 2022 12:55:23 GMT]]></title><description><![CDATA[<p dir="auto">It will be fixed tonight <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=1d3f495298e" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/48271</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/48271</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Tue, 12 Apr 2022 12:55:23 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot read property 'sort' of undefined while installing patches on Tue, 12 Apr 2022 11:21:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/danp" aria-label="Profile: Danp">@<bdi>Danp</bdi></a> Thanks for the update on this, I will follow it on XO github as well <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=1d3f495298e" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/48269</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/48269</guid><dc:creator><![CDATA[errellion]]></dc:creator><pubDate>Tue, 12 Apr 2022 11:21:19 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot read property 'sort' of undefined while installing patches on Tue, 12 Apr 2022 10:50:23 GMT]]></title><description><![CDATA[<p dir="auto">Actually, it's a known issue with installing pool patches via XO. A fix should be coming soon. See <a href="https://github.com/vatesfr/xen-orchestra/issues/6170" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> for details.</p>
]]></description><link>https://xcp-ng.org/forum/post/48268</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/48268</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Tue, 12 Apr 2022 10:50:23 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot read property 'sort' of undefined while installing patches on Tue, 12 Apr 2022 09:51:58 GMT]]></title><description><![CDATA[<p dir="auto">Oh, it turns out, those are patches for Host, not Pool patches. Going Home - Host - &lt;particular host&gt; - 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.</p>
<p dir="auto">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?</p>
]]></description><link>https://xcp-ng.org/forum/post/48265</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/48265</guid><dc:creator><![CDATA[errellion]]></dc:creator><pubDate>Tue, 12 Apr 2022 09:51:58 GMT</pubDate></item></channel></rss>