AUTOMATIC1111 / stable-diffusion-webui

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

connection Timeout Error [Bug]: #11245

Open Thisguy40 opened 1 year ago

Thisguy40 commented 1 year ago

Is there an existing issue for this?

What happened?

every time I start-up the program the loading screen is paused and is loaded with errors

Steps to reproduce the problem

  1. Go to .... the program and run it
  2. after some the error will occur

What should have happened?

it should have made the link to http://127.0.0.1:7860/

Commit where the problem happens

baf6946e06249c5af9851c60171692c44ef633e0

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

Nvidia GPUs (GTX 16 below)

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

no

List of extensions

No

Console logs

venv "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.3.2
Commit hash: baf6946e06249c5af9851c60171692c44ef633e0
Installing requirements
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Loading weights [a9ea6564b8] from D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\models\Stable-diffusion\Anything-v4.5-pruned-mergedVae.ckpt
Creating model from config: D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Traceback (most recent call last):
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "C:\Users\cplat\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1374, in getresponse
    response.begin()
  File "C:\Users\cplat\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 318, in begin
    version, status, reason = self._read_status()
  File "C:\Users\cplat\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 279, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "C:\Users\cplat\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto
    return self._sock.recv_into(b)
TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\urllib3\util\retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\urllib3\packages\six.py", line 770, in reraise
    raise value
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\urllib3\connectionpool.py", line 451, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\urllib3\connectionpool.py", line 340, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=7860): Read timed out. (read timeout=3)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\launch.py", line 38, in <module>
    main()
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\launch.py", line 34, in main
    start()
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\modules\launch_utils.py", line 334, in start
    webui.webui()
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\webui.py", line 395, in webui
    app, local_url, share_url = shared.demo.launch(
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\gradio\blocks.py", line 1805, in launch
    if _frontend and (not networking.url_ok(self.local_url)) and (not self.share):
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\gradio\networking.py", line 189, in url_ok
    r = requests.head(url, timeout=3, verify=False)
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\requests\api.py", line 104, in head
    return request('head', url, **kwargs)
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "D:\Stable diffusion\stable diffusion\true diffusion\stable-diffusion-webui(Brok)\venv\lib\site-packages\requests\adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=7860): Read timed out. (read timeout=3)
Applying optimization: Doggettx... done.
Textual inversion embeddings loaded(0):
Model loaded in 905.3s (load weights from disk: 72.1s, find config: 0.8s, load config: 6.9s, create model: 15.8s, apply weights to model: 552.3s, apply half(): 196.5s, apply dtype to VAE: 0.2s, load VAE: 0.9s, move model to device: 2.3s, hijack: 0.8s, load textual inversion embeddings: 56.5s).
Press any key to continue . . .

Additional information

No response

coderCK2 commented 1 year ago

I am also getting this error, and have been for quite a while. I end up having to "Press any key to continue..." which closes the console, then I try to relaunch AUTOMATIC1111. It usually works on the third try. Very odd.

EDIT: Using v1.6.0

coderCK2 commented 1 year ago

Okay, after looking into this a bit more, I found a Reddit thread where someone else was having this same problem. They discovered that the issue was stemming from trying to use the web interface from a stale tab they had used for a previous instance of AUTOMATIC1111. After closing my existing tab, the AUTOMATIC1111 startup had no issues and I was able to use it successfully. Solved, I guess?

EDIT: I am still getting the error even if no previous tab is open. Very frustrating.

emotionaldreams commented 2 months ago

i don't know if anyone has fixed since this post. but its an extension causing the issue. drag all of them out of the folder to another. then restart A111. it will load fine. then close it and drag extensions back into extensions folder a few at a time(closing and restarting A1111 each time) it find out which extension causing the issue... at least that was my issue. hope this helps