XO5 breaks after defaulting to XO6 (from source)
-
I appriciate your assistance with this but broke everything.... no /v5 or /v6 responce.
Anyone using this script - https://github.com/ronivay/XenOrchestraInstallerUpdater able to get this working with v6 as default?

[http.mounts] 164 # Uncomment to setup a default version. 165 # Otherwise, XO5 will be the default for stable channel and XO6 for latest and source 166 # '/' = '../xo-web/dist/' 167 168 '/v5' = '../xo-web/dist/' 169 '/' = '../../@xen-orchestra/web/dist/' 170 171 [http.proxies] 172 # [port] is used to reuse the same port declared in [http.listen.0] 173 '/v5/api' = '[protocol]//localhost:[port]/api' 174 '/v5/api/updater' = 'ws://localhost:9001' 175 '/v5/rest' = 'http://localhost:[port]/rest' -
Hey,
I am not using the XenOrchestraInstallerUpdater script by ronivay but the XO docker container made by the same author: https://github.com/ronivay/xen-orchestra-docker
When using a XO commit after XO 6 became the default all the links to XO 5 do not work anymore.
XO 6 is the default and appears to be working (at least the pages that have been ported to XO 6 already) but when trying to access XO 5 via url/v5 I get infinite loading / spinning wheel.When following the official documentation steps for making XO 5 default (https://docs.xen-orchestra.com/configuration#making-xo-5-the-default-ui) I get the same issue that was already mentioned in this thread (error "Cannot get /").
By following the official documentation I mean applying the following:
[http.mounts] '/v6' = '../../@xen-orchestra/web/dist/' '/' = '../xo-web/dist/' [http.proxies] '/v5/api' = 'ws://localhost:9000/api' '/v5/api/updater' = 'ws://localhost:9001' '/v5/rest' = 'http://localhost:9000/rest'I tried this using latest commit (d9fe9b603fa9c8d668fa90486ae12fe7ad49b257).
For now I had to revert to the commit before XO 6 was made the default.
P.S. (in case this is related): I enabled SSL encryption by setting the following in XO configuration:
[http] redirectToHttps = true [[http.listen]] port = 443 autoCert = true cert = '/cert.pem' key = '/cert.key' -
@acebmxer Can you provide me with the logs from xo-server at its launch?
-
@MajorP93 various fixes have been performed on master.
Your config file should look like this
[http.mounts] # Uncomment to setup a default version. # Otherwise, XO5 will be the default for stable channel and XO6 for latest and source # '/' = '../xo-web/dist/' '/v5' = '../xo-web/dist/' '/v6' = '../../@xen-orchestra/web/dist/' [http.proxies] # [port] is used to reuse the same port declared in [http.listen.0] '/v5/api' = '[protocol]//localhost:[port]/api' '/v5/api/updater' = 'ws://localhost:9001' '/v5/rest' = 'http://localhost:[port]/rest'If you are using a different configuration file that overrides the default configuration, please verify that the paths to xo-5 and xo-6 are correct. You can use absolute paths if necessary.