-
Notifications
You must be signed in to change notification settings - Fork 26.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Error: Connection errored out. #9074
Comments
After trying a bunch of stuff I have found out that adding the code below at the bottom of the style.css file helps a bit, but problems still occur sometimes.
|
I have the same error when I try to connect from another device, although everything is fine on the main computer |
取消外网,清除代理信息就可以 |
me too |
Same problem, did a fresh install, always happens when sending an image to extras and trying to scale it |
export COMMANDLINE_ARGS="--no-gradio-queue" |
可部署在服务器上,只能用外网 |
I'm running into this issue as well |
Same issue here on Ubuntu 2204. This fixed it for me (thanks!). |
Been struggling with the same thing for a few days now. This does fix the ui but I require that the queue is working so hopefully we can figure out the reason it has been breaking everything :( Has been broken in every commit I've tried since the option was added |
Same issue, any way to solve this issue without flag with "--no-gradio-queue"? thanks |
sorry dumb question, how do i run this command line? do i insert in the batch file? if i run on python it tells me syntax error |
Just copy and paste |
this can solve the problem, while another problem emerged: when one task is processing, I cannot put a second one in task queue. After I click the "Generate" to submit second task, it will show "In queue..." forever |
Remote Instance
Local Instance
|
Which branch are you using? latest I see for the master branch is 2 weeks ago? 22bcc7b |
Using master which includes 22bcc7b does not fix the problem for me. The only workaround is using |
I am running ClashX proxy, when I quit the software, the error goes away. |
worked for me. thanks! |
Thank you, it works on my Ubuntu Server 20.04 |
Can I get confirmation if any of these issues are only happening on http connections that are using --gradio-auth? When gradio queue is enabled and tries to use websockets it attempts to access the login cookie for an https connection and fails to do so as only the one created from http exists. Apparently a documented gradio issue. I've been trying to fix it for like two weeks. Just wish the people saying to use --no-gradio-queue would have mentioned that was the reason since I need the queue to be working. Took me like 5 seconds to fix with an ssl cert once I knew that was the problem. I've wasted so much time thinking the queue implementation of the webui was the problem. Anyway, that was the issue for me and I hope stating it here helps someone else. |
Referring to gradio's bug fix, currently manually modifying the routes file can solve the problem,But there are still plug-ins that report errors |
Uncertain whether or not you replied to mentioning of this discussion by @CoqueTornado in another discussion, or to my post before it about the training result images being too colorful and not realistically-looking, I can say that I had already tried using the P.S. I can see that the latest version of Stable Diffusion mentioned under Releases as of now is 1.2.1, so I will also update my installation of Stable Diffusion to that particular version, and check how training in that version will work with the |
IT said
|
Similarly, in version 1.2.1,
start flag python webui.py --xformers --listen --enable-insecure-extension-access --no-progressbar-hiding --no-gradio-queue Now I have to use an old version because it depends on a lower version of gradio as well. |
In my case (Stable Diffusion run locally on my Mac Mini), using |
I'm using Stable Diffusion in Google Colab via saving my files on Google Drive and facing the same issue. First, i've downloaded |
@GounGG Which version can be used to avoid connection errored out issue? Is it possible to use older versions in google colab? |
i am also having same issue but i use stable diffusion on google colab. can someone help me on it? |
i used also i put this in the console of google colab web so it can remain use while run
|
i dont know much can you tell where i have to put !COMMANDLINE_ARGS="--share --disable-safe-unpickle --no-half-vae --xformers --enable-insecure-extension --gradio-queue --theme dark" REQS_FILE="requirements.txt" python launch.py |
pasting this in new cell says "python3: can't open file '/content/launch.py': [Errno 2] No such file or directory" |
In my case, this error occurred because of the anti-virus application kaspersky premium. It blocked the connection of Public My WebUI 127.0.0.1:7860. The solution is to add 127.0.0.1:7860 to Kaspersky Premium's trusted address. |
oh kaspersky, always doing weird things.. thank u so much! your solution was what i needed, this antivirus seem to mess with most of the AI programs xD (had an issue like this with Okada's voice changer) |
I got it fixed by NOT adding
References |
I am just running Automatic1111 by 2x Clicking "webui-user.bat" file. How do I add this command line? I am not coding savvy :( |
I have same issue when i use ngnix for proxy. Gradio's Guide Nginx Proxy Paramters server { |
export COMMANDLINE_ARGS="--no-gradio-queue" |
哥们 你解决了吗 |
The webui was unusable while using an nginx reverse proxy to access my install remotely. Each connection got an "Connection errored out" warning, and I couldn't generate any images. Can confirm that --no-gradio-queue fixed the issue. |
When running
Actually, @BrassaiKao 's solution provides the insights. By adding only these two headers in the nginx conf fixed the problem.
Should add it to the error message to help with resolving this issue. |
Thanks this did the trick for me too. |
Is there an existing issue for this?
What happened?
This is my first time making a report on github, so I might miss a few things here and there.
I was using it normally for the first 5 minutes, after adding a couple of models, and changed model for the first time, it stayed refreshing for 5 minutes so I decided to refresh the page and now I see errors all over the page, when I type in the input box it shows an error and I can't change models it shows error there, I tried reloading UI, reinstalling the whole git and deleting the huggingface folder from ./cache sometimes it works but after 1 minute it breaks again
I've tried checking the browser console all I see is 1 error and its
Firefox can’t establish a connection to the server at ws://127.0.0.1:7860/queue/join.
Steps to reproduce the problem
Unknown
What should have happened?
Should not show error messages and work normally.
Commit where the problem happens
955df77
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
List of extensions
Default
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: