stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Do not installed Webui under a directory with leading dot (`.`)

Open w-e-w opened this issue 2 years ago • 6 comments

If you're seeing this image

make sure you did not place your webui install under a directory or subdirectory that has a leading dot (.)

example

B:\Downloads\.subdir\sd.webui
             ^

the reason since Gradio version 3.33.0, they add a new security feature that blocks files under a dot directory to be served

The /file= route no longer allows accessing dotfiles or files in "dot directories" by @akx in https://github.com/gradio-app/gradio/pull/4303

in webui 1.6.0 we switch from Gradio 3.32.0 -> 3.41.2, and so the browser will not be able to access webui files if it is installed under a dot dir

related issues https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/12474#issuecomment-1722315735 https://github.com/vladmandic/automatic/issues/2106

note this may also has an effect on certain extensions, if they have files that are intend to be served but are named with a leading dot


another cause of CSS not loading is if you launch webui from a different work directory then webui root https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/13210 (this fix in in dev branch but not yet in master) so if you are experiencing similar issue to above but webui is not installed under a dot dir make sure the wrok dir is webui root

w-e-w avatar Sep 17 '23 01:09 w-e-w

Are you fucking kidding me? I've been scratching my head for well over a month and couldn't use 1.6.0 because of this, not knowing why. Thank you so much.

Cloudwalk9 avatar Oct 08 '23 07:10 Cloudwalk9

should be on the README

mikelpr avatar Oct 27 '23 22:10 mikelpr

This is fixed in v4 branch https://github.com/gradio-app/gradio/pull/6128

Yasand123 avatar Oct 30 '23 18:10 Yasand123

still broken after doing git clean and pull, UI is unresponsive and is now attempting to reinstall everything, as painful as it sounds.

Potato22 avatar Nov 13 '23 16:11 Potato22

another cause of CSS not loading is if you launch webui from a different work directory then webui root https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/13210 (this fix in in dev branch but not yet in master) so if you are experiencing similar issue to above but webui is not installed under a dot dir make sure the wrok dir is webui root

w-e-w avatar Nov 17 '23 06:11 w-e-w

I seem to be having this issue after a recent update, but I dont have anything under a ./ directory to my knowledge, how do I make sure my work directory is correct?

Edit: It would seem its tied to what port I'm using. 7860 is buggy while 7861 works perfectly fine. I have no idea what could be causing this because 7860 is the default and it only starts on 7861 when I'm running KohayaSS on 7860.

RichardTJamison avatar Apr 04 '24 03:04 RichardTJamison