Woolverine94 / biniou

a self-hosted webui for 30+ generative ai
GNU General Public License v3.0
439 stars 42 forks source link

can't start app using docker #11

Closed dhlsam closed 7 months ago

dhlsam commented 7 months ago

There was a problem when trying to write in your cache folder (/home/biniou/.cache/huggingface/hub). Please, ensure the directory exists and can be written to. There was a problem when trying to write in your cache folder (/home/biniou/.cache/huggingface/hub). You should set the environment variable TRANSFORMERS_CACHE to a writable directory. Traceback (most recent call last): File "/home/biniou/biniou/webui.py", line 14, in from ressources import File "/home/biniou/biniou/ressources/init.py", line 2, in from .llamacpp import File "/home/biniou/biniou/ressources/llamacpp.py", line 11, in os.makedirs(model_path_llamacpp, exist_ok=True) File "/usr/lib/python3.9/os.py", line 225, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: './models/llamacpp/'

2024-01-31 02 13 03
Woolverine94 commented 7 months ago

Hello @dhlsam,

Thanks for your feedback.

Can you give more context on your installation ?

Can you confirm that you launch biniou using :

docker run -it --restart=always -p 7860:7860 \
-v biniou_outputs:/home/biniou/biniou/outputs \
-v biniou_models:/home/biniou/biniou/models \
-v biniou_cache:/home/biniou/.cache/huggingface \
-v biniou_gfpgan:/home/biniou/biniou/gfpgan \
biniou:latest

As it seems that you don't have writing permissions on at least models and .cache folders, can you also post the result of :

ls -Al /mnt/user/ssd/biniou/
ls -Al /mnt/user/ssd/biniou/models/
ls -Al /mnt/user/ssd/biniou/models/_data/
Woolverine94 commented 7 months ago

For further information @dhlsam ,

Definitely a permission issue :

I've solved it by giving ownership of /mnt/user/ssd/biniou to the standard user I use to execute the docker command :

sudo chown -R <username>:root /mnt/user/ssd/biniou

If it's not applicable in your environment, please consider using setfacl to add write permission to the biniou directory and its subfolders for your user.

I close the issue, please don't hesitate to re-open if needed.