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

Permission problem when launching webui.py

Open martianunlimited opened this issue 2 years ago • 9 comments

folder permission is set to 100 resulting in permission problem loading ./extensions/PromptGallery-stable-diffusion-webui/index.html when starting up webui.py. Permission always seem to reset on launching webui.py. This is the only extension that has this problem. Workaround is to suspend webui.py after message of permission problem starts flooding the screen, and do a chmod 755 on /extensions/PromptGallery-stable-diffusion-webui

Issue seen on WSL2-Ubuntu22.04

martianunlimited avatar Jan 19 '23 22:01 martianunlimited

Removed permission change on latest patch.

dr413677671 avatar Jan 23 '23 09:01 dr413677671

still same for me

Lalimec avatar Jan 24 '23 13:01 Lalimec

@Lalimec @martianunlimited It should be ok now. I forgot to push the change.

dr413677671 avatar Jan 31 '23 12:01 dr413677671

Please reopen if it still happended.

dr413677671 avatar Feb 05 '23 14:02 dr413677671

Still happening for me on the latest commit. I commented out this line: https://github.com/dr413677671/PromptGallery-stable-diffusion-webui/blob/f2375cfa241ca2bb473e6422a90c7262cca1eb0e/scripts/prompt_gallery.py#L36

This fixed the issue for me. Not sure why there is even a need to change any permissions?

h-sahin avatar Feb 07 '23 16:02 h-sahin

I'm having this same problem. The permission on the folder extensions/PromptGallery-stable-diffusion-webui is changed. I have to go into the Finder and give myself read and write permissions on it.

jbnv avatar Mar 02 '23 04:03 jbnv

I wanted to give this a try, but I had the same problem. I tried removing and then reinstalling but the problem persists. Looking through scripts/prompt_gallery.py, I can't find anything setting permissions. Even with the workaround, this makes the extension very difficult to deal with.

jpidelatorre avatar Mar 08 '23 23:03 jpidelatorre

Pulled the latest version today. This is still happening. I'm going to disable Prompt Gallery until this is fixed.

jbnv avatar Mar 22 '23 00:03 jbnv

@jbnv @jpidelatorre @h-sahin I commented line 36 as h-sahin suggested. Could you please try? The purpose of line 36 is to solve some corner case when some user have a readonly file system and the extension could not generate preview file in the folder.

dr413677671 avatar Jul 04 '23 06:07 dr413677671