ronivay / XenOrchestraInstallerUpdater

Xen Orchestra install/update script
GNU General Public License v3.0
1.14k stars 190 forks source link

Node.js 18.x not supported on Ubuntu 18.04 #168

Closed ccict closed 1 year ago

ccict commented 1 year ago

fresh install of ubuntu 18.04. (i did try the 22.04.1 but that errored in another way (don't have log) Anyway i know it worked with 18.04 so tried that, but still got stuck, SORRY !

`Hit:4 https://deb.nodesource.com/node_18.x bionic InRelease Get:5 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB] Get:6 http://gb.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:7 https://dl.yarnpkg.com/debian stable/main all Packages [10.9 kB] Get:8 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.9 kB] Fetched 300 kB in 1s (290 kB/s) Reading package lists...

ronivay commented 1 year ago

Hi,

Seems that node.js 18.x isn't supported by Ubuntu 18.04 due to an older glibc version.

https://github.com/nodesource/distributions/issues/1392

I might've to just drop the support for Ubuntu 18.04 due to this. Newer OS should be used instead. Let's see if there will be any fix for that or is it just what it is.

If you have issues with newer Ubuntu, please copy the logs here.

ccict commented 1 year ago

I just looked into this now. I have my 22.04 server running back up, i'll get the error log from that and post here very shortly.

ccict commented 1 year ago

Get:18 http://gb.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [87.1 kB] Get:19 http://gb.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [786 kB] Get:20 http://gb.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [136 kB] Get:21 http://gb.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [2,448 B] Get:22 http://gb.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [1,580 B] Get:23 http://gb.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [9,460 B] Get:24 http://gb.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [122 kB] Get:25 http://gb.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [81.2 kB] Get:26 http://gb.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [84.6 kB] Get:27 http://gb.archive.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [972 B] Reading package lists... E: The repository 'file:/cdrom jammy Release' no longer has a Release file. Adding component(s) 'universe' to all repositories.

ronivay commented 1 year ago

Okay, that is unrelated to the script. You reference to an install cd in the sources.list which isn't there anymore. Check your /etc/apt/sources.list and remove any cdrom references there. Once apt update doesn't give any error, the xo-install.sh should go through as well without issues.

ccict commented 1 year ago

yeh i just found this also and have removed. I will make sure it's all up to date again and run again. was late when i raised last night !

ccict commented 1 year ago

Indeed that was correct. I installed 22.04 without check it was on your supported list so jumped the gun and reverted to an older version and caused myself more issues :)

Thanks for supporting AND giving me the fix for an issue outside of your control

[..] Running installation [ok] Running installation [ok] Installing plugins [info] Installation successful. Enabling xo-server service to start on reboot

rizaemet commented 1 year ago

Hello. Just wanted to share for information purposes. I had the same problem on Ubuntu 18.04 server. I upgraded the server to Ubuntu 20.04 with the do-release-upgrade command. Then the command xo-install.sh --update worked without any problems.

github-actions[bot] commented 1 year ago

This issue has been open for 14 days without activity. It will be closed in 5 days if not updated

github-actions[bot] commented 1 year ago

This issue has been open for 14 days without activity. It will be closed in 5 days if not updated

github-actions[bot] commented 1 year ago

This issue has been open for 14 days without activity. It will be closed in 5 days if not updated

github-actions[bot] commented 1 year ago

This issue has been open for 14 days without activity. It will be closed in 5 days if not updated

github-actions[bot] commented 1 year ago

This issue has been open for 14 days without activity. It will be closed in 5 days if not updated

github-actions[bot] commented 1 year ago

This issue has been open for 14 days without activity. It will be closed in 5 days if not updated

ronivay commented 1 year ago

Ubuntu 18 support is now removed from this script. It'll reach end of standard support in the end of this month and doesn't look like the nodesource issue is being fixed so pointless to keep it here. Update to newer ubuntu is the correct path here.

Script can still be ran with disabling OS_CHECK (see readme and config) if needed.