LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

error="failed basic startup tasks with error unable to create ModelPath: \"mkdir /usr/share/local-ai/models: permission denied\""

Open K0-RR opened this issue 1 year ago • 3 comments

LocalAI version: I used the script installer just now

Environment, CPU architecture, OS, and Version:

Linux nacia 6.8.0-45-generic #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 11 15:25:05 UTC 2 x86_64 x86_64 x86_64 GNU/Linux - Zorin OS 17.2 Core

Describe the bug

image

K0-RR avatar Sep 28 '24 11:09 K0-RR

anyone have a fix for this yet?

ghost avatar Oct 17 '24 20:10 ghost

same problem here : I tried default install (no root) and there was problems to access /usr/share/local-ai/

then I reinstalled as root, but other problems pop up. (can't remember).

Then I deleted all, and reinstalled in user mode, specifying a custom model path.

Now the error when starting local-ai run is: FTL Error running the application error="failed basic startup tasks with error unable to create ImageDir: \"mkdir /tmp/generated/images: permission denied\""

I'm on linux Mint 22, Linux MyComputer 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

do I need to run this a root?

lemassykoi avatar Apr 10 '25 16:04 lemassykoi

I'm not sure if this could be the fix, but try to edit the MODELS_PATH variable from the /etc/localai.env file to a directory with write access.

m-nikolaidis avatar Apr 17 '25 02:04 m-nikolaidis

I'm not sure if this could be the fix, but try to edit the MODELS_PATH variable from the /etc/localai.env file to a directory with write access.

Image

drwxrwxrwx 2 local-ai local-ai 20480 jul 10 12:15 models

12:23PM FTL Error running the application error="failed basic startup tasks with error unable to create ModelPath: "mkdir /media/WD_ELEMENTS: permission denied""

I can't change the directory with models. I changed groups and permissions, but it won't work.

vldmr-d avatar Jul 10 '25 10:07 vldmr-d

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 11 '25 02:10 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Oct 16 '25 02:10 github-actions[bot]