MDKPredator/degoo_drive

Failed to establish a new connection & Max retries exceeded with url

HaShLo opened this issue · 4 comments

Hi MDKPredator i'm again,

download the newer version of repository to fix the "Signature expired" has worked. It refreshes now successfully the Token, but at uploading large files i have the next issue. Can you please look? Thanks :)

`Token expired. Refreshing
Token expired. Refreshing ] 8589877248/108805317157 - 06:02:48
Exception in thread Thread-1: ] 22709927936/108805317157 - 05:07:37
Traceback (most recent call last):
File "/home/hashlo/.local/lib/python3.9/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/home/hashlo/.local/lib/python3.9/site-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.9/socket.py", line 954, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hashlo/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/home/hashlo/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/home/hashlo/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/home/hashlo/.local/lib/python3.9/site-packages/urllib3/connection.py", line 353, in connect
conn = self._new_conn()
File "/home/hashlo/.local/lib/python3.9/site-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f264efc9d00>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/hashlo/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/home/hashlo/.local/lib/python3.9/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='production-appsync.degoo.com', port=443): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f264efc9d00>: Failed to establish a new connection: [Errno -2] Name or service not known'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/home/hashlo/Degoo/fuse_degoo.py", line 689, in refresh_degoo_content
self.load_degoo_content()
File "/home/hashlo/Degoo/fuse_degoo.py", line 696, in load_degoo_content
degoo_tree_content = degoo.tree_cache(mode=self._mode)
File "/home/hashlo/Degoo/degoo/init.py", line 2023, in tree_cache
tree(dir_id, show_times, _done, mode=mode)
File "/home/hashlo/Degoo/degoo/init.py", line 1979, in tree
kids = get_children(dir_id)
File "/home/hashlo/Degoo/degoo/init.py", line 1445, in get_children
CACHE_CONTENTS[dir_id] = api.getFileChildren3(dir_id)
File "/home/hashlo/Degoo/degoo/init.py", line 753, in getFileChildren3
response = requests.post(URL_API, headers=header, data=json.dumps(request))
File "/usr/lib/python3/dist-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='production-appsync.degoo.com', port=443): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f264efc9d00>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Token expired. Refreshing########] 108805317157/108805317157 - 00:00:00

`

The problem is here: Name or service not known

You seem to have no connection, or for some reason, you are not reaching degoo

Ok, that means that for some reason my internet connection was interrupted or something, that's why it happened? I don't think degoo is normally unavailable. It's probably because my internet connection was interrupted or conceivably my router is responsible because the transfer takes more than 6 hours and the internal IP assignment interval on the intranet is set to 6 hours I think. During the daily work you do not notice this new assignment from the router because you do not have a permanent connection to a service. But in this case it notices it. That's probably the reason ^^I'll see.

The machine always gets the same IP but the assignment happens anyway and that's probably where the connection breaks down.

In any case, if the files are so large that it takes 6 hours to upload, I recommend you to do it directly on the web interface, because sometimes, even if the upload finishes without interruptions, it does not always work as I mention here