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

[Bug]: Permission denied for docker compose #3768

Open
4 of 5 tasks
Szaamaan opened this issue Dec 6, 2024 · 0 comments
Open
4 of 5 tasks

[Bug]: Permission denied for docker compose #3768

Szaamaan opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working triage This needs an (initial) review

Comments

@Szaamaan
Copy link

Szaamaan commented Dec 6, 2024

Checklist

  • The issue has not been resolved by following the troubleshooting guide
  • The issue exists on a clean installation of Fooocus
  • The issue exists in the current version of Fooocus
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

After cloning the repository and trying to get Fooocus to run inside a docker container via docker compose up there's a bunch of permissions issues happening in the logs and, ultimately, the whole thing crashes.

Steps to reproduce the problem

  • Running WSL2 with Ubuntu on Windows.
  • git clone https://github.com/lllyasviel/Fooocus.git
  • cd Fooocus
  • sudo docker compose up

Docker has been installed previously, along with the Nvidia container tookit.

docker --version
Docker version 27.3.1, build ce12230

What should have happened?

I'd expect docker compose up to start Fooocus. There's no mention of anything else required. Sadly that's not the case.

What browsers do you use to access Fooocus?

No response

Where are you running Fooocus?

Locally with virtualization (e.g. Docker)

What operating system are you using?

Windows 10 22H2 /w WSL2 running Ubuntu

Console logs

Attaching to app-1
app-1  | cp: cannot create regular file '/content/app/models/./checkpoints/put_checkpoints_here': Permission denied
app-1  | cp: preserving times for '/content/app/models/./checkpoints': Operation not permitted
app-1  | cp: cannot create directory '/content/app/models/./clip': Permission denied
app-1  | cp: cannot create regular file '/content/app/models/./clip_vision/put_clip_vision_models_here': Permission denied
app-1  | cp: cannot create regular file '/content/app/models/./clip_vision/wd-v1-4-moat-tagger-v2.csv': Permission denied
app-1  | cp: preserving times for '/content/app/models/./clip_vision': Operation not permitted
app-1  | cp: cannot create directory '/content/app/models/./configs': Permission denied
app-1  | cp: cannot create regular file '/content/app/models/./controlnet/put_controlnets_and_t2i_here': Permission denied
app-1  | cp: preserving times for '/content/app/models/./controlnet': Operation not permitted
app-1  | cp: cannot create directory '/content/app/models/./diffusers': Permission denied
app-1  | cp: cannot create regular file '/content/app/models/./embeddings/put_embeddings_or_textual_inversion_concepts_here': Permission denied
app-1  | cp: preserving times for '/content/app/models/./embeddings': Operation not permitted
app-1  | cp: cannot create directory '/content/app/models/./gligen': Permission denied
app-1  | cp: cannot create directory '/content/app/models/./hypernetworks': Permission denied
app-1  | cp: cannot create regular file '/content/app/models/./inpaint/put_inpaint_here': Permission denied
app-1  | cp: preserving times for '/content/app/models/./inpaint': Operation not permitted
app-1  | cp: cannot create regular file '/content/app/models/./loras/put_loras_here': Permission denied
app-1  | cp: preserving times for '/content/app/models/./loras': Operation not permitted
app-1  | cp: cannot create directory '/content/app/models/./prompt_expansion': Permission denied
app-1  | cp: cannot create directory '/content/app/models/./safety_checker': Permission denied
app-1  | cp: cannot create directory '/content/app/models/./style_models': Permission denied
app-1  | cp: cannot create directory '/content/app/models/./unet': Permission denied
app-1  | cp: cannot create regular file '/content/app/models/./upscale_models/put_esrgan_and_other_upscale_models_here': Permission denied
app-1  | cp: preserving times for '/content/app/models/./upscale_models': Operation not permitted
app-1  | cp: cannot create directory '/content/app/models/./vae': Permission denied
app-1  | cp: cannot create regular file '/content/app/models/./vae_approx/put_taesd_encoder_pth_and_taesd_decoder_pth_here': Permission denied
app-1  | cp: preserving times for '/content/app/models/./vae_approx': Operation not permitted
app-1  | cp: preserving times for '/content/app/models/.': Operation not permitted
app-1  | [System ARGV] ['launch.py', '--listen']
app-1  | Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0]
app-1  | Fooocus version: 2.5.5
app-1  | Environment: config_path = /content/data/config.txt
app-1  | Environment: config_example_path = /content/data/config_modification_tutorial.txt
app-1  | Environment: path_checkpoints = /content/data/models/checkpoints/
app-1  | Environment: path_loras = /content/data/models/loras/
app-1  | Environment: path_embeddings = /content/data/models/embeddings/
app-1  | Environment: path_vae_approx = /content/data/models/vae_approx/
app-1  | Traceback (most recent call last):
app-1  |   File "/content/app/launch.py", line 87, in <module>
app-1  |     from modules import config
app-1  |   File "/content/app/modules/config.py", line 195, in <module>
app-1  |     path_vae = get_dir_or_set_default('path_vae', '../models/vae/')
app-1  |   File "/content/app/modules/config.py", line 184, in get_dir_or_set_default
app-1  |     os.makedirs(dp, exist_ok=True)
app-1  |   File "/usr/lib/python3.10/os.py", line 225, in makedirs
app-1  |     mkdir(name, mode)
app-1  | PermissionError: [Errno 13] Permission denied: '/content/app/models/vae'
app-1 exited with code 1


### Additional information

I've tried cleaning out docker via `docker system prune -a -f` to make sure I've got a "clean slate". Alas this didn't help.
@Szaamaan Szaamaan added bug Something isn't working triage This needs an (initial) review labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This needs an (initial) review
Projects
None yet
Development

No branches or pull requests

1 participant