dr413677671 / PromptGallery-stable-diffusion-webui

A prompt cookbook worked as stable-diffusion-webui extenstions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Permission problem when launching webui.py

martianunlimited opened this issue · 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

Removed permission change on latest patch.

commented

still same for me

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

Please reopen if it still happended.

Still happening for me on the latest commit. I commented out this line:

os.chmod('./extensions/'+name, stat.S_IRWXO)

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

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.

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.

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

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