<?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[Error: Can't init vhd directory without using alias]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I got this error during the last backup. Any idea what could be wrong? Thanks.</p>
<p dir="auto">XO commit 99312</p>
<pre><code> {
      "id": "0mtxmc70v-3ew1fc28kiw",
      "start": 1789171202191,
      "status": "failure",
      "tasks": [
        {
          "id": "0mtxmc714-no836gl44qs",
          "start": 1789171202200,
          "status": "success",
          "end": 1789171233085,
          "result": {
            "removedFiles": [],
            "changedFiles": [],
            "merge": false,
            "size": 0
          },
          "message": "clean-vm"
        },
        {
          "id": "0mtxmcv1f-0b2n37nmhd1u",
          "start": 1789171233315,
          "status": "success",
          "end": 1789171236104,
          "result": "cbb23056-280d-224a-c8d7-d9f8d477fd39",
          "message": "snapshot"
        },
        {
          "id": "0mtxmcx6w-67x8mlawksw",
          "start": 1789171236104,
          "status": "failure",
          "tasks": [
            {
              "id": "0mtxmfj61-f15a842hptd",
              "start": 1789171357897,
              "status": "failure",
              "end": 1789171385911,
              "result": {
                "code": "NOT_SUPPORTED",
                "message": "Can't init vhd directory without using alias",
                "name": "Error",
                "stack": "Error: Can't init vhd directory without using alias\n    at RemoteVhdDisk.init (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backup-archive/dist/disks/RemoteVhdDisk.mjs:74:41)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async openDisposableDisk (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backup-archive/dist/disks/index.mjs:32:9)\n    at async Promise.all (index 0)\n    at async checkDisk (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backups/_runners/_writers/_checkDisk.mjs:5:3)\n    at async DiskConsumerVhdDirectory.write (file:///opt/xo/xo-builds/xen-orchestra-202609112300/packages/vhd-lib/disk-consumer/DiskConsumerVhdDirectory.mjs:98:7)\n    at async writeToVhdDirectory (file:///opt/xo/xo-builds/xen-orchestra-202609112300/packages/vhd-lib/disk-consumer/index.mjs:43:10)\n    at async RemoteAdapter.writeVhd (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backups/RemoteAdapter.mjs:487:14)\n    at async asyncEach.concurrency (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backups/_runners/_writers/IncrementalRemoteWriter.mjs:276:31)"
              },
              "message": "transfer"
            }
          ],
          "end": 1789171385913,
          "result": {
            "code": "NOT_SUPPORTED",
            "message": "Can't init vhd directory without using alias",
            "name": "Error",
            "stack": "Error: Can't init vhd directory without using alias\n    at RemoteVhdDisk.init (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backup-archive/dist/disks/RemoteVhdDisk.mjs:74:41)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async openDisposableDisk (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backup-archive/dist/disks/index.mjs:32:9)\n    at async Promise.all (index 0)\n    at async checkDisk (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backups/_runners/_writers/_checkDisk.mjs:5:3)\n    at async DiskConsumerVhdDirectory.write (file:///opt/xo/xo-builds/xen-orchestra-202609112300/packages/vhd-lib/disk-consumer/DiskConsumerVhdDirectory.mjs:98:7)\n    at async writeToVhdDirectory (file:///opt/xo/xo-builds/xen-orchestra-202609112300/packages/vhd-lib/disk-consumer/index.mjs:43:10)\n    at async RemoteAdapter.writeVhd (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backups/RemoteAdapter.mjs:487:14)\n    at async asyncEach.concurrency (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backups/_runners/_writers/IncrementalRemoteWriter.mjs:276:31)"
          },
          "message": "export",
          "data": {
            "id": "b9438bf1-1439-4aaf-b62f-31f3c7d3f93d",
            "isFull": false,
            "type": "remote"
          }
        }
      ],
      "infos": [
        {
          "message": "Transfer data using NBD"
        },
        {
          "message": "will delete snapshot data"
        },
        {
          "data": {
            "vdiRef": "OpaqueRef:11cb87e5-ce7f-4a20-4051-a9033e0c218c"
          },
          "message": "Snapshot data has been deleted"
        }
      ],
      "end": 1789171387177,
      "result": {
        "code": "NOT_SUPPORTED",
        "message": "Can't init vhd directory without using alias",
        "name": "Error",
        "stack": "Error: Can't init vhd directory without using alias\n    at RemoteVhdDisk.init (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backup-archive/dist/disks/RemoteVhdDisk.mjs:74:41)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async openDisposableDisk (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backup-archive/dist/disks/index.mjs:32:9)\n    at async Promise.all (index 0)\n    at async checkDisk (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backups/_runners/_writers/_checkDisk.mjs:5:3)\n    at async DiskConsumerVhdDirectory.write (file:///opt/xo/xo-builds/xen-orchestra-202609112300/packages/vhd-lib/disk-consumer/DiskConsumerVhdDirectory.mjs:98:7)\n    at async writeToVhdDirectory (file:///opt/xo/xo-builds/xen-orchestra-202609112300/packages/vhd-lib/disk-consumer/index.mjs:43:10)\n    at async RemoteAdapter.writeVhd (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backups/RemoteAdapter.mjs:487:14)\n    at async asyncEach.concurrency (file:///opt/xo/xo-builds/xen-orchestra-202609112300/@xen-orchestra/backups/_runners/_writers/IncrementalRemoteWriter.mjs:276:31)"
      },
      "message": "backup VM",
      "data": {
        "id": "f855838c-1130-75fc-ae72-158fc75241ae",
        "type": "VM",
        "name_label": "WSDB01",
        "progress": 0
      }
    },
</code></pre>
<p dir="auto">NFS remote; jobs for all backup-up VMs are affected.</p>
]]></description><link>https://xcp-ng.org/forum/topic/12468/error-can-t-init-vhd-directory-without-using-alias</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 08:28:24 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12468.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Sep 2026 06:23:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error: Can't init vhd directory without using alias on Sat, 12 Sep 2026 07:26:25 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for pasting the whole log; that made this much easier to chase.</p>
<p dir="auto">Wild guess, but I think this may be a regression from <a href="https://github.com/vatesfr/xen-orchestra/pull/10124" target="_blank" rel="noopener noreferrer nofollow ugc">PR #10124</a> ("replace vhd-lib calls with abstract methods"), which was squash-merged onto <code>master</code> as <code>adecd7306</code> on 2026-09-11 at 09:42 UTC, just before your <code>202609112300</code> nightly was cut. <code>master</code> is still sitting at <code>99312eca2</code>, with no fix (if any fix is needed, I'm out of my depth in this area) after that commit that I can find.</p>
<p dir="auto">Reading the code on <code>master</code>, the transfer step now checks the VHD it just wrote and passes that data-directory path along while the <code>.alias.vhd</code> doesn't exist yet; <code>RemoteVhdDisk.init</code> then refuses a directory path that isn't an alias. I could easily be wrong about that, though, and <a href="https://xcp-ng.org/forum/topic/11875">thread 11875</a> is a reminder that this same message has had more than one cause.</p>
<p dir="auto">If, by any chance, I've got it right, it would only affect repositories with "store backup as multiple data blocks" enabled. So does it also fail on a repository without that option?</p>
<p dir="auto">Rolling back to a commit from before yesterday morning should get you going again in the meantime, and it's probably worth mentioning <code>@Team-XO-Backend</code> so the people who own this code see it.</p>
<p dir="auto">And if I've made a total fool of myself with this "analysis", so be it. <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f937.png?v=2bdbead4301" class="not-responsive emoji emoji-android emoji--shrug" style="height:23px;width:auto;vertical-align:middle" title=":shrug:" alt="🤷" /></p>
]]></description><link>https://xcp-ng.org/forum/post/108456</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108456</guid><dc:creator><![CDATA[poddingue]]></dc:creator><pubDate>Sat, 12 Sep 2026 07:26:25 GMT</pubDate></item><item><title><![CDATA[Reply to Error: Can't init vhd directory without using alias on Sat, 12 Sep 2026 07:20:25 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://xcp-ng.org/forum/topic/11875/master-commit-a3139-failing-backups">https://xcp-ng.org/forum/topic/11875/master-commit-a3139-failing-backups</a></p>
]]></description><link>https://xcp-ng.org/forum/post/108454</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108454</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Sat, 12 Sep 2026 07:20:25 GMT</pubDate></item></channel></rss>