XO5 breaks after defaulting to XO6 (from source)
-
@Gheppy
My links from 6 to 5 works fine
Haven’t tested all of them of course, but quit a few and none of them have faild -
I'm not running https and still on node v22
-
@ph7
On http it works, but without the lines below (those with /v5) in the config. On https it is the problem and it shouldn't be.... # List of files/directories which will be served. [http.mounts] '/v6' = '../../@xen-orchestra/web/dist/' '/' = '../xo-web/dist/' # List of proxied URLs (HTTP & WebSockets). [http.proxies] #'/v5/api' = 'ws://localhost:9000/api' #'/v5/api/updater' = 'ws://localhost:9001' #'/v5/rest' = 'http://localhost:9000/rest' ... -
I managed to get it working, although the solution is not exactly to my liking.
I enabled both 80 and 443[http] [[http.listen]] port = 80 [[http.listen]] port = 443 cert = '/opt/ssl-local/fullchain.pem' key = '/opt/ssl-local/privkey.pem' # CRITICAL WEBSOCKET CONFIGURATION [http.upgrade] '/v5/api' = true '/v5/api/updater' = true # Make sure these routes are allowed for WebSocket upgrade [http.routes] '/v5/api' = { upgrade = true } '/v5/api/updater' = { upgrade = true } # List of files/directories which will be served. [http.mounts] '/v6' = '../../@xen-orchestra/web/dist/' '/' = '../xo-web/dist/' [redis] [remoteOptions] [plugins] -
@Gheppy If I understand correctly, when you click the XO5 link from XO6, you are redirected to
<url>/v5?If so, this appears to be a bug, because according to your configuration file, your XO5 instance is located at the root (
/).can you fetch this endpoint please?
/rest/v0/gui-routes -
I've identified various issues with proxied URLs. I'm on it
-
-
@MathieuRA I was with the same problem, the branch mra-fix-proxies fixed it for me, now i can acess the V5 correctly
-
@MathieuRA
I also confirm that it works. Thank you -
@MathieuRA said in XO5 breaks after defaulting to XO6 (from source):
mra-fix-proxies
Confirm test branch works... This is with Ronivay's script. Include_V6 option is set to false in config file. Maybe that is why it still defaults to v5. At least all links work now...




-
Thank you all for your feedback!