Error on File Restore
-
Hello,
I'm testing XO from sources on Ubuntu 18.04, with latest xo-server 5.62.1 and xo-web 5.64.0.Trying to recover files from a Delta Backup it gives me error when selecting partition, and not displaying files in it. I can see in logs:
Command failed with exit code 1: mount --options=loop,ro,offset=2097152 --source=/tmp/tmp-6385BUcmsE5p053J/vhdi1 --target=/tmp/tmp-6385GG616YBINcsO
mount: only root can use "--options" optionXO is using non-root user 'xo', that has permisions to mount NFS remotes.
Info related to problem:
root@VMwXenOrchestra01:/var/log# tail -f syslog ... Jul 30 22:24:40 VMwXenOrchestra01 xo-server[6385]: 2020-07-30T20:24:40.324Z xo:api WARN admin@admin.net | backupNg.listFiles(...) [103ms] =!> Error: Command failed with exit code 1: mount --options=loop,ro,offset=2097152 --source=/tmp/tmp-6385BUcmsE5p053J/vhdi1 --target=/tmp/tmp-6385GG616YBINcsO Jul 30 22:24:40 VMwXenOrchestra01 xo-server[6385]: mount: only root can use "--options" option root@VMwXenOrchestra01:/run/sr-mount# ps -ef | grep xo xo 6385 1 7 15:01 ? 00:32:52 node /opt/xen-orchestra/packages/xo-server/bin/xo-server xo 6415 6385 0 15:01 ? 00:00:00 /usr/bin/node /opt/xen-orchestra/node_modules/jest-worker/build/workers/processChild.js xo 6416 6385 0 15:01 ? 00:00:00 /usr/bin/node /opt/xen-orchestra/node_modules/jest-worker/build/workers/processChild.js xo 6422 6385 0 15:01 ? 00:00:00 /usr/bin/node /opt/xen-orchestra/node_modules/jest-worker/build/workers/processChild.js xo 6424 6385 0 15:01 ? 00:00:00 /usr/bin/node /opt/xen-orchestra/node_modules/jest-worker/build/workers/processChild.js xo 6425 6385 0 15:01 ? 00:00:00 /usr/bin/node /opt/xen-orchestra/node_modules/jest-worker/build/workers/processChild.js xo 6432 6385 0 15:01 ? 00:00:00 /usr/bin/node /opt/xen-orchestra/node_modules/jest-worker/build/workers/processChild.js xo 6439 6385 0 15:01 ? 00:00:00 /usr/bin/node /opt/xen-orchestra/node_modules/jest-worker/build/workers/processChild.js root 13392 2083 0 22:32 pts/0 00:00:00 grep --color=auto xo root@VMwXenOrchestra01:/run/sr-mount# cat /etc/sudoers.d/xo xo ALL=(root) NOPASSWD:/bin/mount,/bin/umount root@VMwXenOrchestra01:/run/sr-mount# tail -n 1 /etc/xo-server/config.toml useSudo = true root@VMwXenOrchestra01:~# node -v v12.18.3Images:
What could I test to make it work?
Thanks
-
Do you have useSudo configured in the xo-server configuration file?
-
@AudiSys said in Error on File Restore:
root@VMwXenOrchestra01:/run/sr-mount# tail -n 1 /etc/xo-server/config.toml
useSudo = trueYes, as we can see in simple config file, listed in info related to problem.
Thanks
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login