Xen Orchestra - Self install problems
-
Hi!
I've been following tutorial (https://xen-orchestra.com/docs/from_the_sources.html) to the letter.
Installed Debian Jessie 8.0, Node v.8, Yarn and all the repos (libvhdi-utils is not included in default Debian repositories, so I added two via this link: https://xen-orchestra.com/forum/topic/1222/problems-installing-packages-on-debian-8) then followed yarn, yarn build with any errors.
When I execute yarn start, I get the following:
adam@xoa-self:~/xen-orchestra/packages/xo-server$ yarn start yarn run v1.13.0 $ node bin/xo-server app-conf /home/adam/xen-orchestra/packages/xo-server/config.toml +0ms app-conf /home/adam/xen-orchestra/packages/xo-server/.xo-server.toml +6ms 2019-02-12T16:30:26.543Z - xo:main - [INFO] Configuration loaded. 2019-02-12T16:30:26.556Z - xo:main - [INFO] Web server listening on http://[::]:1024 2019-02-12T16:30:26.754Z - xo:xo-mixins:hooks - [DEBUG] start start… 2019-02-12T16:30:28.504Z - xo:perf - [INFO] blocked for 1905ms 2019-02-12T16:30:28.608Z - xo:xo-mixins:hooks - [WARN] hook start failure: { error: { Error: spawn losetup ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:362:16) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) errno: 'ENOENT', code: 'ENOENT', syscall: 'spawn losetup', path: 'losetup', spawnargs: [ '-D' ], stdout: '', stderr: '', failed: true, signal: null, cmd: 'losetup -D', timedOut: false, killed: false, [Symbol(originalCallSite)]: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ], [Symbol(mutatedCallSite)]: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ] } } 2019-02-12T16:30:28.699Z - xo:xo-mixins:hooks - [WARN] hook start failure: { error: { Error: EACCES: permission denied, mkdir '/var/lib/xo-server' errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/var/lib/xo-server', [Symbol(originalCallSite)]: [], [Symbol(mutatedCallSite)]: [] } } 2019-02-12T16:30:28.700Z - xo:xo-mixins:hooks - [WARN] hook start failure: { error: { Error: EACCES: permission denied, mkdir '/var/lib/xo-server' errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/var/lib/xo-server', [Symbol(originalCallSite)]: [], [Symbol(mutatedCallSite)]: [] } } 2019-02-12T16:30:28.701Z - xo:xo-mixins:hooks - [WARN] hook start failure: { error: { Error: EACCES: permission denied, mkdir '/var/lib/xo-server' errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/var/lib/xo-server', [Symbol(originalCallSite)]: [], [Symbol(mutatedCallSite)]: [] } } 2019-02-12T16:30:28.701Z - xo:xo-mixins:hooks - [WARN] hook start failure: { error: { Error: EACCES: permission denied, mkdir '/var/lib/xo-server' errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/var/lib/xo-server', [Symbol(originalCallSite)]: [], [Symbol(mutatedCallSite)]: [] } } 2019-02-12T16:30:28.702Z - xo:xo-mixins:hooks - [WARN] hook start failure: { error: { Error: EACCES: permission denied, mkdir '/var/lib/xo-server' errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/var/lib/xo-server', [Symbol(originalCallSite)]: [], [Symbol(mutatedCallSite)]: [] } } 2019-02-12T16:30:28.842Z - xo:xo-mixins:subjects - [INFO] Default user created: admin@admin.net with password admin 2019-02-12T16:30:28.843Z - xo:xo-mixins:hooks - [DEBUG] start finished 2019-02-12T16:30:28.844Z - xo:xo-mixins:hooks - [DEBUG] clean start… 2019-02-12T16:30:28.857Z - xo:xo-mixins:hooks - [WARN] hook clean failure: { error: { Error: EACCES: permission denied, mkdir '/var/lib/xo-server' errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/var/lib/xo-server', [Symbol(originalCallSite)]: [], [Symbol(mutatedCallSite)]: [] } } 2019-02-12T16:30:28.869Z - xo:xo-mixins:hooks - [DEBUG] clean finished 2019-02-12T16:30:29.113Z - xo:main - [INFO] Setting up / → /home/adam/xen-orchestra/packages/xo-web/dist
What is wrong?
Thanks,
Adam -
Read the output:
EACCES: permission denied mkdir '/var/lib/xo-server'
-
Olivier,
What are/ should be default permissions for /var/lib/xo-server?Sorry, I misunderstood. What are/ should be default permissions for /var/lib?
-
I can't answer, it depends with which user you decide to start
xo-server
-
ok, I see. Is it wise to add manually folder /var/lib/xo-server and change permissions for dedicated user?
I change the permissions and orchestra is working.
Do you have any idea about this error:
2019-02-12T16:30:28.608Z - xo:xo-mixins:hooks - [WARN] hook start failure: { error: { Error: spawn losetup ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:362:16) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) errno: 'ENOENT', code: 'ENOENT', syscall: 'spawn losetup', path: 'losetup', spawnargs: [ '-D' ], stdout: '', stderr: '', failed: true, signal: null, cmd: 'losetup -D', timedOut: false, killed: false, [Symbol(originalCallSite)]: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ], [Symbol(mutatedCallSite)]: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ] } }
it seems it not connected with permissions issue.
-
It's different but it's just a warning regarding losetup.
-
Thanks! Really appreciate!