Closed informaticavera closed 3 years ago
Hi,
Sorry for late response to this. Could you please try the update again. It seems that there might've been some recent change in xen orchestra sources master branch causing this.
it seems that the problem continues
Hi,
Okay. Could you grab the logfile from your latest installation attempt (logs directory inside same directory where xo-install.sh is, if you haven't changed the location in config) for more information about the issue. If you can find the lines which tell the issue, just paste them here. Otherwise the entire logfile, and please use code block to prevent github from formatting the pasted information.
Thanks. Build procedure seems to have been successful according to logs and don't really see any issue here. Could you grab a little bit more log output from journalctl from the attempted service start with journalctl -u xo-server -n 150 for example. I might have a bug in service start check when update is ran (reports everything successful even if service doesn't start) but i'll look into it, doesn't affect this issue really.
Thanks!!!!
dic 11 10:21:55 xoa systemd[1]: xo-server.service: Scheduled restart job, restart counter is at 23.
dic 11 10:21:55 xoa systemd[1]: Stopped XO Server.
dic 11 10:21:55 xoa systemd[1]: Started XO Server.
dic 11 10:21:59 xoa xo-server[9498]: ✖ The expression evaluated to a falsy value:
dic 11 10:21:59 xoa xo-server[9498]: (0, _assert.default)(global.Promise === require('bluebird'))
dic 11 10:21:59 xoa xo-server[9498]: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
dic 11 10:21:59 xoa xo-server[9498]: (0, _assert.default)(global.Promise === require('bluebird'))
dic 11 10:21:59 xoa xo-server[9498]: at main (/opt/xen-orchestra/xo-builds/xen-orchestra-202011120958/packages/xo-server/src/index.js:681:3)
dic 11 10:21:59 xoa xo-server[9498]: at /opt/xen-orchestra/xo-builds/xen-orchestra-202011120958/node_modules/exec-promise/index.js:57:13
dic 11 10:21:59 xoa xo-server[9498]: at new Promise (/opt/xen-orchestra/node_modules/core-js/modules/es6.promise.js:164:7)
dic 11 10:21:59 xoa xo-server[9498]: at execPromise (/opt/xen-orchestra/xo-builds/xen-orchestra-202011120958/node_modules/exec-promise/index.js:56:10)
dic 11 10:21:59 xoa xo-server[9498]: at Object.
Hmh, can't figure out from these what's the issue. The install procedure seems to finish as it's supposed to and there are no errors during build but somehow xen orchestra still fails to start properly and outputs those error messages. Can't reproduce this with similar Ubuntu setup either.
My Ubuntu VM ended up with yarn 1.22.5 and node 12.20.0. Those should be updated during the update procedure. Are you still having the same versions as in the beginning? Not sure if it makes any difference though.
Unfortunately at this point i have no other tips than start fresh and copy /var/lib/xo-server data directory from the old one to keep original data.
Hi,
just a followup on this. did you manage to rebuild and transfer data over or any other update?
I'm sorry, I haven't been able to do the test yet
I have tried a fresh installation and the result is the same. In the beginning my versions are: Orchestra 5.45.1, with xo-server and xo-web 5.58.2 Node version 12.16.2 Yarn version 1.21.1
How did you start with some versions if this was a fresh installation? Could you please try this on a fresh deployed ubuntu VM. If that works, you can manually move the important data over from you old installation. Sorry but i have no other tips at this point. Install logs looked fine to me but since there still is an issue when starting the service and it isn’t clear in logs what actually happens it’s difficult to try to guide you further.
Still i’m unable to reproduce this.
Hi. I have the same problem. Bluebird module not found and can't start XO.
For lab testing, I try first with virtualbox and debian 10 i386, with only minimal packages (ssh and standard system tools), then install XO with XenOrchestraInstallerUpdater (git master) and finished good but with warnings --> "Bluebird module not found"
For a second test, I try virtualbox and this time with debian 10 amd64, with only minimal packages (ssh and standard system tools), now is installed perfectly as expected.
Maybe that module is only for x64 arch. I hope this will help you to find out a solution.
Hi,
Thank you, this helps alot. Didn't somehow even come to my mind that it might be because of 32/64bit differences. Most likely 32bit isn't supported at all. I'll look into this.
a clean install on ubuntu 18.04 64bits works without problems
If this worked before, i'm sure there has been a change after going from node 8.x to node 12.x during the upgrade. I don't see any reason really why one should run a 32bit OS nowadays so i'm just going to implement a check that installation is being run on a 64bit system as part of the OS check. Supporting many architectures on top of already existing multiple OS's would be too much of a burden. Official Xen Orchestra from sources guide also instructs to use 64bit, so i'll be forcing that as well.
Check now implemented in: https://github.com/ronivay/XenOrchestraInstallerUpdater/commit/8d2e1e37916c08a19f291b1459bbc3a2b759475a
Thank you both for details on this.
Ubuntu 18.04.5 LTS NODE v12.16.2 YARN 1.21.1
Dec 1 12:18:52 xoa xo-server[1723]: ✖ The expression evaluated to a falsy value: Dec 1 12:18:52 xoa xo-server[1723]: (0, _assert.default)(global.Promise === require('bluebird')) Dec 1 12:18:52 xoa xo-server[1723]: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: Dec 1 12:18:52 xoa xo-server[1723]: (0, _assert.default)(global.Promise === require('bluebird')) Dec 1 12:18:52 xoa xo-server[1723]: at main (/opt/xen-orchestra/xo-builds/xen-orchestra-202001121149/packages/xo-server/src/index.js:681:3) Dec 1 12:18:52 xoa xo-server[1723]: at /opt/xen-orchestra/xo-builds/xen-orchestra-202001121149/node_modules/exec-promise/index.js:57:13 Dec 1 12:18:52 xoa xo-server[1723]: at new Promise (/opt/xen-orchestra/node_modules/core-js/modules/es6.promise.js:164:7) Dec 1 12:18:52 xoa xo-server[1723]: at execPromise (/opt/xen-orchestra/xo-builds/xen-orchestra-202001121149/node_modules/exec-promise/index.js:56:10) Dec 1 12:18:52 xoa xo-server[1723]: at Object. (/opt/xen-orchestra/xo-builds/xen-orchestra-202001121149/packages/xo-server/bin/xo-server:27:24)
Dec 1 12:18:52 xoa xo-server[1723]: at Module._compile (internal/modules/cjs/loader.js:1156:30)
Dec 1 12:18:52 xoa xo-server[1723]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
Dec 1 12:18:52 xoa xo-server[1723]: at Module.load (internal/modules/cjs/loader.js:1000:32)
Dec 1 12:18:52 xoa xo-server[1723]: at Function.Module._load (internal/modules/cjs/loader.js:899:14)
Dec 1 12:18:52 xoa xo-server[1723]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
Dec 1 12:18:52 xoa xo-server[1723]: at internal/main/run_main_module.js:18:47
Dec 1 12:18:52 xoa systemd[1]: xo-server.service: Main process exited, code=exited, status=1/FAILURE
Dec 1 12:18:52 xoa systemd[1]: xo-server.service: Failed with result 'exit-code'.