Closed bDrwx closed 3 years ago
Hi @bDrwx,
I got the same problem with version 3. It seems that this problem is solved in version 4. Could you try with version 4?
I hope to see stable version 4 sooner.
Thank you. I will try to update and report by result.
I found that my problem repeats the error described in #42 But i use pyftpsync directly from the source code:
def export_to_asr():
""" Export data to remote FTP """
local = FsTarget("data/path/out")
remote = FtpTarget("/", FTP_IP, username=FTP_USER, password=FTP_PASS, tls=False)
opts = {"resolve": "skip", "verbose": 1}
s = UploadSynchronizer(local, remote, opts)
s.run()
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
In my case, sometimes the "chunk" in ftp_target.py's _on_read_chunk() will start with "\n", which make the 'item' in _on_read_line() become a empty string, then cause the "MLSD returned unsupported type: None" error. https://imgur.com/biQ9B4V
I can fix that with adding "chunk = chunk.lstrip()" line after "chunk = buffer + chunk" line in _on_read_chunk() method, probably have better way.
pyftpsync version 3.1.0, with pyftpdlib version 1.5.6 as ftp server.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'am running synchronization task by sceduler. Somtime this task start crushing with this error. I fix this problem by delete meta file on remote ftp server. What is the root cause?