AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.66k stars 26.91k forks source link

[Bug]: Failed to connect to ec2.gradio.app:22: [Errno 110] Connection timed out #12445

Open roxas122 opened 1 year ago

roxas122 commented 1 year ago

Is there an existing issue for this?

What happened?

Use Google Colab and run into problems: Failed to connect to ec2.gradio.app:22: [Errno 110] Connection timed out

Steps to reproduce the problem

  1. Use Google Colab
  2. Clone the repo using git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
  3. run %pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchtext==0.14.1 torchaudio==0.13.1 torchdata==0.5.1 --extra-index-url https://download.pytorch.org/whl/cu117
  4. run %pip install torchmetrics==0.11.4
  5. run !git checkout 11d432d
  6. Start the webui-user.bat

What should have happened?

The Web-UI should have launched without any errors.

Version or Commit where the problem happens

11d432d

What Python version are you running on ?

None

What platforms do you use to access the UI ?

No response

What device are you running WebUI on?

No response

Cross attention optimization

Automatic

What browsers do you use to access the UI ?

No response

Command Line Arguments

--theme dark --share --gradio-debug --disable-safe-unpickle --no-half-vae --reinstall-xformers --enable-insecure-extension-access --opt-channelslast

List of extensions

No

Console logs

Running on local URL:  http://127.0.0.1:7860
*** Failed to connect to ec2.gradio.app:22: [Errno 110] Connection timed out

Additional information

I would like to keep using 11d432d if I could.

akx commented 1 year ago

This likely won't happen if you don't use --share. (Also, you really don't want to use --share if you're disabling all of that security.)

roxas122 commented 1 year ago

This likely won't happen if you don't use --share. (Also, you really don't want to use --share if you're disabling all of that security.)

How do I make a link without using --share? If I don't use 11d432d, I can create a share link normally, but when I use it, "Failed to connect to ec2.gradio.app:22" will appear. I want to use 11d432d, is there any way? thank you.

aakashag1 commented 1 year ago

Facing the same issue on Kaggle! *** Failed to connect to ec2.gradio.app:22: [Errno 110] Connection timed out

Maybe they have banned gradio live connection on Kaggle and Google Colab

FoolPepper commented 10 months ago

Hello,@roxas122 I have solved this problem on my code. I want to share with you and that might be a help.

  1. without using --share, just like: demo.launch(server_name='127.0.0.1', server_port=8080)
  2. use the command "nohup" to run the code!!!! Don't just like: python app.py,instead: nohup python app.py nohup.out 2>&1 &

Hope it will help you!