ronivay / XenOrchestraInstallerUpdater

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

Install backup proxy fail #110

Closed bogdantomasciuc closed 2 years ago

bogdantomasciuc commented 2 years ago

OS: Ubuntu Server 20.04 Node.js version: 14.19.0 Yarn version: 1.22.17

Server specs 2vCPU, 4G RAM

Issue After install proxy the script says that it is waiting for the port to open for a few times and finally it reports the instalation completed fut failed.
[fail] Installation completed, but looks like there was a problem when starting xo-proxy. Check /opt/XenOrchestraInstallerUpdater/logs/xo-install.log-202203161545 for more details

Installation logfile Attach complete log as a file. xo-install.log

bogdantomasciuc commented 2 years ago

xo-install.log Realized I uploaded an update attempt. This is the original install log. PS: Fresh Ubuntu install.

ronivay commented 2 years ago

Looks like the build method script uses was removed recently. Should be fixed now. You might want to remove the config file from /root/.config/xo-proxy/config.toml and the run install again. Let me know how it goes.

There was also another problem i noticed. The installation should've actually exited during the build phase but it didn't. I'll take a look at that later as not really the root cause of this issue.

bogdantomasciuc commented 2 years ago

Thanx for the quick reply! I will give it a shot now and return with further feedback.

bogdantomasciuc commented 2 years ago

xo-install.log Still won't build. Fails with:
[fail] Something went wrong, exiting. Check /opt/XenOrchestraInstallerUpdater/logs/xo-install.log-202203161839 for more details and use rollback feature if needed

[fail] Removing /opt/xo/xo-builds/xen-orchestra-202203161839 because of failed installation.

ronivay commented 2 years ago

Do you get command not found error if you try to run dmidecode -t system ? if yes, then you should be able to fix this by running apt install -y dmidecode and then run install again. I'll add a fix for that if it's the cause.

bogdantomasciuc commented 2 years ago

The command dmidecode -t system works.
image

ronivay commented 2 years ago

Interesting. It was proxy token generation that failed. Worked fine on Debian, not on Ubuntu. Maybe now? :)

bogdantomasciuc commented 2 years ago

[..] Running installation Fingers crossed.

bogdantomasciuc commented 2 years ago

Success! [info] Starting xo-proxy... waiting for port to be open

   Proxy started in port 443. Make sure you have firewall rules in place to allow access from xen orchestra.
   Save following line as json file and use config import in Xen Orchestra to add proxy

Thank you very much!