[GH-ISSUE #78] [Suggestion] Docker combatibility version #56

Open
opened 2026-10-30 21:18:02 +00:00 by bsakaguchi · 6 comments
Owner

Originally created by @Corshi on GitHub (Nov 19, 2022).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/78

Originally assigned to: @DominikDoom on GitHub.

Not a real issue. This extension is just not working with docker variation of WEBUI.
https://github.com/AbdBarho/stable-diffusion-webui-docker

I have OS that refuses to install normal AUTOMATIC1111'a repo.
This extension requires to move the files to the core of it.
...well, that is not allowed in docker, as all files are nicely backed-up and run in separate "virtual machine" - of some sorts.
(That way it is even easier and safer to run. Control over memory used is very easy that way.)
...and I cant edit main files of the repo.

If there is someone willing to make a alternative of this extension - that would work with docker version, It would be nice.

that is all... sorry to bother.

Originally created by @Corshi on GitHub (Nov 19, 2022). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/78 Originally assigned to: @DominikDoom on GitHub. Not a real issue. This extension is just not working with docker variation of WEBUI. https://github.com/AbdBarho/stable-diffusion-webui-docker I have OS that refuses to install normal AUTOMATIC1111'a repo. This extension requires to move the files to the core of it. ...well, that is not allowed in docker, as all files are nicely backed-up and run in separate "virtual machine" - of some sorts. (That way it is even easier and safer to run. Control over memory used is very easy that way.) ...and I cant edit main files of the repo. If there is someone willing to make a alternative of this extension - that would work with docker version, It would be nice. that is all... sorry to bother.
Author
Owner

@DominikDoom commented on GitHub (Nov 19, 2022):

This extension requires to move the files to the core of it

I'm not really sure what you mean by that? Don't all extensions need to be installed inside the /extensions folder of the webui?
I can't really change that if docker doesn't support it or the webui has problems loading them.

<!-- gh-comment-id:1320900654 --> @DominikDoom commented on GitHub (Nov 19, 2022): > This extension requires to move the files to the core of it I'm not really sure what you mean by that? Don't all extensions need to be installed inside the `/extensions` folder of the webui? I can't really change that if docker doesn't support it or the webui has problems loading them.
Author
Owner

@DominikDoom commented on GitHub (Nov 19, 2022):

Actually, I just had a look in the repo you looked and think the issue is this in the dockerfile:
WORKDIR ${ROOT}/repositories/stable-diffusion
The workdir is not the same as the webui root. This extension needs to know where it is installed to find the config and tag files in javascript, so it leads to issues when scripts are run from another directory. Some colabs had similar path issues.

Please try the following:
In line 8 of scripts/tag_autocomplete_helper.py

# Webui root path
FILE_DIR = Path().absolute()

Change it to FILE_DIR = "/stable-diffusion-webui" as a test.
If my guess is right, this might solve it due to path checks being relative to the main dir again. This won't be a permanent solution, but you could fork the extension and change it there, if I don't find out a solution that fits both local and docker installs.

<!-- gh-comment-id:1320906044 --> @DominikDoom commented on GitHub (Nov 19, 2022): Actually, I just had a look in the repo you looked and think the issue is this in the dockerfile: `WORKDIR ${ROOT}/repositories/stable-diffusion` The workdir is not the same as the webui root. This extension needs to know where it is installed to find the config and tag files in javascript, so it leads to issues when scripts are run from another directory. Some colabs had similar path issues. Please try the following: In line 8 of `scripts/tag_autocomplete_helper.py` ```py # Webui root path FILE_DIR = Path().absolute() ``` Change it to `FILE_DIR = "/stable-diffusion-webui"` as a test. If my guess is right, this might solve it due to path checks being relative to the main dir again. This won't be a permanent solution, but you could fork the extension and change it there, if I don't find out a solution that fits both local and docker installs.
Author
Owner

@DominikDoom commented on GitHub (Nov 20, 2022):

To give a few more infos on this:
As discussed in this issue https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/216 it was indeed the working directory preventing the initial load, however another problem related to Gradio's file serving functionality has popped up, which might take a while to fix and seems out of my scope for now.

<!-- gh-comment-id:1321107062 --> @DominikDoom commented on GitHub (Nov 20, 2022): To give a few more infos on this: As discussed in this issue https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/216 it was indeed the working directory preventing the initial load, however another problem related to Gradio's file serving functionality has popped up, which might take a while to fix and seems out of my scope for now.
Author
Owner

@Corshi commented on GitHub (Nov 20, 2022):

As of this "This extension requires to move the files to the core of it." I just miss read things on front page. Sorry for causing confusion.
I also tried the hings you suggested. I even tried different directories of the installation, but nothing worked.
I tried to sent this message before, but had internet problems...

Well, now I see the other bug report you linked, so all I want to say now, is that I'm grateful to you, for trying and spending your time on this subject.
Thanks

<!-- gh-comment-id:1321245507 --> @Corshi commented on GitHub (Nov 20, 2022): As of this "This extension requires to move the files to the core of it." I just miss read things on front page. Sorry for causing confusion. I also tried the hings you suggested. I even tried different directories of the installation, but nothing worked. I tried to sent this message before, but had internet problems... Well, now I see the other bug report you linked, so all I want to say now, is that I'm grateful to you, for trying and spending your time on this subject. Thanks
Author
Owner

@xiaxichen commented on GitHub (Nov 26, 2022):

I have A error for this docker
image
what should i do , to fix this error?

<!-- gh-comment-id:1328063508 --> @xiaxichen commented on GitHub (Nov 26, 2022): I have A error for this docker <img width="836" alt="image" src="https://user-images.githubusercontent.com/34499404/204095697-0eadf6bf-8717-4260-a34a-fc9f64ed47f5.png"> what should i do , to fix this error?
Author
Owner

@DominikDoom commented on GitHub (Nov 26, 2022):

@xiaxichen See the last few comments in https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/216, this error is related to how Gradio works with loading files in javascript for security reasons. I can't fix it from my side for now, it essentially requires a different setup for adding the extensions to the docker image, which depends on the developers of the docker image or on gradio to properly support symlinks created by the docker mount process.

<!-- gh-comment-id:1328064819 --> @DominikDoom commented on GitHub (Nov 26, 2022): @xiaxichen See the last few comments in https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/216, this error is related to how Gradio works with loading files in javascript for security reasons. I can't fix it from my side for now, it essentially requires a different setup for adding the extensions to the docker image, which depends on the developers of the docker image or on gradio to properly support symlinks created by the docker mount process.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#56
No description provided.