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

logon refused from my laptop #92

Closed
wu841227 opened this issue May 8, 2023 · 3 comments
Closed

logon refused from my laptop #92

wu841227 opened this issue May 8, 2023 · 3 comments

Comments

@wu841227
Copy link

wu841227 commented May 8, 2023

Hello,

I am trying to logon to ESGF with pyclient from my macOS with Python 3.10.10.
However, I got the error of "connection refused" when I try the example logon code with either openID or username and password.
The error message is as following:

File "/Users/lwu/mambaforge/envs/esmvaltool/lib/python3.10/site-packages/pyesgf/logon.py", line 184, in logon
creds = c.logon(username, password,
File "/Users/lwu/mambaforge/envs/esmvaltool/lib/python3.10/site-packages/myproxy/client/init.py", line 1453, in logon
self.getTrustRoots(writeToCACertDir=True,
File "/Users/lwu/mambaforge/envs/esmvaltool/lib/python3.10/site-packages/myproxy/client/init.py", line 1609, in getTrustRoots
conn.connect((self.hostname, self.port))
File "/Users/lwu/mambaforge/envs/esmvaltool/lib/python3.10/site-packages/OpenSSL/SSL.py", line 2105, in connect
return self._socket.connect(addr)
ConnectionRefusedError: [Errno 61] Connection refused

@bouweandela
Copy link
Collaborator

It seems likely that there is an issue with connecting from your laptop to your OpenID provider. This issue may be unrelated to the esgf-pyclient software package.

You could have a look at the ESGF user guide on logging in and their FAQ. If you still encounter problems, I would recommend asking for help on the ESGF users mailing list.

@wu841227
Copy link
Author

wu841227 commented May 8, 2023

Hello bouweandela,

I don't think the problem is due to the connection between my laptop and OpenID provider. Because I also tried wget option to download data from my laptop. For wget, I also need to provide OpenID and password and this works normally.

I suspect the error is due to the fact that OpenSSL service is NOT available from ESGF.
Because when I checked the connection with nmap command, I got following results:

Starting Nmap 7.93 ( https://nmap.org ) at 2023-05-08 15:13 CEST
Nmap scan report for esgf-node.llnl.gov (198.128.245.159)
Host is up (0.0066s latency).
Not shown: 990 closed tcp ports (conn-refused)
PORT STATE SERVICE
21/tcp filtered ftp
22/tcp filtered ssh
53/tcp filtered domain
80/tcp open http
443/tcp open https
8080/tcp filtered http-proxy
8443/tcp filtered https-alt
20000/tcp filtered dnp
20005/tcp filtered btx
20031/tcp filtered unknown

@valeriupredoi
Copy link
Collaborator

if this is still relevant, please do re-open, but I also suggest asking the ESGF as @bouweandela recommended; enabling OpenSSL types of connection this is not something we can do, it all depends how ESGF have configured their access 🍺

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

3 participants