OK, hadn't really thought of it that way.
I've built a fresh Ubuntu 18.04 VM and reinstalled, and all seems happy enough... just running my backup now to check.
Thanks for all the assistance.
Noel
OK, hadn't really thought of it that way.
I've built a fresh Ubuntu 18.04 VM and reinstalled, and all seems happy enough... just running my backup now to check.
Thanks for all the assistance.
Noel
Hi all - wound up here looking for details on Xen Orchestra for a charity virtualisation project!
UK based, self employed half and half IT dogsbody and musician.
@DustinB3403 - I just signed up to say a massive thank you for this - I've been struggling with the previous instructions and going round in circles with no success. I've now used your script to build successfully on a ubuntu 16.04 server and am up and running.
I did find a couple of issues along the way - firstly, is there a typo in the command line? I think the correct path should be github.com/Jarli01/xenorchestra_installer/master/xo_install.sh - I only got it working in the first place by downloading the script and running locally.
Secondly, on my system at least, yarn wasn't installed, so the first run of the script failed - it was an easy enough correction to make, but could be checked and covered within the script?
Anyway, thanks again
Noel Weston
As someone with long term neck and shoulder problems, I've used these for years:
https://www.amazon.com/Microsoft-Natural-Ergonomic-Keyboard-4000/dp/B000A6PPOK
I can't type on a normal "straight" keyboard for any length of time without discomfort nowadays; these have been a good compromise between price and comfort, and with slightly better keys than the newer slimline versions.
Unfortunately, it would appear that they have been discontinued - so grab one while you can!
OK, hadn't really thought of it that way.
I've built a fresh Ubuntu 18.04 VM and reinstalled, and all seems happy enough... just running my backup now to check.
Thanks for all the assistance.
Noel
Thanks for the various replies. I did also try going back to the working snapshot and running the update script with "-n lts" - no different.
I have now tried removing the node_modules directory and rebuilding as in the link from Dan - again, no different.
Given that XO is the only thing on this machine, node must have been installed originally with Xen Orchestra. It could have been updated with regular OS updates, I guess, but Xen Orchestra is working at the snapshot point and only fails when I try to run the updater script.
System reports 7.6, and I was apparently able to change to lts. Running the updater again then - same results. So I'm back at my snapshot now, with XO running but unable to update...
Thanks again.
Another update - reverted to the snapshot and ran the updater with -n stable, and got a different set of errors but still a non-starting service...
First error shown is
error /opt/xen-orchestra/node_modules/level-party/node_modules/leveldown: Command failed.
Followed by
/home/serverbackup/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^
leveldown.target.mk:113: recipe for target 'Release/obj.target/leveldown/src/batch.o' failed
make: Leaving directory '/opt/xen-orchestra/node_modules/level-party/node_modules/leveldown/build'
make: *** [Release/obj.target/leveldown/src/batch.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/xen-orchestra/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 4.4.0-128-generic
gyp ERR! command "/usr/local/bin/node" "/opt/xen-orchestra/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/xen-orchestra/node_modules/level-party/node_modules/leveldown
Any further thoughts?
Noel
OK, with a backup restored and snapshotted, I re-did the git config and tried the updater again, and it's failed / borked again.
Relevant lines from the log:
Jun 26 10:26:48 xoa systemd[1]: Stopping XO Server...
Jun 26 10:26:48 xoa xo-server[1013]: Tue, 26 Jun 2018 09:26:48 GMT xo:main SIGTERM caught, closing…
Jun 26 10:26:48 xoa xo-server[1013]: Tue, 26 Jun 2018 09:26:48 GMT xo:main bye :-)
Jun 26 10:26:48 xoa systemd[1]: Stopped XO Server.
Jun 26 10:38:06 xoa systemd[1]: Started XO Server.
Jun 26 10:38:06 xoa systemd[1]: xo-server.service: Main process exited, code=exited, status=200/CHDIR
Jun 26 10:38:06 xoa systemd[1]: xo-server.service: Unit entered failed state.
Jun 26 10:38:06 xoa systemd[1]: xo-server.service: Failed with result 'exit-code'.
Jun 26 10:38:06 xoa systemd[1]: xo-server.service: Service hold-off time over, scheduling restart.
Jun 26 10:38:06 xoa systemd[1]: Stopped XO Server.
Which is the same as yesterday.
I do have the full build process captured - it's nearly 1200 lines, so it didn't seem like a good plan to upload it straight away. There are no errors that I can see, and the only warning is back to node versions:
warning You are using Node "7.6.0" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
Any further thoughts?
Thanks for the help, by the way - much appreciated.
Noel
Ah, OK - no, not any more - again, they went in one of the reboots.
I'll restore the backup (figured that one out), take a snapshot and try again.
Yes, as above - the first run I got the git "who are you" warning, so I ran the git configs and re-ran the updates.
Which logs do you mean - are there any others I can look at, or do they disappear on a reboot?
And next dumb question - how do I restore a Xen Orchestra .xva backup into Xen without Xen Orchestra?
Yes, I do have a backup... not that recent, but it will do.
Any idea what went wrong?
Hi Dustin -
That's all that journalctl gives me - I assume this is since the last reboot?
The troubleshooting info is pretty much what I've already got - service status is above, I did the git configs after the first update attempt.
/var/log/syslog has this:
Jun 25 13:11:31 xoa systemd[1]: Started Hold until boot process finishes up.
Jun 25 13:11:31 xoa systemd[1141]: xo-server.service: Failed at step CHDIR spawning /usr/local/bin/node: No such file or directory
Jun 25 13:11:31 xoa systemd[1]: Started Terminate Plymouth Boot Screen.
Jun 25 13:11:31 xoa systemd[1]: xo-server.service: Main process exited, code=exited, status=200/CHDIR
Jun 25 13:11:31 xoa systemd[1]: xo-server.service: Unit entered failed state.
Jun 25 13:11:31 xoa systemd[1]: xo-server.service: Failed with result 'exit-code'.
Unfortunately no snapshot - I've never had an issue with the updates before, so didn't even think to do so.