dr413677671 / PromptGallery-stable-diffusion-webui

A prompt cookbook worked as stable-diffusion-webui extenstions.
Apache License 2.0
153 stars 16 forks source link

Permission problem when launching webui.py #22

Open martianunlimited opened 1 year ago

martianunlimited commented 1 year ago

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

dr413677671 commented 1 year ago

Removed permission change on latest patch.

Lalimec commented 1 year ago

still same for me

dr413677671 commented 1 year ago

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

dr413677671 commented 1 year ago

Please reopen if it still happended.

h-sahin commented 1 year ago

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?

jbnv commented 1 year ago

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.

jpidelatorre commented 1 year ago

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.

jbnv commented 1 year ago

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

dr413677671 commented 1 year ago

@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.