schism-dev / pyschism

Python interface for handling the SCHISM model.
https://schism-dev.github.io/schism/master/getting-started/pre-processing-with-pyschism/overview.html
Apache License 2.0
24 stars 20 forks source link

Connection error when importing pyschism submodules on a compute node #51

Closed mojy3995 closed 1 year ago

mojy3995 commented 1 year ago

I ran generate_sourcesink_nc.py and it worked perfectly for 15 days simulation, but for a longer time (e.g. a year), I couldn't run it on a compute nodes based on the Jet policy for the memory usage, and I had to submit a job (sbatch). For a full year on Jet, I got connection error when I tried to import pyschism submodules on a compute node, because it doesn't have internet connection.

This part of the error messages indicates that the script was attempting to connect to a network resource, and failed.

"... /python3.9/urllib/request.py", line 1389, in https_open return self.do_open(http.client.HTTPSConnection, req, raise URLError(err) urllib.error.URLError: <urlopen error [Errno -2] Name or service not known> " Jet helpdesk suggested that somehow separate the computing and data gathering parts of our workflow, so that the compute nodes are occupied with tasks that require no additional downloading of anything. However, I have all input files downloaded in my directory and this is not about the data that script needs.

mojy3995 commented 1 year ago

I believe @SorooshMani-NOAA has the same issue #49 .

SorooshMani-NOAA commented 1 year ago

Thanks @mojy3995,

I think I would categorize it into two separate but related issues. The main reason behind both is that pyschism needs internet, and compute nodes on HPCs (as opposed to head nodes) usually don't provide internet access.

mojy3995 commented 1 year ago

@SorooshMani-NOAA, I am not using NWM results. The script that I am using from Linlin, merges precipitation data from sflux with the river discharges. Both river discharge files and sflux were downloaded on my directory. So there is no connection issue for downloading data.

SorooshMani-NOAA commented 1 year ago

I didn't realize that you already have the data. Then the issues in both tickets are probably the same thing.

mojy3995 commented 1 year ago

Thank you, Linlin. It works now.