nanograv / PINT

PINT is not TEMPO3 -- Software for high-precision pulsar timing
Other
120 stars 101 forks source link

ephemeris_connection CI test fails #1423

Closed abhisrkckl closed 1 year ago

abhisrkckl commented 2 years ago

It complains about an expired certificate. @dlakaplan @aarchiba

Here is the traceback.

ephemeris_connection run-test: commands[0] | python check_ephemeris_connection.py Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/urllib/request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 1037, in _send_output self.send(msg) File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 975, in send self.connect() File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/http/client.py", line 1454, in connect self.sock = self._context.wrap_socket(self.sock, File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/ssl.py", line 1071, in _create self.do_handshake() File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/runner/work/PINT/PINT/check_ephemeris_connection.py", line 5, in urllib.request.urlopen("https://data.nanograv.org/static/data/ephem/de405.bsp").read() File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/urllib/request.py", line 216, in urlopen return opener.open(url, data, timeout) File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/urllib/request.py", line 519, in open response = self._open(req, data) File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/urllib/request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/urllib/request.py", line 496, in _call_chain result = func(*args) File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/urllib/request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/urllib/request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)> ERROR: InvocationError for command /home/runner/work/PINT/PINT/.tox/ephemeris_connection/bin/python check_ephemeris_connection.py (exited with code 1) ___ summary ____ ERROR: ephemeris_connection: commands failed

paulray commented 2 years ago

The issue seems to be with data.nanograv.org so probably @JPGlaser is the one to figure it out

abhisrkckl commented 2 years ago

Opening the link (https://data.nanograv.org/static/data/ephem/de405.bsp) in Chrome gives a NET::ERR_CERT_DATE_INVALID message. Seems to be an expired https certificate on that domain.

dlakaplan commented 2 years ago

@abhisrkckl : I think it's fixed. Can you restart CI?

abhisrkckl commented 1 year ago

This issue is happening again. I am getting the following error in the CI machine.

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)>

I am getting "NET::ERR_CERT_DATE_INVALID" when I open the URL (https://data.nanograv.org/static/data/ephem/de405.bsp) in a browser.