Read time out #523

Open
dcroid opened this Issue Feb 2, 2017 · 0 comments

Comments

Projects
None yet
2 participants

dcroid commented Feb 2, 2017 edited by yadayada

# acd_cli -dd sync
17-02-02 05:17:50.706 [INFO] [acd_cli] - Plugin leaf classes: TestPlugin
17-02-02 05:17:50.707 [INFO] [acd_cli] - TestPlugin attached.
17-02-02 05:17:50.707 [INFO] [acdcli.api.client] - Initializing ACD with path "/root/.cache/acd_cli".
17-02-02 05:17:50.707 [INFO] [acdcli.api.oauth] - AppspotOAuthHandler initialized
17-02-02 05:17:50.709 [INFO] [acdcli.cache.schema] - DB schema version is 2.
17-02-02 05:17:50.919 [DEBUG] [acdcli.cache.db] - Set busy_timeout to 30000. Result: 30000.
17-02-02 05:17:50.920 [DEBUG] [acdcli.cache.db] - Set journal_mode to wal. Result: wal.
17-02-02 05:17:50.920 [DEBUG] [acd_cli] - Namespace(acd_client=<acdcli.api.client.ACDClient object at 0x7f3b48aac470>, action='sync', cache=<acdcli.cache.db.NodeCache object at 0x7f3b48ab5e48>, check=0, color=2, debug=2, full=False, func=<function sync_action at 0x7f3b48ceb400>, log=True, no_wait=False, utf=False, verbose=None)
Getting changes17-02-02 05:17:50.921 [INFO] [acdcli.api.metadata] - Getting changes with checkpoint "...".
17-02-02 05:17:50.921 [DEBUG] [acdcli.api.backoff_req] - Retry 0, waiting -0.213193s
17-02-02 05:17:50.921 [INFO] [acdcli.api.backoff_req] - POST "https://cdws.us-east-1.amazonaws.com/drive/v1/changes"
17-02-02 05:17:50.921 [DEBUG] [acdcli.api.backoff_req] - ..
17-02-02 05:17:50.925 [INFO] [requests.packages.urllib3.connectionpool] - Starting new HTTPS connection (1): cdws.us-east-1.amazonaws.com
send: b'POST /drive/v1/changes HTTP/1.1\r\nHost: cdws.us-east-1.amazonaws.com\r\nUser-Agent: acdcli.api/0.8.9 python-requests/2.9.1\r\nAuthorization: ..
reply: 'HTTP/1.1 200 OK\r\n'
header: Server header: Date header: Content-Type header: Transfer-Encoding header: Connection header: x-amzn-RequestId header: Content-Encoding header: Cache-Control header: Pragma header: Vary 17-02-02 05:18:14.620 [DEBUG] [requests.packages.urllib3.connectionpool] - "POST /drive/v1/changes HTTP/1.1" 200 None
17-02-02 05:18:14.621 [DEBUG] [acdcli.api.backoff_req] - x-amzn-RequestId: ...
17-02-02 05:20:14.400 [INFO] [acdcli.api.metadata] - -1 page(s) in changes.
17-02-02 05:20:14.401 [WARNING] [acdcli.api.metadata] - End of change request not reached.
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/response.py", line 226, in _error_catcher
    yield
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/response.py", line 486, in read_chunked
    self._update_chunk_length()
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/response.py", line 432, in _update_chunk_length
    line = self._fp.fp.readline()
  File "/usr/lib64/python3.4/socket.py", line 378, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib64/python3.4/ssl.py", line 748, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib64/python3.4/ssl.py", line 620, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/requests/models.py", line 660, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/response.py", line 340, in stream
    for line in self.read_chunked(amt, decode_content=decode_content):
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/response.py", line 514, in read_chunked
    self._original_response.close()
  File "/usr/lib64/python3.4/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/response.py", line 231, in _error_catcher
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='cdws.us-east-1.amazonaws.com', port=443): Read timed out.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/acd_cli", line 9, in <module>
    load_entry_point('acdcli==0.3.1', 'console_scripts', 'acd_cli')()
  File "/usr/bin/acd_cli.py", line 1524, in main
    sys.exit(args.func(args))
  File "/usr/bin/acd_cli.py", line 663, in sync_action
    return sync_node_list(full=args.full)
  File "/usr/bin/acd_cli.py", line 121, in sync_node_list
    silent=False):
  File "/usr/lib/python3.4/site-packages/acdcli/api/metadata.py", line 55, in get_changes
    for line in r.iter_lines(chunk_size=10 * 1024 ** 2, decode_unicode=False):
  File "/usr/lib/python3.4/site-packages/requests/models.py", line 702, in iter_lines
    for chunk in self.iter_content(chunk_size=chunk_size, decode_unicode=decode_unicode):
  File "/usr/lib/python3.4/site-packages/requests/models.py", line 667, in generate
    raise ConnectionError(e)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cdws.us-east-1.amazonaws.com', port=443): Read timed out.

yadayada added the API label Feb 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment