The "paths[1]" argument must be of type string. Received undefined
-
commit 9939c, xen 8.2.1.
after latest update, one VM at one job failed with interesting error.{ "data": { "type": "VM", "id": "6feb8e90-2595-3585-8338-24b6aae17f9a", "name_label": "name" }, "id": "1732179827258", "message": "backup VM", "start": 1732179827258, "status": "failure", "tasks": [ { "id": "1732179827332", "message": "clean-vm", "start": 1732179827332, "status": "failure", "warnings": [ { "data": { "path": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241107T090318Z.alias.vhd", "error": { "generatedMessage": true, "code": "ERR_ASSERTION", "actual": false, "expected": true, "operator": "==" } }, "message": "VHD check error" }, { "data": { "alias": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241107T090318Z.alias.vhd" }, "message": "missing target of alias" } ], "end": 1732180079109, "result": { "code": "ERR_INVALID_ARG_TYPE", "message": "The \"paths[1]\" argument must be of type string. Received undefined", "name": "TypeError", "stack": "TypeError [ERR_INVALID_ARG_TYPE]: The \"paths[1]\" argument must be of type string. Received undefined\n at resolve (node:path:1169:7)\n at normalize (/opt/xo/xo-builds/xen-orchestra-202411191133/@xen-orchestra/fs/dist/path.js:21:27)\n at NfsHandler.__unlink (/opt/xo/xo-builds/xen-orchestra-202411191133/@xen-orchestra/fs/dist/abstract.js:412:32)\n at NfsHandler.unlink (/opt/xo/xo-builds/xen-orchestra-202411191133/node_modules/limit-concurrency-decorator/index.js:97:24)\n at checkAliases (file:///opt/xo/xo-builds/xen-orchestra-202411191133/@xen-orchestra/backups/_cleanVm.mjs:132:25)\n at async Array.<anonymous> (file:///opt/xo/xo-builds/xen-orchestra-202411191133/@xen-orchestra/backups/_cleanVm.mjs:284:5)\n at async Promise.all (index 0)\n at async RemoteAdapter.cleanVm (file:///opt/xo/xo-builds/xen-orchestra-202411191133/@xen-orchestra/backups/_cleanVm.mjs:283:3)" } }, { "id": "1732179827338", "message": "clean-vm", "start": 1732179827338, "status": "failure", "warnings": [ { "data": { "path": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241107T090318Z.alias.vhd", "error": { "generatedMessage": true, "code": "ERR_ASSERTION", "actual": false, "expected": true, "operator": "==" } }, "message": "VHD check error" }, { "data": { "alias": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241107T090318Z.alias.vhd" }, "message": "missing target of alias" } ], "end": 1732180078116, "result": { "code": "ERR_INVALID_ARG_TYPE", "message": "The \"paths[1]\" argument must be of type string. Received undefined", "name": "TypeError", "stack": "TypeError [ERR_INVALID_ARG_TYPE]: The \"paths[1]\" argument must be of type string. Received undefined\n at resolve (node:path:1169:7)\n at normalize (/opt/xo/xo-builds/xen-orchestra-202411191133/@xen-orchestra/fs/dist/path.js:21:27)\n at NfsHandler.__unlink (/opt/xo/xo-builds/xen-orchestra-202411191133/@xen-orchestra/fs/dist/abstract.js:412:32)\n at NfsHandler.unlink (/opt/xo/xo-builds/xen-orchestra-202411191133/node_modules/limit-concurrency-decorator/index.js:97:24)\n at checkAliases (file:///opt/xo/xo-builds/xen-orchestra-202411191133/@xen-orchestra/backups/_cleanVm.mjs:132:25)\n at async Array.<anonymous> (file:///opt/xo/xo-builds/xen-orchestra-202411191133/@xen-orchestra/backups/_cleanVm.mjs:284:5)\n at async Promise.all (index 5)\n at async RemoteAdapter.cleanVm (file:///opt/xo/xo-builds/xen-orchestra-202411191133/@xen-orchestra/backups/_cleanVm.mjs:283:3)" } }, { "id": "1732180081190", "message": "snapshot", "start": 1732180081190, "status": "success", "end": 1732180083668, "result": "ab331405-2ae3-af13-1c6d-3482cfcf1f3a" }, { "data": { "id": "4b6d24a3-0b1e-48d5-aac2-a06e3a8ee485", "isFull": false, "type": "remote" }, "id": "1732180083668:0", "message": "export", "start": 1732180083668, "status": "success", "tasks": [ { "id": "1732180087479", "message": "transfer", "start": 1732180087479, "status": "success", "end": 1732180165572, "result": { "size": 6172148736 } }, { "id": "1732180539007", "message": "clean-vm", "start": 1732180539007, "status": "success", "warnings": [ { "data": { "parent": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241107T090318Z.alias.vhd", "child": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241107T170223Z.alias.vhd" }, "message": "parent VHD is missing" }, { "data": { "parent": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241107T170223Z.alias.vhd", "child": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241108T010229Z.alias.vhd" }, "message": "parent VHD is missing" }, { "data": { "parent": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241108T010229Z.alias.vhd", "child": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241108T090332Z.alias.vhd" }, "message": "parent VHD is missing" }, { "data": { "parent": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241108T090332Z.alias.vhd", "child": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241108T170238Z.alias.vhd" }, "message": "parent VHD is missing" }, { "data": { "parent": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241108T170238Z.alias.vhd", "child": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241109T010253Z.alias.vhd" }, "message": "parent VHD is missing" }, { "data": { "parent": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241109T010253Z.alias.vhd", "child": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241109T090400Z.alias.vhd" }, "message": "parent VHD is missing" }, { "data": { "parent": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241109T090400Z.alias.vhd", "child": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241109T170401Z.alias.vhd" }, "message": "parent VHD is missing" }, { "data": { "parent": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241109T170401Z.alias.vhd", "child": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241110T010358Z.alias.vhd" }, "message": "parent VHD is missing" }, { "data": { "parent": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241110T010358Z.alias.vhd", "child": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241110T090459Z.alias.vhd" }, "message": "parent VHD is missing" }, { "data": { "parent": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241110T090459Z.alias.vhd", "child": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241110T170554Z.alias.vhd" }, "message": "parent VHD is missing" }, { "data": { "backup": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/20241108T170238Z.json", "missingVhds": [ "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241108T170238Z.alias.vhd" ] }, "message": "some VHDs linked to the backup are missing" }, { "data": { "backup": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/20241109T010253Z.json", "missingVhds": [ "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241109T010253Z.alias.vhd" ] }, "message": "some VHDs linked to the backup are missing" }, { "data": { "backup": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/20241107T170223Z.json", "missingVhds": [ "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241107T170223Z.alias.vhd" ] }, "message": "some VHDs linked to the backup are missing" }, { "data": { "backup": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/20241108T090332Z.json", "missingVhds": [ "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241108T090332Z.alias.vhd" ] }, "message": "some VHDs linked to the backup are missing" }, { "data": { "backup": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/20241108T010229Z.json", "missingVhds": [ "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241108T010229Z.alias.vhd" ] }, "message": "some VHDs linked to the backup are missing" }, { "data": { "backup": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/20241109T090400Z.json", "missingVhds": [ "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241109T090400Z.alias.vhd" ] }, "message": "some VHDs linked to the backup are missing" }, { "data": { "backup": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/20241109T170401Z.json", "missingVhds": [ "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241109T170401Z.alias.vhd" ] }, "message": "some VHDs linked to the backup are missing" }, { "data": { "backup": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/20241110T170554Z.json", "missingVhds": [ "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241110T170554Z.alias.vhd" ] }, "message": "some VHDs linked to the backup are missing" }, { "data": { "backup": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/20241110T010358Z.json", "missingVhds": [ "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241110T010358Z.alias.vhd" ] }, "message": "some VHDs linked to the backup are missing" }, { "data": { "backup": "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/20241110T090459Z.json", "missingVhds": [ "/xo-vm-backups/6feb8e90-2595-3585-8338-24b6aae17f9a/vdis/8b3f311e-90dd-495d-8626-819df32958f6/06681026-471a-4243-ac6b-ce6d173d687a/20241110T090459Z.alias.vhd" ] }, "message": "some VHDs linked to the backup are missing" } ], "end": 1732180651483, "result": { "merge": false } } ], "end": 1732180651497 },
-
Thanks for the report. It's probably related to https://github.com/vatesfr/xen-orchestra/pull/8085.
-
@Tristis-Oris said in The "paths[1]" argument must be of type string. Received undefined:
@xen-orchestra/fs/dist/abstract.js:412
Can you show the settings you used for your NFS mount?
-
@stephane-m-dev
Device:\\1.2.3.4.:Port:/backupVM
Options:vers=4,nconnect=16,noauto,x-systemd.automount,x-systemd.device-timeout=10,x-systemd.idle-timeout=1min
-
Device:
\\1.2.3.4.:Port:/backupVM
Options:vers=4,nconnect=16,noauto,x-systemd.automount,x-systemd.device-timeout=10,x-systemd.idle-timeout=1min
I tried mounting and backing up with the same settings and didn't notice anything special. The changes in the update only concerned the case where a port number was entered.
The NFS mount is done correctly and the error only occurs at the time of backup, is that it?
-
@stephane-m-dev for now it single error.