Hi to all


recently I have experienced this error when trying to download era5-land data:

"WARNING Recovering from connection error [HTTPSConnectionPool(host='cds.climate.copernicus.eu', port=443): Max retries exceeded with url: /api/v2/resources/reanalysis-era5-land (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f29ca46f310>: Failed to establish a new connection: [Errno -2] Name or service not known'))], attemps 0 of 500"


Despite having tried the 2.1 solution described in the Common Error Messages for CDS Requests, I am still no able to figure out how to solve the problem.


Here is my script:

SOURCE='reanalysis-era5-land'

VARIABLE='total_precipitation'

OUTPUT='my_output.nc"

MONTH=01

YEAR=2000

days_to_download=[

    '01', '02', '03',

    '04', '05', '06',

    '07', '08', '09',

    '10', '11', '12',

    '13', '14', '15',

    '16', '17', '18',

    '19', '20', '21',

    '22', '23', '24',

    '25', '26', '27',

    '28', '29','30',

    '31'

    ]

hours_to_download=[

    '00:00', '01:00', '02:00',

    '03:00', '04:00', '05:00',

    '06:00', '07:00', '08:00',

    '09:00', '10:00', '11:00',

    '12:00', '13:00', '14:00',

    '15:00', '16:00', '17:00',

    '18:00', '19:00', '20:00',

    '21:00', '22:00', 

    '23:00',

    ]


c = cdsapi.Client(timeout=600,quiet=False,debug=True)            
 print( "# DOWNLOADING",MONTH,'...', end='' )
        
        
c.retrieve(SOURCE,
                       {'format': 'netcdf',
                       'variable': VARIABLE,
                       'year': str(YEAR),
                       'month': str(MONTH),
                       'day': days_to_download,
                       'time': hours_to_download,
                       }, 
                       OUTPUT)    


Here is my log:


2022-08-17 14:46:48,362 DEBUG CDSAPI {'url': 'https://cds.climate.copernicus.eu/api/v2', 'key': '105628:2cfad92f-2fef-4499-b02a-fee7b4b46542', 'quiet': False, 'verify': True, 'timeout': 600, 'progress': True, 'sleep_max': 120, 'retry_max': 500, 'full_stack': False, 'delete': True, 'metadata': None, 'forget': False}
2022-08-17 14:46:48,369 DEBUG Starting new HTTPS connection (1): cds.climate.copernicus.eu:443
2022-08-17 14:46:48,377 INFO Sending request to https://cds.climate.copernicus.eu/api/v2/resources/reanalysis-era5-land
2022-08-17 14:46:48,378 DEBUG POST https://cds.climate.copernicus.eu/api/v2/resources/reanalysis-era5-land {"format": "netcdf", "variable": "surface_runoff", "year": "2000", "month": "01", "day": ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"], "time": ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00"]}
2022-08-17 14:46:48,383 DEBUG Starting new HTTPS connection (2): cds.climate.copernicus.eu:443
2022-08-17 14:46:48,384 WARNING Recovering from connection error [HTTPSConnectionPool(host='cds.climate.copernicus.eu', port=443): Max retries exceeded with url: /api/v2/resources/reanalysis-era5-land (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f29ca46f310>: Failed to establish a new connection: [Errno -2] Name or service not known'))], attemps 0 of 500


I know that this issue is related to this topic:  CDS in testing mode from ECMWF new Data Centre in Bologna - period at risk until further notice. However, my understanding is that the testing mode has now been completed and that there shouldn't be the error cause.


Some extra information:

  • I am running this script on a linux server using bash with only one request at the time.




has anyone come up with a solution for this type of error? (smile)


Thank you!,

Edgar