Skip to content
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

Question about ConnectionError #360

Open
aoyang-hd opened this issue Aug 17, 2023 · 0 comments
Open

Question about ConnectionError #360

aoyang-hd opened this issue Aug 17, 2023 · 0 comments

Comments

@aoyang-hd
Copy link

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/cv/.conda/envs/stable_diffusion2/lib/python3.10/site-packages/urllib3/connectionpool.py:70 │
│ 3 in urlopen │
│ │
│ 700 │ │ │ │ self._prepare_proxy(conn) │
│ 701 │ │ │ │
│ 702 │ │ │ # Make the request on the httplib connection object. │
│ ❱ 703 │ │ │ httplib_response = self._make_request( │
│ 704 │ │ │ │ conn, │
│ 705 │ │ │ │ method, │
│ 706 │ │ │ │ url, │
│ │
│ /home/cv/.conda/envs/stable_diffusion2/lib/python3.10/site-packages/urllib3/connectionpool.py:38 │
│ 6 in _make_request │
│ │
│ 383 │ │ │
│ 384 │ │ # Trigger any extra validation we need to do. │
│ 385 │ │ try: │
│ ❱ 386 │ │ │ self._validate_conn(conn) │
│ 387 │ │ except (SocketTimeout, BaseSSLError) as e: │
│ 388 │ │ │ # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout. │
│ 389 │ │ │ self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) │
│ │
│ /home/cv/.conda/envs/stable_diffusion2/lib/python3.10/site-packages/urllib3/connectionpool.py:10 │
│ 42 in validate_conn │
│ │
│ 1039 │ │ │
│ 1040 │ │ # Force connect early to allow us to validate the connection. │
│ 1041 │ │ if not getattr(conn, "sock", None): # AppEngine might not have .sock
│ ❱ 1042 │ │ │ conn.connect() │
│ 1043 │ │ │
│ 1044 │ │ if not conn.is_verified: │
│ 1045 │ │ │ warnings.warn( │
│ │
│ /home/cv/.conda/envs/stable_diffusion2/lib/python3.10/site-packages/urllib3/connection.py:414 in │
│ connect │
│ │
│ 411 │ │ ): │
│ 412 │ │ │ context.load_default_certs() │
│ 413 │ │ │
│ ❱ 414 │ │ self.sock = ssl_wrap_socket( │
│ 415 │ │ │ sock=conn, │
│ 416 │ │ │ keyfile=self.key_file, │
│ 417 │ │ │ certfile=self.cert_file, │
│ │
│ /home/cv/.conda/envs/stable_diffusion2/lib/python3.10/site-packages/urllib3/util/ssl
.py:449 in │
│ ssl_wrap_socket │
│ │
│ 446 │ │ ) │
│ 447 │ │
│ 448 │ if send_sni: │
│ ❱ 449 │ │ ssl_sock = ssl_wrap_socket_impl( │
│ 450 │ │ │ sock, context, tls_in_tls, server_hostname=server_hostname │
│ 451 │ │ ) │
│ 452 │ else: │
│ │
│ /home/cv/.conda/envs/stable_diffusion2/lib/python3.10/site-packages/urllib3/util/ssl
.py:493 in │
│ _ssl_wrap_socket_impl │
│ │
│ 490 │ │ return SSLTransport(sock, ssl_context, server_hostname) │
│ 491 │ │
│ 492 │ if server_hostname: │
│ ❱ 493 │ │ return ssl_context.wrap_socket(sock, server_hostname=server_hostname) │
│ 494 │ else: │
│ 495 │ │ return ssl_context.wrap_socket(sock) │
│ 496 │
│ │
│ /home/cv/.conda/envs/stable_diffusion2/lib/python3.10/ssl.py:513 in wrap_socket │
│ │
│ 510 │ │ │ │ │ server_hostname=None, session=None): │
│ 511 │ │ # SSLSocket class handles server_hostname encoding before it calls │
│ 512 │ │ # ctx._wrap_socket() │
│ ❱ 513 │ │ return self.sslsocket_class._create( │
│ 514 │ │ │ sock=sock, │
│ 515 │ │ │ server_side=server_side, │
│ 516 │ │ │ do_handshake_on_connect=do_handshake_on_connect, │
│ │
│ /home/cv/.conda/envs/stable_diffusion2/lib/python3.10/ssl.py:1071 in _create │
│ │
│ 1068 │ │ │ │ │ if timeout == 0.0: │
│ 1069 │ │ │ │ │ │ # non-blocking │
│ 1070 │ │ │ │ │ │ raise ValueError("do_handshake_on_connect should not be specifie │
│ ❱ 1071 │ │ │ │ │ self.do_handshake() │
│ 1072 │ │ │ except (OSError, ValueError): │
│ 1073 │ │ │ │ self.close() │
│ 1074 │ │ │ │ raise │
│ │
│ /home/cv/.conda/envs/stable_diffusion2/lib/python3.10/ssl.py:1342 in do_handshake │
│ │
│ 1339 │ │ try: │
│ 1340 │ │ │ if timeout == 0.0 and block: │
│ 1341 │ │ │ │ self.settimeout(None) │
│ ❱ 1342 │ │ │ self._sslobj.do_handshake() │
│ 1343 │ │ finally: │
│ 1344 │ │ │ self.settimeout(timeout) │
│ 1345 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ConnectionResetError: [Errno 104] Connection reset by peer

Is there any way to directly load the locally downloaded weight file, I downloaded the weight from 'https://huggingface.co/google/t5-v1_1-base'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant