glamod/glamod-nuim

daily update issue on ICHEC

Opened this issue · 0 comments

I am trying to set up the daily ghcnd update CRON Job on ICHEC-KAY but I get the following error with the python code. I have ran the code locally on my machine and it connects to the FTP server and processes the files, also the JASMIN version is still running fine. I'm not sure if it is an ICHEC issue connecting to the external FTP.
I am running the code form here: /ichec/work/glamod/data/level2/land/r202208/daily_updates/code

(python3) [mrdrought@login2 code]$ python daily_diff_insert_to_cdm_jas_202204.py
Traceback (most recent call last):
File "daily_diff_insert_to_cdm_jas_202204.py", line 654, in
main(diagnostics=args.diagnostics)
File "daily_diff_insert_to_cdm_jas_202204.py", line 156, in main
latest_file = get_latest_ftp_file()
File "daily_diff_insert_to_cdm_jas_202204.py", line 38, in get_latest_ftp_file
ftp = ftplib.FTP(utils.DAILY_FTP_SERVER)
File "/ichec/packages/conda/2/envs/python3/lib/python3.7/ftplib.py", line 117, in init
self.connect(host)
File "/ichec/packages/conda/2/envs/python3/lib/python3.7/ftplib.py", line 152, in connect
source_address=self.source_address)
File "/ichec/packages/conda/2/envs/python3/lib/python3.7/socket.py", line 727, in create_connection
raise err
File "/ichec/packages/conda/2/envs/python3/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable