Jarli01 / xenorchestra_installer

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

Installer fails on fresh Ubuntu 20.10 and 20.04.1 LTS #92

Closed Trufax closed 3 years ago

Trufax commented 3 years ago

Describe the bug i created a fresh VM with 4GB of Ram 30 GIG of HDD and 3 cores and installed Ubuntu 20.04.1 LTS from the installer. After the installation finished i run the following command:

curl https://raw.githubusercontent.com/Jarli01/xenorchestra_installer/master/xo_install.sh | sudo bash

the installer started and finished however had a few errors specifically [20:05:18] 'build' errored after 3.41 s link to the full install log: https://pastebin.com/44HJZxZu

however it finishes with the following message:

`

Installation complete, open a browser to:
XX.X.X.XX 2003:XXf2f:XX:XXXX:XXXX:XXXX:XXX

Default Login:admin@admin.net Password:admin

Don't forget to change your password!

` I changed the IPs. When you try to open the IP in the browser you somehow get a bugged login windows (link: https://s12.directupload.net/images/201221/gdtufifv.png) but once you login you only get a white screen.

i tested this multiple times with Ubuntu 20.10 and 20.04.01 LTS all fresh installation.

To Reproduce Install fresh ubuntu, run install script und get a non working installation.

Expected behavior succsesfull installation

Screenshots Screen from login: https://s12.directupload.net/images/201221/gdtufifv.png Pastbin of installation: https://pastebin.com/44HJZxZu

Desktop/Server details (please complete the following information):

Additional context Add any other context about the problem here.

Confirm XOCE services are running systemctl status xo-server.service

● xo-server.service - XO Server
     `Loaded:` loaded (/lib/systemd/system/xo-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2020-12-21 20:05:23 UTC; 15min ago
   Main PID: 11275 (node)
      Tasks: 25 (limit: 4451)
     Memory: 95.8M
     CGroup: /system.slice/xo-server.service
             ├─11275 /usr/local/bin/node ./bin/xo-server
             ├─11291 /usr/local/bin/node /opt/xen-orchestra/node_modules/jest-worker/build/workers/processChild.js
             └─11297 /usr/local/bin/node /opt/xen-orchestra/node_modules/jest-worker/build/workers/processChild.js

Dec 21 20:11:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:12:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:13:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:14:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:15:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:16:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:17:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:18:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:19:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:20:00 manageman xo-server[11275]: [load-balancer]Execute plans!

Provide the output of journalctl logs

-- Logs begin at Mon 2020-12-21 19:58:04 UTC. --

Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.918Z xo:xo-mixins:plugins INFO [NOTICE] register plugin backup-reports for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.919Z xo:xo-mixins:plugins INFO [NOTICE] register plugin load-balancer for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.919Z xo:xo-mixins:plugins INFO [NOTICE] register plugin perf-alert for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.920Z xo:xo-mixins:plugins INFO [NOTICE] register plugin sdn-controller for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.921Z xo:xo-mixins:plugins INFO [NOTICE] register plugin test-plugin for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.922Z xo:xo-mixins:plugins INFO [NOTICE] register plugin transport-email for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.923Z xo:xo-mixins:plugins INFO [NOTICE] register plugin transport-icinga2 for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.924Z xo:xo-mixins:plugins INFO [NOTICE] register plugin transport-nagios for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.924Z xo:xo-mixins:plugins INFO [NOTICE] register plugin transport-slack for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.925Z xo:xo-mixins:plugins INFO [NOTICE] register plugin transport-xmpp for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.926Z xo:xo-mixins:plugins INFO [NOTICE] register plugin usage-report for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.926Z xo:xo-mixins:plugins INFO [NOTICE] register plugin web-hooks for the first time
Dec 21 20:05:24 manageman xo-server[11275]: 2020-12-21T20:05:24.995Z xo:xo-server:sdn-controller DEBUG No cert-dir provided, using default self-signed certificates
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register auth-github
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register auth-google
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register auth-ldap
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register auth-saml
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register test-plugin
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register transport-email
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register transport-icinga2
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register transport-nagios
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register transport-slack
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register transport-xmpp
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register usage-report
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register web-hooks
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.008Z xo:plugin INFO successfully register backup-reports
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.012Z xo:plugin INFO successfully register audit
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.012Z xo:plugin INFO successfully register load-balancer
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.012Z xo:plugin INFO successfully register perf-alert
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.012Z xo:xo-server:sdn-controller DEBUG No default self-signed certificates exists, creating them
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.991Z xo:xo-server:sdn-controller DEBUG All certificates have been successfully written
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.992Z xo:xo-server:sdn-controller:tls-connect DEBUG Certificates have been updated
Dec 21 20:05:25 manageman xo-server[11275]: 2020-12-21T20:05:25.994Z xo:plugin INFO successfully register sdn-controller
Dec 21 20:06:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:07:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:08:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:09:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:10:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:11:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:12:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:13:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:14:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:15:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:16:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:17:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:18:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:19:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:20:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:21:00 manageman xo-server[11275]: [load-balancer]Execute plans!
Dec 21 20:22:00 manageman xo-server[11275]: [load-balancer]Execute plans!

Provide answers to these questions:

Jarli01 commented 3 years ago

The installer will always finish with the login details, it simply prints that to the console. However in your logs I'm seeing issues with python2.

I tested this last week when we updated to python3-minimal and it worked. Give me a bit to test further.

Jarli01 commented 3 years ago

I assume you downloaded the Option 3 iso version of Ubuntu server, correct?

Trufax commented 3 years ago

correct

Jarli01 commented 3 years ago

FYI I'm testing with Ubuntu 20.10 as it's what I have readily available in my lab. (the same current link from ubuntu's website)

Trufax commented 3 years ago

Ok sure, iam just trying a fresh debian in parallel to see if this works. Let me know if i should test something.

Jarli01 commented 3 years ago

On Debian, you'll need to install curl and sudo prior to installation otherwise you'll hit some walls.

Trufax commented 3 years ago

So quick test with debain worked. I installed curl and sudo first as suggested. However, i would prefer Ubuntu =) Its looks like a problem with the latest Ubuntu IOS i guess ? i know it worked on 20.04.1 LTS 2 month back because i installed it with the same ISO sucsesfull back than.

Jarli01 commented 3 years ago

Interesting, I tested with 20.10 just last week - literally with the python3-minimal change. My install is still going, but as long as it works.

Jarli01 commented 3 years ago

So quick test with debain worked. I installed curl and sudo first as suggested. However, i would prefer Ubuntu =) Its looks like a problem with the latest Ubuntu IOS i guess ? i know it worked on 20.04.1 LTS 2 month back because i installed it with the same ISO sucsesfull back than.

This sounds more likely an issue unrelated to the iso but the installation, since you said you used the same ISO 2 months ago. I'm going to proceed with my test, but as long as you're all set and working, you're welcome to close the ticket out.

Trufax commented 3 years ago

just did another try with 20.10 and it worked! I literally did not change anything. Just created the same VM again with a fresh install. I have no idea what was causing the issue. Sorry for the trouble!

Jarli01 commented 3 years ago

No problem, happy to have helped

fe950 commented 3 years ago

Have (almost) the same issue, tried firefox, chrome and edge. White page with a circle rotating (loading). Dev console shows error that it can load module.css and index.js.

Danp2 commented 3 years ago

@fe950 You'll need to provide additional details for us to be able to assist you. Have you reviewed the troubleshooting page?

fe950 commented 3 years ago

Every other detail was the same as for the original poster. Fresh vanilla iso n.3 install on xenserver. No errors at install. Just thought it was of interest with some more details.

I installed it on Ubuntu 18 instead without problem.

tor. 24. des. 2020 kl. 13:46 skrev Dan Pollak notifications@github.com:

@fe950 https://github.com/fe950 You'll need to provide additional details for us to be able to assist you. Have you reviewed the troubleshooting page?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Jarli01/xenorchestra_installer/issues/92#issuecomment-750873061, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQYOO2D7J7VRNIRZSPT2AZDSWMZ2HANCNFSM4VEWCPCQ .

-- Mvh Ola

Jarli01 commented 3 years ago

Every other detail was the same as for the original poster. Fresh vanilla iso n.3 install on xenserver. No errors at install. Just thought it was of interest with some more details. I installed it on Ubuntu 18 instead without problem. tor. 24. des. 2020 kl. 13:46 skrev Dan Pollak notifications@github.com: @fe950 https://github.com/fe950 You'll need to provide additional details for us to be able to assist you. Have you reviewed the troubleshooting page? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#92 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQYOO2D7J7VRNIRZSPT2AZDSWMZ2HANCNFSM4VEWCPCQ . -- Mvh Ola

Without the logs from your installation we can't validate you had no issues. In the OP's issue, he had issues with Python installing, he retired a few minutes later and was able to install successfully.

I'm closing this ticket, please open a new case if you have issues installing on a current OS again.