Addon-index.yaml missing
LocalAI version:
5.0.0 Environment, CPU architecture, OS, and Version:
proxmox lxc Describe the bug
addon library index is missing To Reproduce
go to addon library and clicking refresh, link in the addon library is not found Expected behavior
Should load the add-ons index, manually installing addons not working since it requires a zip-manifest that isn't in the master Logs
Additional context
Should be a pretty simple fix to add the yaml
temp fix: add https://raw.githubusercontent.com/mudler/LocalAI/refs/tags/v5.0.0/gallery/addons/index.yaml as a addon source (you can also use master but i think pinning to v5.0.0 is more stable)
thanks that's pretty helpful for now. I hope they fix it soon.
I ran into the same issue. @mudler after doing some digging, I suspect its due to redirecting
From what I can tell
- LocalAI requests the official add-on index.
- GitHub responds with HTTP 302.
- LocalAI doesn't follow the redirect.
- The catalog refresh fails, leaving the official source with zero entries.
- The add-on endpoint subsequently returns HTTP 503.
To my knowledge, the HTTP client for LocalAI's add-on catalog is explicitly configured not to follow redirects.
And this highlights another bug where if 1 add-on source fails, all of the working ones also fail
Thanks for the report, and thanks @shopsD for the digging, that's exactly it. There were two problems in a row: the 5.0.0 release went out before its add-on index was attached (that was the "not found"), and once the index was attached, GitHub serves it through a redirect that the add-on library client refused to follow. So 5.0.0 can't load the official add-on library on its own.
The fix is merged on master (#13341): the client now follows that redirect, but only to GitHub's download hosts over https, and signatures and digests are still verified. It will be in the next patch release.
Until then the workaround above works: add https://raw.githubusercontent.com/mudler/LocalAI/refs/tags/v5.0.0/gallery/addons/index.yaml as a source. After you upgrade, remove that source again so the official library is used.
A custom library that redirects to a host outside that list is still refused; that is tracked in #13342. The other point, that one failing source makes every other source fail too, is a separate bug and we'll track it on its own.
Thanks for raising this up and doing detective work :) . Should be fixed now, I didn't bump into this while testing against master because doesn't redirect there, missed that. Sorry for the inconvenience.
Thanks for raising this up and doing detective work :) . Should be fixed now, I didn't bump into this while testing against master because doesn't redirect there, missed that. Sorry for the inconvenience.
Addons also take a long time to install. with no real progress indicator. it just says "may take a long time". maybe you can store the permissions it needs in the index so that can be instantly accepted, then the installation can go in a background worker? it took me like 15 minutes of actively watching the addons page to get about half of them installed. it would be nice if i could just click through, accept permissions, and let it download/install everything else in the background.
also, it looks like the addons.yml is missing from the v5.0.1 release, and its been 3 hours. maybe have the addons.yml ready before you push the release so users arent stuck with a broken updated install?
@mudler Minor issue in that the addon URL shipped in v5.0.1 is still missing and causes a 404, as mentioned by @zumbiepig
Thanks both, you're right: the v5.0.1 release has no add-on index attached yet.
Cause: the add-on packages were built, signed and published, but the last step, which attaches the catalog to the release, waits for the release's backend image build to finish. That build is still running (after a long queue), so the step gave up and the index was never uploaded. This is a release process bug on our side. I have re-run the failed step now. Once the index is attached, the official library loads without the workaround source. I will confirm here when it is on the release.
The index will be published before the release in future, so a patch release never ships without it.
@zumbiepig: background installs are being worked on. Approval of the requested permissions and the install itself are separate steps in the newer builds, so you can accept everything first and let the installs run in the queue. That is on master and will ship in the next release.
Update: the re-run finished and the add-on index is now attached to the v5.0.1 release (addons-index.yaml). The official library should load on 5.0.1 now; please remove the workaround source if you added one. Let me know if it still fails.