mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[GH-ISSUE #1172] bug: hanging when trying to setup automatic1111 integration #83116
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jsuto on GitHub (Mar 14, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1172
Bug Report
Description
I try to setup image generation integration with automatic1111. When I enter the url, I can see a successful connection from the webui to port 7860, and I can even select the default model. However, when I click on the green save button, it doesn't save the settings, instead it hangs. See the below screenshot.
I use open-webui v0.1.111 - 2024-03-10
Bug Summary:
[Provide a brief but clear summary of the bug]
Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
Expected Behavior:
The settings should be saved
Actual Behavior:
It's hanging, and I can't select the realvisxIV40 model to generate an image
Environment
Linux Firefox, the Chrome
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
"Uncaught (in promise) Oops! It looks like there's a hiccup. The API key is missing. Please make sure to provide a valid API key to access this feature."
Note that I don't want to connect to openai, instead to automatic1111 running on the same host, which doesn't need an api key
Docker Container Logs:
INFO: x.x.x.28:55462 - "POST /images/api/v1/url/update HTTP/1.1" 200 OK
INFO: x.x.x.28:55462 - "GET /images/api/v1/models HTTP/1.1" 200 OK
INFO: x.x.x.28:55462 - "GET /images/api/v1/models/default HTTP/1.1" 200 OK
INFO: x.x.x.28:55463 - "POST /images/api/v1/key/update HTTP/1.1" 400 Bad Request
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Installation Method
It runs in docker container
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@Yabbo commented on GitHub (Mar 14, 2024):
im on Open WebUI Version
v0.1.111 (latest)
When i try and save its just spins on saving

the webui for stable difusion / automatic1111 is running and reachable from the URL provided. the check comes back good.
@Ethike458 commented on GitHub (Mar 14, 2024):
Initial Description:
This happens to me as well since the last release. The save button for this section just spins and your settings do not stick. I noticed it will run the first model in the list of models (or I believe the last one since update), but it will not save any changes, nor let you change models or other options in the image section.
Update:
I tested a few things, and a work around that worked for me, is to move out your models from "../stable-diffusion-webui/models/Stable-diffusion/" elsewhere (only tested stable-diffusion). Then only copy in 1 file you wish to use and restart the automatic1111 processes and verify again in open-webui. Even though it won't let you save, once you verify the "Base URL", you can run the image generation and it will do it with that model.
I also tested having multiple models in the "../stable-diffusion-webui/models/Stable-diffusion/" and it seems to only take the first one alphabetically.
It's not the "last" model used before the update as mentioned earlier.
Obviously, these are not ideal, but it means you can still do some image generation.
Other Information:
O/S: Ubuntu 20,04
@Real-Bimox commented on GitHub (Mar 15, 2024):
I have the same issue, with the same version, as above.
@tjbck commented on GitHub (Mar 15, 2024):
Taking a look!
@tjbck commented on GitHub (Mar 15, 2024):
Should be fixed on our dev branch now, feel free to try it out and let me know if the issue persists!
@jsuto commented on GitHub (Mar 15, 2024):
Sure, what's the docker image I could test with?
I guess it's building: https://github.com/open-webui/open-webui/actions/runs/8294193722/job/22698708720
@jsuto commented on GitHub (Mar 15, 2024):
Thank you, I can confirm that your fix has worked.