XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. AudiSys
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    AudiSys

    @AudiSys

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    AudiSys Unfollow Follow

    Latest posts made by AudiSys

    • RE: Error on File Restore

      @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

      posted in Xen Orchestra
      A
      AudiSys
    • 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" 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 🙂

      posted in Xen Orchestra
      A
      AudiSys