several weeks ago my Spaces “SpeechDepression” and many other spaces ran well. but reccently a number of Spaces stop working. when rebuilding, it returns “Runtime Error”. The details are below:
firstly the spaces often stop in this status:
===== Build Queued at 2024-03-21 01:46:42 / Commit SHA: 1d59a73 =====
--> FROM docker.io/library/python:3.10@sha256:f9307a98b4ca854bfeb342f7a9c8402557e869a190c4d78ae57157ae82ce8c0d
DONE 0.0s
the spaces often stop in this status as well:
===== Application Startup at 2024-03-21 01:49:31 =====
"spaces" in pod "r-liusuthu-speechdepression-ihdmhxq2-d2c68-ksqx6" is waiting to start: ContainerCreating
finally it returns runtime error!
Runtime error
: 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/speech.py", line 28, in <module>
client = Client("Liusuthu/TextDepression")
File "/usr/local/lib/python3.10/site-packages/gradio_client/client.py", line 120, in __init__
_src = self._space_name_to_src(src)
File "/usr/local/lib/python3.10/site-packages/gradio_client/client.py", line 726, in _space_name_to_src
return huggingface_hub.space_info(space, token=self.hf_token).host # type: ignore
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2345, in space_info
r = get_session().get(path, headers=headers, timeout=timeout, params=params)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 67, in send
return super().send(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: (MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /api/spaces/Liusuthu/TextDepression (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f5c0ec6f850>: Failed to resolve \'huggingface.co\' ([Errno -3] Temporary failure in name resolution)"))'), '(Request ID: 81782cf9-9899-45c4-884a-733ac0618b73)')
by the way im from China Mainland, idk whether it’s because the huge firewall of our country. But everything really ran well several weeks ago.