-
Notifications
You must be signed in to change notification settings - Fork 22
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
Implicit FTPS support #1121
Comments
try active keyword in credentials.conf ? |
active/passive doesn't make a difference in this case :( |
I was a little bit wrong with how I was using FTPS. I was using a URL starting with (I think But that still doesn't work. It reveals the actual error though:
|
|
The password doesn't have any special characters that would require encoding, I even tried changing the password to be 100% sure. Yes, they do still have an FTP server there and that is what we're connecting to on port 21 and getting the 530 error. If I set port 990 in the URL and do not specify sr3 does not support changing the port for explicit FTPS - in the FTP_TLS section, self.port is not used at all: sarracenia/sarracenia/transfer/ftp.py Lines 176 to 195 in 6b24f67
Even trying to specify the port with FTP_TLS outside of sr3, it still hangs/times out:
It does work with the modified code in the PR #1122. That changes the socket used by FTP_TLS to an instance of an |
This is implemented in #1122, but has to be configured manually. Peter mentioned on the PR that it would be nice to have the code automatically try to detect and remember which it needs to use (implicit vs explicit) so I'll leave this issue open. |
ESA SMOS recently stopped allowing insecure FTP access to their data and now only allows FTPS.
https://smos-diss.eo.esa.int/oads/access/
The existing FTPS code doesn't work and gives this error:
FileZilla can connect:
I tried connecting using ftplib "by hand" and get various problems (
ftplib.error_perm: 530 Please login with USER and PASS.
in most cases).The problem seems to be that ftplib always tries to use port 21. The ESA server does respond, but does not allow us to login (I get the same error with FileZilla when connecting to port 21).
I also tried specifying port 990 like this:
But it just hangs.
This code works great: https://stackoverflow.com/questions/12164470/python-ftp-implicit-tls-connection-issue
So I'll implement this in the FTP transfer class.
The text was updated successfully, but these errors were encountered: