ERROR: When duplicating space I get "Temporary failure in name resolution"

#7
by PhoenixStormJr - opened

(IF MY SOLUTION WORKED FOR YOU, PLEASE TELL ME IN A COMMENT!!! DON'T LEAVE ME HANGING PEOPLE!)

It used to work but just.... stopped for some reason?

Here is my space: https://huggingface.co/spaces/PhoenixStormJr/RVC_V2_Public

I've traced the problem to a failure in internet access... Maybe including the files with the program would fix it? I did this for mine. What do you think?

Here is more details from others with the same issue:
https://discuss.huggingface.co/t/space-just-stopped-working-connectionerror/62935/8

Error output:

Traceback (most recent call last):
File "/home/user/.local/lib/python3.10/site-packages/urllib3/connection.py", line 203, in _new_conn
sock = connection.create_connection(
File "/home/user/.local/lib/python3.10/site-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/user/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen
response = self._make_request(
File "/home/user/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 491, in _make_request
raise new_e
File "/home/user/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "/home/user/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1096, in _validate_conn
conn.connect()
File "/home/user/.local/lib/python3.10/site-packages/urllib3/connection.py", line 611, in connect
self.sock = sock = self._new_conn()
File "/home/user/.local/lib/python3.10/site-packages/urllib3/connection.py", line 210, in _new_conn
raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: <urllib3.connection.HTTPSConnection object at 0x7f58aac42890>: Failed to resolve 'huggingface.co' ([Errno -3] Temporary failure in name resolution)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/user/.local/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/home/user/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen
retries = retries.increment(
File "/home/user/.local/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f58aac42890>: Failed to resolve 'huggingface.co' ([Errno -3] Temporary failure in name resolution)"))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/user/app/app.py", line 70, in
download_models()
File "/home/user/app/app.py", line 50, in download_models
response = requests.get('https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt')
File "/home/user/.local/lib/python3.10/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/home/user/.local/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/home/user/.local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home/user/.local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home/user/.local/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f58aac42890>: Failed to resolve 'huggingface.co' ([Errno -3] Temporary failure in name resolution)"))

Runtime error
/connectionpool.py", line 844, in urlopen
retries = retries.increment(
File "/home/user/.local/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f58aac42890>: Failed to resolve 'huggingface.co' ([Errno -3] Temporary failure in name resolution)"))

During handling of the above exception, another exception occurred:

PhoenixStormJr changed discussion title from When duplicating space I get "Temporary failure in name resolution" to ERROR: When duplicating space I get "Temporary failure in name resolution"

Sign up or log in to comment