Skip to content
Advertisement

Error after FTPS transfer finishes with Python ftplib

I’m trying to upload file into FTPS server (Wing FTP Server / Cerberus FTP Server 8) with following script.

JavaScript

But I keep getting this error.

JavaScript

This is FTPS server log.

JavaScript

Can anyone tell me what is wrong?!!

PS: I don’t know it matters or not but i can easily download from this FTPS server and only cant upload into it.

Thanks in advance


I tried with FileZilla as “Martin Prikryl” suggested and now I have following error.

JavaScript

This is FileZilla server Log.

JavaScript

Advertisement

Answer

It’s probably some firewall/NAT/proxy on the way between you and the server that interferes with the transfer connection.

As the problem seems to happen during teardown of the TLS/SSL connection, after an actual transfer finishes, some clients may simply choose to ignore the error (or they do not even notice it).


Related question with some workarounds:
ftplib storbinary with FTPS is hanging/never completing

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement