LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

Can't create folders to download models

Open Ezneh opened this issue 1 month ago • 4 comments

LocalAI version: (Container) Version: v4.11.0 Revision: 1.1.40

Environment, CPU architecture, OS, and Version: Truenas Scale community edition 26.0.0-MASTER+20260702-020147

Describe the bug Whenever I try to download a model or backend, I get the following issue: Couldn't install modelfailed to create staging path: mkdir /backends/cpu-llama-cpp.install-tmp: permission denied

To Reproduce Go to models or backend and click install on any model/backend

Expected behavior It should be able to create missing folders, or should they already be created and writable

Ezneh avatar Oct 21 '26 16:10 Ezneh

The error occurs while creating /backends/cpu-llama-cpp.install-tmp, before the backend download can be staged. The process needs permission to create directories in its configured /backends mount.

Please share the container's effective UID/GID, the owner and permissions of /backends inside the container, and the TrueNAS dataset mount settings (including whether the mount is read-only and any ACL). Also include the exact image tag/digest and app run-as settings. These details will distinguish a dataset permission mismatch from an installation bug. If the dataset is read-only or grants access to a different UID, make the backend storage writable by the configured container user and retry.

localai-org-maint-bot avatar Oct 22 '26 03:10 localai-org-maint-bot

Created https://github.com/truenas/apps/issues/6233 568 is the user. Default is Allow/Modify perms. On my Backend, I gave 568 full control. It still has the error: failed to create staging directory: mkdir //downloading: permission denied

FlattusBlastus avatar Oct 24 '26 04:10 FlattusBlastus

3. Created https://github.com/truenas/apps/issues/6233 568 is the user. Default is Allow/Modify perms. On my Backend, I gave 568 full control. It still has the error: failed to create staging directory: mkdir //downloading: permission denied

Let's hope the issue will be fixed either way

Ezneh avatar Oct 24 '26 05:10 Ezneh

I think those are two different issue. : mkdir /backends/... simply expects the process user to own /backends.

while //downloading is a broken path missing it's basedir and afaik was introduced in 4.12.x

Nold360 avatar Oct 25 '26 07:10 Nold360