LocalAI
LocalAI copied to clipboard
error="failed basic startup tasks with error unable to create ModelPath: \"mkdir /usr/share/local-ai/models: permission denied\""
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
anyone have a fix for this yet?
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?
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.
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.
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.
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.
This issue was closed because it has been stalled for 5 days with no activity.