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

ESDC - Downloading of MODIS fails #25

Open
AliceBalfanz opened this issue Apr 5, 2023 · 0 comments
Open

ESDC - Downloading of MODIS fails #25

AliceBalfanz opened this issue Apr 5, 2023 · 0 comments
Assignees

Comments

@AliceBalfanz
Copy link
Member

Following the recipe for ESDC I encountered an error when trying to execute the download script for MODIS:

Traceback (most recent call last):
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection
    raise err
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/urllib3/connection.py", line 363, in connect
    self.sock = conn = self._new_conn()
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fd4c180a940>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='e4ftl01.cr.usgs.gov', port=443): Max retries exceeded with url: /MOTA/MCD43C4.061/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fd4c180a940>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/alicebalfanz/cube-gen/ESDC/inputs-collect/download-MCD43C4.py", line 54, in <module>
    days = get_dates_url_paths('https://e4ftl01.cr.usgs.gov/MOTA/MCD43C4.061/')
  File "/home/alicebalfanz/cube-gen/ESDC/inputs-collect/download-MCD43C4.py", line 24, in get_dates_url_paths
    response = requests.get(url, params=params)
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/home/conda/deepesdl/envs/cube-gen/lib/python3.9/site-packages/requests/adapters.py", line 565, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='e4ftl01.cr.usgs.gov', port=443): Max retries exceeded with url: /MOTA/MCD43C4.061/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fd4c180a940>: Failed to establish a new connection: [Errno 111] Connection refused'))
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

2 participants