Jarli01 / xenorchestra_installer

A simple install script for Xen Orchestra
GNU General Public License v3.0
422 stars 86 forks source link

Install script uses Node 20.9.0 and causes issues #119

Closed dbdavidss closed 8 months ago

dbdavidss commented 8 months ago

Describe the bug Node version 20.9.0 causes Xen Orchestra to disconnect from host within a few seconds.

To Reproduce Steps to reproduce the behavior:** Use install script on a new Debian VM. Connect to the host.

Expected behavior It should be able to connect to a new host without disconnecting after a few seconds.

Screenshots N/A

Desktop/Server details (please complete the following information): New XCP-NG 8.2.1 Install script with Node 20.9.0

Additional context To fix, use the update script below with Node version 18.17.0 and it works as expected. sudo curl https://raw.githubusercontent.com/Jarli01/xenorchestra_updater/master/xo-update.sh | bash -s -- -n 18.17.0

Danp2 commented 8 months ago

Thanks for the report. I'm aware of this issue, but I haven't taken to time to work out a proper fix. FWIW, you can simply enter the command sudo n 18 to install the latest supported version of Node.

I suspect that XO will eventually work on Node LTS again at some point, so it's difficult to come up with a good fix for this issue that doesn't require constantly editing these scripts to maintain compatibility.

Danp2 commented 8 months ago

Fixed in https://github.com/Jarli01/xenorchestra_installer/commit/d12423d78c0a45f00700852cc5ec3424bd5f903e