{"action":"created","issue":{"url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/3739","repository_url":"https://api.github.com/repos/vatesfr/xen-orchestra","labels_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/3739/labels{/name}","comments_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/3739/comments","events_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/3739/events","html_url":"https://github.com/vatesfr/xen-orchestra/issues/3739","id":385986913,"node_id":"MDU6SXNzdWUzODU5ODY5MTM=","number":3739,"title":"[Backup NG] vhdimount can't mount source file in file restore","user":{"login":"PieterWaegeman","id":1144359,"node_id":"MDQ6VXNlcjExNDQzNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1144359?v=4","gravatar_id":"","url":"https://api.github.com/users/PieterWaegeman","html_url":"https://github.com/PieterWaegeman","followers_url":"https://api.github.com/users/PieterWaegeman/followers","following_url":"https://api.github.com/users/PieterWaegeman/following{/other_user}","gists_url":"https://api.github.com/users/PieterWaegeman/gists{/gist_id}","starred_url":"https://api.github.com/users/PieterWaegeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PieterWaegeman/subscriptions","organizations_url":"https://api.github.com/users/PieterWaegeman/orgs","repos_url":"https://api.github.com/users/PieterWaegeman/repos","events_url":"https://api.github.com/users/PieterWaegeman/events{/privacy}","received_events_url":"https://api.github.com/users/PieterWaegeman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-30T00:32:22Z","updated_at":"2018-12-03T14:02:54Z","closed_at":null,"author_association":"NONE","body":"### Context\r\n\r\n- **XO origin**: Sources\r\n- **Versions**:\r\n   - Node: 8.12.0\r\n   - xo-web: 5.31.0\r\n   - xo-server: 5.31.1\r\n\r\n### Expected behavior\r\n\r\nI expect that the vhdi from a delta backup is mounted so I can restore a file from a backup.\r\n\r\n### Current behavior\r\n\r\nWhen I go to the web menu to Backup NG > File restore and select an image, to restore a file I get the dialog to select the backup. This works.\r\nAfter this I select the disk, but when I do this I get the error \"Error while scanning disk\".\r\n\r\nIf I check the logs I see following error:\r\n\r\n> backupNg.listPartitions\r\n{\r\n  \"remote\": \"e224e718-1245-4676-89af-a25e73b99730\",\r\n  \"disk\": \"xo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd\"\r\n}\r\n{\r\n  \"message\": \"Command failed: vhdimount /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd /tmp/tmp-407fMiGPTmFEflO\r\nUnable to open source file.\r\nlibcfile_file_open_with_error_code: no such file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nlibcfile_file_open: unable to open file.\r\nlibbfio_file_open: unable to open file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nlibcfile_file_get_size: invalid file - missing descriptor.\r\nlibbfio_file_get_size: unable to retrieve size of file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nlibbfio_handle_get_size: unable to retrieve size.\r\nlibvhdi_file_open_read: unable to retrieve file size.\r\nlibvhdi_file_open_file_io_handle: unable to read from file handle.\r\nlibvhdi_file_open: unable to open file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nmount_handle_open_input: unable to open input file.\r\n\r\n> vhdimount 20160424\r\n\r\n> \",\r\n  \"stack\": \"Error: Command failed: vhdimount /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd /tmp/tmp-407fMiGPTmFEflO\r\nUnable to open source file.\r\nlibcfile_file_open_with_error_code: no such file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nlibcfile_file_open: unable to open file.\r\nlibbfio_file_open: unable to open file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nlibcfile_file_get_size: invalid file - missing descriptor.\r\nlibbfio_file_get_size: unable to retrieve size of file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nlibbfio_handle_get_size: unable to retrieve size.\r\nlibvhdi_file_open_read: unable to retrieve file size.\r\nlibvhdi_file_open_file_io_handle: unable to read from file handle.\r\nlibvhdi_file_open: unable to open file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nmount_handle_open_input: unable to open input file.\r\n\r\n>vhdimount 20160424\r\n\r\n\r\n    at makeError (/opt/xen-orchestra/node_modules/execa/index.js:174:9)\r\n    at Promise.all.then.arr (/opt/xen-orchestra/node_modules/execa/index.js:278:16)\r\n    at tryCatcher (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:16:23)\r\n    at Promise._settlePromiseFromHandler (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:512:31)\r\n    at Promise._settlePromise (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:569:18)\r\n    at Promise._settlePromise0 (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:614:10)\r\n    at Promise._settlePromises (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:694:18)\r\n    at Promise._fulfill (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:638:18)\r\n    at PromiseArray._resolve (/opt/xen-orchestra/node_modules/bluebird/js/release/promise_array.js:126:19)\r\n    at PromiseArray._promiseFulfilled (/opt/xen-orchestra/node_modules/bluebird/js/release/promise_array.js:144:14)\r\n    at Promise._settlePromise (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:574:26)\r\n    at Promise._settlePromise0 (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:614:10)\r\n    at Promise._settlePromises (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:694:18)\r\n    at _drainQueueStep (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:138:12)\r\n    at _drainQueue (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:131:9)\r\n    at Async._drainQueues (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:147:5)\r\n    at Immediate.Async.drainQueues (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:17:14)\r\n    at runCallback (timers.js:810:20)\r\n    at tryOnImmediate (timers.js:768:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:745:5)\",\r\n >  \"code\": 1,\r\n  \"stdout\": \"vhdimount 20160424\r\n\r\n> \",\r\n  \"stderr\": \"Unable to open source file.\r\nlibcfile_file_open_with_error_code: no such file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nlibcfile_file_open: unable to open file.\r\nlibbfio_file_open: unable to open file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nlibcfile_file_get_size: invalid file - missing descriptor.\r\nlibbfio_file_get_size: unable to retrieve size of file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nlibbfio_handle_get_size: unable to retrieve size.\r\nlibvhdi_file_open_read: unable to retrieve file size.\r\nlibvhdi_file_open_file_io_handle: unable to read from file handle.\r\nlibvhdi_file_open: unable to open file: /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd.\r\nmount_handle_open_input: unable to open input file.\r\n\",\r\n  \"failed\": true,\r\n  \"signal\": null,\r\n  \"cmd\": \"vhdimount /mnt/backupxo-vm-backups/93dc6115-b77f-42b4-0b31-fcd24b26ee94/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/5befd5a9-3147-431a-8e4d-a787682b83cc/20181130T001454Z.vhd /tmp/tmp-407fMiGPTmFEflO\",\r\n  \"timedOut\": false,\r\n  \"killed\": false\r\n} \r\n\r\n\r\nI've made a local remote on the server on /mnt/backup. But when the vhdimount tries to select the file, it just uses \"/mnt/backup\" and not \"/mnt/backup/\". The web interface also does not allow for the input of \"/mnt/backup/\".\r\n\r\nKind regards,\r\n\r\nPieter"},"comment":{"url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/comments/443720160","html_url":"https://github.com/vatesfr/xen-orchestra/issues/3739#issuecomment-443720160","issue_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/3739","id":443720160,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzcyMDE2MA==","user":{"login":"PieterWaegeman","id":1144359,"node_id":"MDQ6VXNlcjExNDQzNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1144359?v=4","gravatar_id":"","url":"https://api.github.com/users/PieterWaegeman","html_url":"https://github.com/PieterWaegeman","followers_url":"https://api.github.com/users/PieterWaegeman/followers","following_url":"https://api.github.com/users/PieterWaegeman/following{/other_user}","gists_url":"https://api.github.com/users/PieterWaegeman/gists{/gist_id}","starred_url":"https://api.github.com/users/PieterWaegeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PieterWaegeman/subscriptions","organizations_url":"https://api.github.com/users/PieterWaegeman/orgs","repos_url":"https://api.github.com/users/PieterWaegeman/repos","events_url":"https://api.github.com/users/PieterWaegeman/events{/privacy}","received_events_url":"https://api.github.com/users/PieterWaegeman/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T14:02:54Z","updated_at":"2018-12-03T14:02:54Z","author_association":"NONE","body":"Logs now only show this when it occurs:\r\n\r\n> Command failed: vhdimount /mnt/backupxo-vm-backups/1809d606-be1e-1b9a-fe68-044ac52b8d37/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/ab188dce-7813-451f-a714-911427f1f81c/20181203T001338Z.vhd /tmp/tmp-8770ymcrtzcfpyk1\r\n> Unable to open source file.\r\n> libcfile_file_open_with_error_code: no such file: /mnt/backupxo-vm-backups/1809d606-be1e-1b9a-fe68-044ac52b8d37/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/ab188dce-7813-451f-a714-911427f1f81c/20181203T001338Z.vhd.\r\n> libcfile_file_open: unable to open file.\r\n> libbfio_file_open: unable to open file: /mnt/backupxo-vm-backups/1809d606-be1e-1b9a-fe68-044ac52b8d37/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/ab188dce-7813-451f-a714-911427f1f81c/20181203T001338Z.vhd.\r\n> libcfile_file_get_size: invalid file - missing descriptor.\r\n> libbfio_file_get_size: unable to retrieve size of file: /mnt/backupxo-vm-backups/1809d606-be1e-1b9a-fe68-044ac52b8d37/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/ab188dce-7813-451f-a714-911427f1f81c/20181203T001338Z.vhd.\r\n> libbfio_handle_get_size: unable to retrieve size.\r\n> libvhdi_file_open_read: unable to retrieve file size.\r\n> libvhdi_file_open_file_io_handle: unable to read from file handle.\r\n> libvhdi_file_open: unable to open file: /mnt/backupxo-vm-backups/1809d606-be1e-1b9a-fe68-044ac52b8d37/vdis/05baeea1-1151-4f7a-b7a9-bda9caf92303/ab188dce-7813-451f-a714-911427f1f81c/20181203T001338Z.vhd.\r\n> mount_handle_open_input: unable to open input file.\r\n> \r\n> vhdimount 20160424"}}
{"actor":{"display_login":"PieterWaegeman"}}