Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker image (from dockerhub) start up error #459

Open
fanyangto opened this issue Jan 15, 2025 · 3 comments
Open

docker image (from dockerhub) start up error #459

fanyangto opened this issue Jan 15, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@fanyangto
Copy link

Which OS are you using?

I am using PVE/LXC with docker. I have been running docker like this successfully for many images.

sudo docker run -d --restart unless-stopped --user $(id -u):$(id -g) jhj0517/whisper-webui:latest

I have run into this error in the docker logs:

PermissionError: [Errno 13] Permission denied: '/Whisper-WebUI/models/Whisper' Traceback (most recent call last): File "/Whisper-WebUI/app.py", line 7, in <module> from modules.utils.paths import (FASTER_WHISPER_MODELS_DIR, DIARIZATION_MODELS_DIR, OUTPUT_DIR, WHISPER_MODELS_DIR, File "/Whisper-WebUI/modules/utils/paths.py", line 37, in <module> os.makedirs(dir_path, exist_ok=True) File "<frozen os>", line 225, in makedirs PermissionError: [Errno 13] Permission denied: '/Whisper-WebUI/models/Whisper' Traceback (most recent call last): File "/Whisper-WebUI/app.py", line 7, in <module> from modules.utils.paths import (FASTER_WHISPER_MODELS_DIR, DIARIZATION_MODELS_DIR, OUTPUT_DIR, WHISPER_MODELS_DIR, File "/Whisper-WebUI/modules/utils/paths.py", line 37, in <module> os.makedirs(dir_path, exist_ok=True) File "<frozen os>", line 225, in makedirs PermissionError: [Errno 13] Permission denied: '/Whisper-WebUI/models/Whisper' Traceback (most recent call last): File "/Whisper-WebUI/app.py", line 7, in <module> from modules.utils.paths import (FASTER_WHISPER_MODELS_DIR, DIARIZATION_MODELS_DIR, OUTPUT_DIR, WHISPER_MODELS_DIR, File "/Whisper-WebUI/modules/utils/paths.py", line 37, in <module> os.makedirs(dir_path, exist_ok=True) File "<frozen os>", line 225, in makedirs

@fanyangto fanyangto added the bug Something isn't working label Jan 15, 2025
@fanyangto fanyangto changed the title docker image start up error docker image (from dockerhub) start up error Jan 15, 2025
@jhj0517
Copy link
Owner

jhj0517 commented Jan 17, 2025

Hi, thanks for reporting.

This was not reproducible on my end.
Somehow the your docker container is having permission error with this:

os.makedirs(dir_path, exist_ok=True)

I'm not sure about the reason but it does not allow to run os.makedirs(path, exists_ok=True) on your container.
It makes some subdirectories under the VOLUMES of the image.

My suggestion is to try running the docker with the docker-compose.yaml file, hopefully the mounted paths to the volumes would solve the permissions problem.

If you have already pulled the image, you can just do :

git clone https://github.com/jhj0517/Whisper-WebUI.git
cd ./Whisper-WebUI
docker compose up 

@fanyangto
Copy link
Author

fanyangto commented Feb 2, 2025

I was able to overcome this error by removing the --user $(id -u):$(id -g). This means the container will run as root instead of the current non-root user and group.

Original, failed command:"
sudo docker run -d --restart unless-stopped --user $(id -u):$(id -g) jhj0517/whisper-webui:latest

New command that can start up properly:
sudo docker run -d --restart unless-stopped jhj0517/whisper-webui:latest

However, with this change, the container does not respond on port 7860. And docker logs show nothing (completely empty).

It would be really helpful if you document the command to start the docker image that you've compiled.

@jhj0517
Copy link
Owner

jhj0517 commented Feb 2, 2025

I would recommend running the docker with compose because it's easy to configure some parameters with it:

But if you want to run it without the compose, it would probably be :

docker run -it -d -p 7860:7860 -v "/Whisper-WebUI/models" -v "/Whisper-WebUI/outputs" --gpus all jhj0517/whisper-webui:latest python app.py --server_port 7860 --server_name 0.0.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants