ronivay / XenOrchestraInstallerUpdater

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

Cannot access web UI after update #135

Closed jsargent8789 closed 1 year ago

jsargent8789 commented 1 year ago

OS Version: Rocky Linux 9 Node.js version: node -v 16.16.0 Yarn version: yarn -v 1.22.19

Issue describe the issue and what task you were running (update, install) Cannot GET / thats what I got from the web UI

ronivay commented 1 year ago

Hi,

Xen Orchestra master branch changed their redis dependency from version 3.x to 4.x which seems to prefer ::1 as connection address when localhost is defined. Redis by default doesn't listen to v6 localhost address, but only 127.0.0.1. This causes xo-server to fail redis connection and therefore UI fails. I'll make a workaround for rhel distros on this.

For the time being you can fix this by modifying your xo-server configuration, located by default in /root/.config/xo-server/config.toml, look for line [redis] and add this below it: uri = 'redis://127.0.0.1:6379/0' and run systemctl restart xo-server

ronivay commented 1 year ago

Fix for redis connectivity is now in place and will be applied when you run update. Note that there seems to be another bug related to same redis update: https://xcp-ng.org/forum/topic/6188/xo-hosed-on-new-update which i can't fix in this script unfortunately. For now i'd suggest staying below commit 9fab15537b398a380edc2b0e25a907ee5d445455 until that's sorted out.

ronivay commented 1 year ago

The other bug should be fixed now as well in https://github.com/vatesfr/xen-orchestra/commit/d27b6bd49d1885b385f3488c78ce4ddc392a69e2