Alpaca
Alpaca copied to clipboard
[Errno 13] Permission denied: '/etc/os-release'
Describe the bug Installed v5.2 from SnapStore on PopOS (Ubuntu) 22.04, see https://snapcraft.io/alpaca-kenvandine
-
Added an instance (my ollama container)
-
Sent a prompt
-
Got the error:
[Errno 13] Permission denied: '/etc/os-release'spinning wheel, forever and ever
Expected behavior ollama container replies
Screenshots
Debugging information From the ollama container:
[GIN] 2025/03/22 - 18:15:38 | 200 | 3.856187ms | 172.17.0.1 | GET "/api/tags"
[GIN] 2025/03/22 - 18:15:38 | 200 | 13.992589ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 13.879329ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 18.437434ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 14.264643ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 16.669769ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 30.561409ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 30.156361ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 31.702014ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 27.440332ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 37.271826ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 36.09694ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 38.817713ms | 172.17.0.1 | POST "/api/show"
[GIN] 2025/03/22 - 18:15:38 | 200 | 60.086083ms | 172.17.0.1 | POST "/api/show"
time=2025-03-22T18:16:08.971Z level=WARN source=routes.go:909 msg="bad manifest filepath" name=registry.ollama.ai/library/mistral:latest error="open /root/.ollama/models/blobs/sha256-1cb90d66f4d492f245f0646c4eeca107b5d54b5f085fdea20578fdf2579d5e98: no such file or directory"
[GIN] 2025/03/22 - 18:16:08 | 200 | 4.465005ms | 172.17.0.1 | GET "/api/tags"
First lines are Alpaca getting my models.
(Snap) jeffser-alpaca 5.2 (kenvandine, stable) snap package published on the SnapStore
Hello there, and thanks for taking the time to write a bug report.
Please note that the Snapcraft package is not maintained by Jeffser or the base Alpaca community. Instead, report any issues to https://github.com/kenvandine/alpaca-snap/issues.
Furthermore, the latest stable version is 5.3.0. It will probably release within a short timespan on Snapcraft as well, but likely won't fix your issue.
Edit: After checking out the store listing for Alpaca I see it points to the right issues and sponsor links, although it pisses me off that someone else is publishing Alpaca in the Snap Store cause I've been fighting with the snapcraft software to publish it and it never worked but that's whatever, Alpaca is open source and as long as it's clear that's not an official redistribution, it's fine.
Now about your problem, I believe it's caused by your instance and not Alpaca, you see, the warning in the terminal bad manifest filepath seems to come directly from Ollama and not Alpaca.
Just wondering, does your Ollama instance work well outside of Alpaca?
Sorry, I thought you knew about the snap package. BTW, his 5.3 is broken on my Ubuntu 22.04, menu for instances and models are greyed, so it's a no go for the future. And since 5.2 doesn't allow me to use ollama, I also uninstalled it.
I realize the error in ollama logs is about Mistral, which was removed way before installing Alpaca, but my ollama works fine through the API locally. So I have no idea what happens when I prompt it, after Alpaca correctly gets the model (api/show)
I'm not fond of flatpak, because I need to install HUGE dependencies that are already there (Gnome is my desktop):
sudo flatpak install com.jeffser.Alpaca.flatpak
Required runtime for com.jeffser.Alpaca/x86_64/master (runtime/org.gnome.Platform/x86_64/48) found in remote flathub
GBs of redundant libraries are a no-go for me.
I really hope snapcraft will let you publish your version ASAP. Please let me know here if you can. Have a great week!
Well it certainly is a weird error, Alpaca never requests /etc/os-release so I have no idea what's going on there.
Maybe, it's the OpenAI library not working under the Snap package but the repackager most likely already tested message generation.
I'll look into it and update you if I find something
I see the latest version is edge in Snap, could you test it?
sudo snap install alpaca-kenvandine --edge
I think you can aslo change the channel to edge from the graphical store, not sure, haven't use it.
I did, edge is 5.3
Well does it work now? You mentioned in the issue that you were running 5.2.0
Nope, as mentioned above his 5.3 is broken on my Ubuntu 22.04, menu for instances and models are greyed
Oh yeah you said that, my bad I forgot
No problem. I can't take a screenshot, but I took a pic:
That's strange cause there's no code that could grey out those options, maybe it's a snap specific issue but I couldn't see how that could happen