Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local fallback to xolite.html fails because file is missing from /opt/xensource/www #664

Open
jebsolutions opened this issue Oct 12, 2024 · 10 comments

Comments

@jebsolutions
Copy link

A recent change to xolite tries to "fetch the latest version" from the internet if it exists.

/opt/xensource/www/index.html tries to fall back "./xolite.html", but that file is not present?

So if your internet is down/firewalled etc. xolite is not going to work.

On a side note...making the local web admin reliant on any internet site is a terrible idea.

Please consider making xolite 100% local only again.

@bnerickson
Copy link

I noticed this when I upgraded to 8.3. For some reason, however, XO lite started eventually working without Internet access. Regardless, it was not a great first impression and is the sort of thing that will keep people asking for updated versions of XCP-NG Center.

@olivierlambert
Copy link
Member

Hello @jebsolutions

We'll investigate and fix that ASAP. Thanks for your report.

@stormi
Copy link
Member

stormi commented Oct 14, 2024

It was a missing file. Fix in progress.

@olivierlambert
Copy link
Member

Ah yes I missed the end of the first post: we meant to have XO Lite in local, and the online mode is only when it's possible, allowing to get a most recent update without waiting for a new package in XCP-ng. Basically, best of both worlds.

We already made the effort to communicate about this, I strongly suggest to follow our XO/XO Lite release blog post: https://xen-orchestra.com/blog/xen-orchestra-5-97/#%F0%9F%94%AD-xo-lite

@lstocksy
Copy link

Is there any update on a fix for this please? Recently installed XCP-ng 8.3 (https://mirrors.xcp-ng.org/isos/8.3/xcp-ng-8.3.0.iso?https=1) and unable to access XO Lite whilst offline. Followed the blog and also verified that xolite.html is missing from /opt/xensource/www. Thanks.

@olivierlambert
Copy link
Member

I think it's fixed if your 8.3 is up to date.

@lstocksy
Copy link

lstocksy commented Dec 18, 2024

Thank you for the prompt reply! I downloaded 8.3 from the link provided earlier today and still missing xolite.html and any associated bundles.

@olivierlambert
Copy link
Member

Just type the URL of the host, no need to add xolite.html. Also, after install of 8.3, don't forget to update it: we already released many updates since the ISO is available.

@lstocksy
Copy link

Only the URL of the host was used in my scenario. The index.html file included with my installation includes the following -
<script> ;(async () => { try { // Try to load XO Lite from lite.xen-orchestra.com const response = await fetch(https://lite.xen-orchestra.com/dist/index.html) if (!response.ok) { throw new Error(Cannot download XO Lite from lite.xen-orchestra.com (${response.status})) } document.open() document.write(await response.text()) document.close() } catch (err) { console.log(err?.message ?? err) // Fallback to local version of XO Lite document.open() document.write(await (await fetch('./xolite.html')).text()) document.close() } })() </script>

As xolite.html is not included within the /opt/xensource/www directory, the web page cannot load.

This install is offline and, therefore, cannot be updated through yum update. Is it possible to compile an ISO with the latest updates? Apologies if this is a fairly simple question, I am relatively new to XCP.

@olivierlambert
Copy link
Member

olivierlambert commented Dec 18, 2024

We will rebuild another ISO that will have recent updates and obviously the XO Lite fix. I can't tell when, it depends on many other things.

Until then, you can probably download just a more recent XO Lite package and install it locally.

Download https://updates.xcp-ng.org/8/8.3/updates/x86_64/Packages/xo-lite-0.5.0-1.xcpng8.3.noarch.rpm and then yum install it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants