XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Error on File Restore

    Scheduled Pinned Locked Moved Xen Orchestra
    3 Posts 2 Posters 439 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      AudiSys
      last edited by AudiSys

      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" option

      XO 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.3
      

      Images:
      alt text
      alt text

      What could I test to make it work?
      Thanks 🙂

      1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team
        last edited by

        Do you have useSudo configured in the xo-server configuration file?

        https://xen-orchestra.com/docs/installation.html#sudo

        1 Reply Last reply Reply Quote 0
        • A Offline
          AudiSys
          last edited by AudiSys

          @AudiSys said in Error on File Restore:

          root@VMwXenOrchestra01:/run/sr-mount# tail -n 1 /etc/xo-server/config.toml
          useSudo = true

          Yes, as we can see in simple config file, listed in info related to problem.
          Thanks

          1 Reply Last reply Reply Quote 0
          • First post
            Last post