<?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[xoce INTERNAL_ERROR while trying to create VM]]></title><description><![CDATA[<p dir="auto">Something happened with my xoce installation. May be some updates, may be something else, but I did not do much there for some months except upgrading xoce.  Any attempts to create a new VM now results in pink box saying "unknown error from the peer" in top right corner. Clicking on view log  shows this message:</p>
<pre><code>INTERNAL_ERROR((Failure "Expected string, got 'N'"))
</code></pre>
<p dir="auto">If I create NFS SR and then immediately attempt to delete it, I get another strange message:</p>
<pre><code>SR_HAS_NO_PBDS(OpaqueRef:790a7cdc-b5c1-46d5-9c91-f7789e70aa2d)
</code></pre>
<p dir="auto">And there is no way to delete that SR anymore. Any ideas how to fix it? Can't create VMs, can't do anything.  Xen Orchestra, commit ecae5, xo-server 5.93.1, xo-web 5.96.0, updated by this script: <a href="https://github.com/Jarli01/xenorchestra_updater" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Jarli01/xenorchestra_updater</a>. This happened before today's upgrade, I upgraded to latest version, but it did not fix the problem.</p>
<p dir="auto">Hardware servers are like this:</p>
<pre><code>NAME="XCP-ng"
VERSION="8.2.1"
ID="xenenterprise"
ID_LIKE="centos rhel fedora"
VERSION_ID="8.2.1"
PRETTY_NAME="XCP-ng 8.2.1"
ANSI_COLOR="0;31"
HOME_URL="http://xcp-ng.org/"
BUG_REPORT_URL="https://github.com/xcp-ng/xcp"
</code></pre>
]]></description><link>https://xcp-ng.org/forum/topic/5865/xoce-internal_error-while-trying-to-create-vm</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 02:02:58 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/5865.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 May 2022 20:41:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Sun, 15 May 2022 19:26:58 GMT]]></title><description><![CDATA[<p dir="auto"><code>VIM</code> <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f606.png?v=977a46e9d9a" class="not-responsive emoji emoji-android emoji--laughing" style="height:23px;width:auto;vertical-align:middle" title=":laughing:" alt="😆" /></p>
]]></description><link>https://xcp-ng.org/forum/post/49246</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49246</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sun, 15 May 2022 19:26:58 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Sun, 15 May 2022 12:33:36 GMT]]></title><description><![CDATA[<p dir="auto">Thank you all, this is now fixed.</p>
<p dir="auto"><a href="https://github.com/vatesfr/xen-orchestra/commit/07bd9cadd4732554c57e441cd9d860b63f73fe02" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/commit/07bd9cadd4732554c57e441cd9d860b63f73fe02</a></p>
<div class="row github-embeds-container">

<div class="col-md-6">
<div class="github-embed card">
<div class="card-body">



<div class="meta">
<span class="float-end">0 <i class="fa fa-comment"></i></span>
<img class="author-picture not-responsive" src="https://avatars.githubusercontent.com/u/298721?v=4" title="julien-f" />
<a href="https://github.com/julien-f"><span class="username">julien-f</span></a> committed <span class="timeago" title="2022-05-15T12:32:59Z"></span> to <a href="//github.com/vatesfr/xen-orchestra">vatesfr/xen-orchestra</a>
</div>
<a href="https://github.com/vatesfr/xen-orchestra/commit/07bd9cadd4732554c57e441cd9d860b63f73fe02"><pre>fix(xo-server/vm.create): typo during VIF creation

Introduced by ecae554a7

Fixes https://xcp-ng.org/forum/post/49143</pre></a>

</div>
</div>
</div>

</div>]]></description><link>https://xcp-ng.org/forum/post/49245</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49245</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Sun, 15 May 2022 12:33:36 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Sun, 15 May 2022 10:08:57 GMT]]></title><description><![CDATA[<p dir="auto">What will be helpful is trying to find what we broke on <code>master</code>, since we know commit <code>2518395c03b166d28d3432f8feb33578d7b0f717</code> should be good <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=977a46e9d9a" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/49237</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49237</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sun, 15 May 2022 10:08:57 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Sun, 15 May 2022 09:11:48 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> I get the same error on a XO from third party script (same script as OP, commit <code>a1bcd</code>, xo-server 5.93.1, xo-web 5.96.0). Can share the error log and more infos to reproduce the error if that helps.</p>
]]></description><link>https://xcp-ng.org/forum/post/49235</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49235</guid><dc:creator><![CDATA[gskger]]></dc:creator><pubDate>Sun, 15 May 2022 09:11:48 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 16:35:47 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a lot for the extra confirmation <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/harrison" aria-label="Profile: Harrison">@<bdi>Harrison</bdi></a></p>
<p dir="auto">Would you mind trying to bisect since commit <code>2518395c03b166d28d3432f8feb33578d7b0f717</code>? (which should be good).</p>
<p dir="auto">See <a href="https://www.metaltoad.com/blog/beginners-guide-git-bisect-process-elimination" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.metaltoad.com/blog/beginners-guide-git-bisect-process-elimination</a> for more details, on manually try to find the culprit if you prefer <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=977a46e9d9a" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/49192</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49192</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 13 May 2022 16:35:47 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 15:59:18 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> It appears that this is in fact an issue with XOCE.  I was able to reproduce the same error.  I am having no issue with the XOA appliance or XCP-ng Center.</p>
<pre><code>vm.create
{
  "clone": true,
  "existingDisks": {},
  "installation": {
    "method": "cdrom",
    "repository": "54f2aa37-7552-4e36-bb4f-2ae0cf5999c1"
  },
  "name_label": "Windows 10 (64-bit)",
  "template": "68055f83-4afe-2701-51d5-d6ca8fc90a6d-7774689b-4ca1-4dea-8545-dddd6b64c17f",
  "VDIs": [
    {
      "bootable": false,
      "device": "0",
      "size": 34359738368,
      "type": "system",
      "SR": "ef976096-efb6-5a74-bc37-e6d279b08e7d",
      "name_description": "Created by XO",
      "name_label": "Windows 10 (64-bit)_etade"
    }
  ],
  "VIFs": [
    {
      "network": "6061fbef-74bb-945c-ba88-d6868b419817",
      "allowedIpv4Addresses": [],
      "allowedIpv6Addresses": []
    }
  ],
  "CPUs": 2,
  "cpusMax": 2,
  "cpuWeight": null,
  "cpuCap": null,
  "name_description": "",
  "memory": 4294967296,
  "bootAfterCreate": false,
  "copyHostBiosStrings": false,
  "secureBoot": false,
  "share": false,
  "coreOs": false,
  "tags": [],
  "hvmBootFirmware": "uefi"
}
{
  "code": "INTERNAL_ERROR",
  "params": [
    "(Failure \"Expected string, got 'N'\")"
  ],
  "call": {
    "method": "VM.get_power_state",
    "params": [
      null
    ]
  },
  "message": "INTERNAL_ERROR((Failure \"Expected string, got 'N'\"))",
  "name": "XapiError",
  "stack": "XapiError: INTERNAL_ERROR((Failure \"Expected string, got 'N'\"))
    at Function.wrap (/opt/xo/xo-builds/xen-orchestra-202205131525/packages/xen-api/src/_XapiError.js:16:12)
    at /opt/xo/xo-builds/xen-orchestra-202205131525/packages/xen-api/src/transports/json-rpc.js:37:27
    at AsyncResource.runInAsyncScope (node:async_hooks:202:9)
    at cb (/opt/xo/xo-builds/xen-orchestra-202205131525/node_modules/bluebird/js/release/util.js:355:42)
    at tryCatcher (/opt/xo/xo-builds/xen-orchestra-202205131525/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/opt/xo/xo-builds/xen-orchestra-202205131525/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/opt/xo/xo-builds/xen-orchestra-202205131525/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/opt/xo/xo-builds/xen-orchestra-202205131525/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/opt/xo/xo-builds/xen-orchestra-202205131525/node_modules/bluebird/js/release/promise.js:729:18)
    at _drainQueueStep (/opt/xo/xo-builds/xen-orchestra-202205131525/node_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/opt/xo/xo-builds/xen-orchestra-202205131525/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/opt/xo/xo-builds/xen-orchestra-202205131525/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/opt/xo/xo-builds/xen-orchestra-202205131525/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:466:21)
    at process.callbackTrampoline (node:internal/async_hooks:130:17)"
}
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/49191</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49191</guid><dc:creator><![CDATA[Harrison]]></dc:creator><pubDate>Fri, 13 May 2022 15:59:18 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 15:43:15 GMT]]></title><description><![CDATA[<p dir="auto">But that's an error coming from XAPI <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=977a46e9d9a" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /></p>
<p dir="auto">Anyone else having issues on latest <code>master</code> commit?</p>
]]></description><link>https://xcp-ng.org/forum/post/49190</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49190</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 13 May 2022 15:43:15 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 15:23:34 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> Installed xoa appliance, connected it to that server and it seems to work, xoa creates new VM just fine. So, it's certainly a problem  of xoce.</p>
]]></description><link>https://xcp-ng.org/forum/post/49188</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49188</guid><dc:creator><![CDATA[burbilog]]></dc:creator><pubDate>Fri, 13 May 2022 15:23:34 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 13:58:28 GMT]]></title><description><![CDATA[<p dir="auto">Could you try with XOA? This is more and more intriguing, never heard or had this before.</p>
]]></description><link>https://xcp-ng.org/forum/post/49185</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49185</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 13 May 2022 13:58:28 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 13:55:04 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> Ugh.</p>
<p dir="auto">I erased xoce (rm -rf /opt/xen-orchestra &amp;&amp; apt purge redis-server), then reinstalled both xoce and single server afresh. Then I connected brand new, shiny xoce to brand new, shiny server. Only. I did not connect other servers.</p>
<p dir="auto">And I've got the same problem. Added NFS SR, tried to install VM, pink square, error:</p>
<pre><code>vm.create
{
  "clone": true,
  "existingDisks": {},
  "installation": {
    "method": "cdrom",
    "repository": "6b15b403-a94a-4f59-b4bc-4da75bffe4a7"
  },
  "name_label": "x",
  "template": "b8896401-be53-cbc1-58f3-ac0bd696ec55-4b6425be-728a-4a2c-8333-0aef209a348b",
  "VDIs": [
    {
      "bootable": true,
      "device": "0",
      "size": 10737418240,
      "type": "system",
      "SR": "aeaa681d-bf4a-5070-f553-ffe6debb0b54",
      "name_description": "Created by XO",
      "name_label": "CentOS 8_erofa"
    }
  ],
  "VIFs": [
    {
      "network": "b4fd13cc-7b32-0794-d617-2ecd39139dc1",
      "allowedIpv4Addresses": [],
      "allowedIpv6Addresses": []
    }
  ],
  "CPUs": 1,
  "cpusMax": 1,
  "cpuWeight": null,
  "cpuCap": null,
  "name_description": "x",
  "memory": 4294967296,
  "bootAfterCreate": true,
  "copyHostBiosStrings": false,
  "secureBoot": false,
  "share": false,
  "coreOs": false,
  "tags": [],
  "hvmBootFirmware": "bios"
}
{
  "code": "INTERNAL_ERROR",
  "params": [
    "(Failure \"Expected string, got 'N'\")"
  ],
  "call": {
    "method": "VM.get_power_state",
    "params": [
      null
    ]
  },
  "message": "INTERNAL_ERROR((Failure \"Expected string, got 'N'\"))",
  "name": "XapiError",
  "stack": "XapiError: INTERNAL_ERROR((Failure \"Expected string, got 'N'\"))
    at Function.wrap (/opt/xen-orchestra/packages/xen-api/src/_XapiError.js:16:12)
    at /opt/xen-orchestra/packages/xen-api/src/transports/json-rpc.js:37:27
    at AsyncResource.runInAsyncScope (node:async_hooks:202:9)
    at cb (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:355:42)
    at tryCatcher (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:729:18)
    at _drainQueueStep (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:466:21)
    at process.callbackTrampoline (node:internal/async_hooks:130:17)"
}
</code></pre>
<pre><code>May 13 16:49:42 xen xapi: [error||1712 HTTPS 10.1.0.188-&gt;:::80|VM.add_to_platform D:4a241a51b855|sql] Duplicate key in set or map: table VM; field platform; ref OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1; key secureboot
May 13 16:49:42 xen xapi: [error||1714 HTTPS 10.1.0.188-&gt;:::80|VM.add_to_HVM_boot_params D:0d9aca8b9b24|sql] Duplicate key in set or map: table VM; field HVM__boot_params; ref OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1; key firmware
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] VM.add_to_platform D:4a241a51b855 failed with exception Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "secureboot")
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] Raised Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "secureboot")
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 1/8 xapi Raised at file ocaml/database/db_cache_impl.ml, line 310
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 2/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 3/8 xapi Called from file ocaml/xapi/rbac.ml, line 231
May 13 16:49:42 xen xapi: [debug||1711 :::80||api_effect] VM.set_name_description
May 13 16:49:42 xen xapi: [debug||1715 :::80||api_effect] VM.add_to_platform
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] VM.add_to_HVM_boot_params D:0d9aca8b9b24 failed with exception Db_exn.Duplicate_key("VM", "HVM__boot_params", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "firmware")
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 4/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 100
May 13 16:49:42 xen xapi: [error||1715 HTTPS 10.1.0.188-&gt;:::80|VM.add_to_platform D:e5850b8e2aca|sql] Duplicate key in set or map: table VM; field platform; ref OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1; key device-model
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] Raised Db_exn.Duplicate_key("VM", "HVM__boot_params", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "firmware")
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 5/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 121
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 1/8 xapi Raised at file ocaml/database/db_cache_impl.ml, line 310
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] VM.add_to_platform D:e5850b8e2aca failed with exception Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "device-model")
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 6/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 2/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] Raised Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:0766c0ce-6a4d-4c81-b8ab-9956ed2702f1", "device-model")
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 3/8 xapi Called from file ocaml/xapi/rbac.ml, line 231
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 1/8 xapi Raised at file ocaml/database/db_cache_impl.ml, line 310
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 7/8 xapi Called from file map.ml, line 135
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 2/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 4/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 100
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace] 8/8 xapi Called from file src/sexp_conv.ml, line 156
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 5/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 121
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 3/8 xapi Called from file ocaml/xapi/rbac.ml, line 231
May 13 16:49:42 xen xapi: [error||1712 :::80||backtrace]
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 6/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 4/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 100
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 7/8 xapi Called from file map.ml, line 135
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 5/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 121
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace] 8/8 xapi Called from file src/sexp_conv.ml, line 156
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 6/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 16:49:42 xen xapi: [error||1714 :::80||backtrace]
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 7/8 xapi Called from file map.ml, line 135
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace] 8/8 xapi Called from file src/sexp_conv.ml, line 156
May 13 16:49:42 xen xapi: [error||1715 :::80||backtrace]

</code></pre>
<p dir="auto">Perhaps, it's a problem with some latest changes to xoce after all?</p>
]]></description><link>https://xcp-ng.org/forum/post/49183</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49183</guid><dc:creator><![CDATA[burbilog]]></dc:creator><pubDate>Fri, 13 May 2022 13:55:04 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 12:42:29 GMT]]></title><description><![CDATA[<p dir="auto">Let me also ask some XAPI specialists around <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=977a46e9d9a" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/49180</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49180</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 13 May 2022 12:42:29 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 12:21:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/burbilog" aria-label="Profile: burbilog">@<bdi>burbilog</bdi></a> ah, no, there are some repeated, i had to sort it first. but there is a lot of uuids that are repeated.</p>
]]></description><link>https://xcp-ng.org/forum/post/49179</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49179</guid><dc:creator><![CDATA[burbilog]]></dc:creator><pubDate>Fri, 13 May 2022 12:21:19 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 12:16:09 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> installed xo-cli, connected and ran xo-cli --list-objects , then grepped all uuids, stirpped everything else and tried to find dupes -- none. all uuids are unique there.</p>
]]></description><link>https://xcp-ng.org/forum/post/49178</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49178</guid><dc:creator><![CDATA[burbilog]]></dc:creator><pubDate>Fri, 13 May 2022 12:16:09 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 12:03:22 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> I ran xe sr-list and xe-vm-list on all hosts, compiled a list of uuids, sorted them and all of them  are unique. How to search for duplicate keys then?</p>
]]></description><link>https://xcp-ng.org/forum/post/49177</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49177</guid><dc:creator><![CDATA[burbilog]]></dc:creator><pubDate>Fri, 13 May 2022 12:03:22 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 11:55:36 GMT]]></title><description><![CDATA[<p dir="auto">Again, reinstalling won't change anything since the info is within the main DB, which is copied on all pool members from the master  <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=977a46e9d9a" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">You need to find duplicates UUIDs in all your VMs objects.</p>
]]></description><link>https://xcp-ng.org/forum/post/49176</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49176</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 13 May 2022 11:55:36 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 11:52:41 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> So, how to look up these keys? I ran xe vm-list and xe sr-list on all hosts, it seems that all UUIDs are different.</p>
<p dir="auto">I even reinstalled one of the hosts, set up 8.2.1 anew and the problem here persists.</p>
]]></description><link>https://xcp-ng.org/forum/post/49175</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49175</guid><dc:creator><![CDATA[burbilog]]></dc:creator><pubDate>Fri, 13 May 2022 11:52:41 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 10:48:17 GMT]]></title><description><![CDATA[<p dir="auto">It's normal you have the problem on the whole pool/all hosts, because the XAPI database is shared with all hosts.</p>
<p dir="auto">I would search for duplicate keys for platform record on all your existing VMs.</p>
]]></description><link>https://xcp-ng.org/forum/post/49174</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49174</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 13 May 2022 10:48:17 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 10:38:30 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> I did not do anything on these hosts, except occasional yum update. Frankly, i did not touch this setup for a while and it worked a month or two ago ok.</p>
<p dir="auto">I'm kinda surprised that all 3 servers do the same. One of them wasn't touched at all except yum update since it worked ok.</p>
]]></description><link>https://xcp-ng.org/forum/post/49173</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49173</guid><dc:creator><![CDATA[burbilog]]></dc:creator><pubDate>Fri, 13 May 2022 10:38:30 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 10:25:32 GMT]]></title><description><![CDATA[<p dir="auto">I have no context on what you did on those hosts previously, so it's hard to answer what to do to assist.</p>
<p dir="auto">I don't know what could trigger that in the first place <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=977a46e9d9a" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /></p>
]]></description><link>https://xcp-ng.org/forum/post/49172</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49172</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 13 May 2022 10:25:32 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 09:21:10 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> But templates are stock templates, no? It does not matter what template I choose, it fails anyway.</p>
<p dir="auto">How to fix them?</p>
]]></description><link>https://xcp-ng.org/forum/post/49171</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49171</guid><dc:creator><![CDATA[burbilog]]></dc:creator><pubDate>Fri, 13 May 2022 09:21:10 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 09:06:41 GMT]]></title><description><![CDATA[<p dir="auto">You have duplicates in XAPI DB, that's not normal <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=977a46e9d9a" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /></p>
<p dir="auto">It's coming from a template I assume.</p>
]]></description><link>https://xcp-ng.org/forum/post/49170</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49170</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 13 May 2022 09:06:41 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 09:02:57 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> This problem is common for all 3 servers, i did not touch other two hosts at all for a while. I see some strange error appear in xensource.log after VM creation attempt:</p>
<pre><code>May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace] VM.add_to_platform D:87deedffed4a failed with exception Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:cae2f8cd-6d33-4ca8-81a1-0eb76df149bd", "device-model")
May 13 11:59:07 xen xapi: [error||13930 :::80||backtrace] 3/8 xapi Called from file ocaml/xapi/rbac.ml, line 231
May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace] Raised Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:cae2f8cd-6d33-4ca8-81a1-0eb76df149bd", "device-model")
May 13 11:59:07 xen xapi: [error||13930 :::80||backtrace] 4/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 100
May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace] 1/8 xapi Raised at file ocaml/database/db_cache_impl.ml, line 310
May 13 11:59:07 xen xapi: [error||13930 :::80||backtrace] 5/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 121
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace] VM.add_to_platform D:6b3c2fce951b failed with exception Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:cae2f8cd-6d33-4ca8-81a1-0eb76df149bd", "secureboot")
May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace] 2/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 11:59:07 xen xapi: [error||13930 :::80||backtrace] 6/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace] Raised Db_exn.Duplicate_key("VM", "platform", "OpaqueRef:cae2f8cd-6d33-4ca8-81a1-0eb76df149bd", "secureboot")
May 13 11:59:07 xen xapi: [error||13930 :::80||backtrace] 7/8 xapi Called from file map.ml, line 135
May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace] 3/8 xapi Called from file ocaml/xapi/rbac.ml, line 231
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace] 1/8 xapi Raised at file ocaml/database/db_cache_impl.ml, line 310
May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace] 4/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 100
May 13 11:59:07 xen xapi: [error||13930 :::80||backtrace] 8/8 xapi Called from file src/sexp_conv.ml, line 156
May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace] 5/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 121
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace] 2/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 11:59:07 xen xapi: [error||13930 :::80||backtrace]
May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace] 6/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace] 3/8 xapi Called from file ocaml/xapi/rbac.ml, line 231
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace] 4/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 100
May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace] 7/8 xapi Called from file map.ml, line 135
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace] 5/8 xapi Called from file ocaml/xapi/server_helpers.ml, line 121
May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace] 8/8 xapi Called from file src/sexp_conv.ml, line 156
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace] 6/8 xapi Called from file lib/xapi-stdext-pervasives/pervasiveext.ml, line 24
May 13 11:59:07 xen xapi: [error||13931 :::80||backtrace]
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace] 7/8 xapi Called from file map.ml, line 135
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace] 8/8 xapi Called from file src/sexp_conv.ml, line 156
May 13 11:59:07 xen xapi: [error||13929 :::80||backtrace]
</code></pre>
<p dir="auto">This problem is common for all servers.</p>
]]></description><link>https://xcp-ng.org/forum/post/49169</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49169</guid><dc:creator><![CDATA[burbilog]]></dc:creator><pubDate>Fri, 13 May 2022 09:02:57 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 08:15:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/burbilog" aria-label="Profile: burbilog">@<bdi>burbilog</bdi></a> said in <a href="/forum/post/49167">xoce INTERNAL_ERROR while trying to create VM</a>:</p>
<blockquote>
<p dir="auto">INTERNAL_ERROR((Failure "Expected string, got 'N'")</p>
</blockquote>
<p dir="auto">You have to investigate on your XCP-ng host, there's obviously a problem in there.</p>
<p dir="auto">See <a href="https://xcp-ng.org/docs/troubleshooting.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://xcp-ng.org/docs/troubleshooting.html</a></p>
<p dir="auto">I would suggest to restart the toolstack too.</p>
]]></description><link>https://xcp-ng.org/forum/post/49168</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49168</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 13 May 2022 08:15:38 GMT</pubDate></item><item><title><![CDATA[Reply to xoce INTERNAL_ERROR while trying to create VM on Fri, 13 May 2022 08:09:33 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></p>
<pre><code>vm.create
{
  "clone": true,
  "existingDisks": {},
  "installation": {
    "method": "cdrom",
    "repository": "44b7c853-a994-4563-9981-b31e0437ae5c"
  },
  "name_label": "x",
  "template": "a961ebe2-d3fc-bc79-7eab-e0eef25f0025-4b6425be-728a-4a2c-8333-0aef209a348b",
  "VDIs": [
    {
      "bootable": true,
      "device": "0",
      "size": 10737418240,
      "type": "system",
      "SR": "47a51cb0-8113-9b8f-07d6-6c61ac99f479",
      "name_description": "Created by XO",
      "name_label": "CentOS 8_ezaro"
    }
  ],
  "VIFs": [
    {
      "network": "82a075b9-03c3-e4fc-8592-09da06b879ab",
      "allowedIpv4Addresses": [],
      "allowedIpv6Addresses": []
    }
  ],
  "CPUs": 1,
  "cpusMax": 1,
  "cpuWeight": null,
  "cpuCap": null,
  "name_description": "x",
  "memory": 4294967296,
  "bootAfterCreate": true,
  "copyHostBiosStrings": false,
  "secureBoot": false,
  "share": false,
  "coreOs": false,
  "tags": [],
  "hvmBootFirmware": "bios"
}
{
  "code": "INTERNAL_ERROR",
  "params": [
    "(Failure \"Expected string, got 'N'\")"
  ],
  "call": {
    "method": "VM.get_power_state",
    "params": [
      null
    ]
  },
  "message": "INTERNAL_ERROR((Failure \"Expected string, got 'N'\"))",
  "name": "XapiError",
  "stack": "XapiError: INTERNAL_ERROR((Failure \"Expected string, got 'N'\"))
    at Function.wrap (/opt/xen-orchestra/packages/xen-api/src/_XapiError.js:16:12)
    at /opt/xen-orchestra/packages/xen-api/src/transports/json-rpc.js:37:27
    at AsyncResource.runInAsyncScope (node:async_hooks:202:9)
    at cb (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:355:42)
    at tryCatcher (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:729:18)
    at _drainQueueStep (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (node:internal/timers:466:21)
    at process.callbackTrampoline (node:internal/async_hooks:130:17)"
}
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/49167</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/49167</guid><dc:creator><![CDATA[burbilog]]></dc:creator><pubDate>Fri, 13 May 2022 08:09:33 GMT</pubDate></item></channel></rss>