lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.11k stars 162 forks source link

Mirror -R stuck on "Sending Data" at 99% #609

Open winklevos opened 4 years ago

winklevos commented 4 years ago

Seeing an issue with the below command where files will upload to the target SFTP but the command will be stuck on file.log' at 13608 (98%) [Sending data] until it times out after 5 minutes and the restarts. This will continue indefinitely is seems. Once you terminate the command the file is available in the remote SFTP. Some files work and some don't, mainly the bigger ones / more updated log files are failing.

Is there something I am missing or is this some bug? It could be caused by source file size being different than the target or amount send as the file it updated during the process of upload?

Ubuntu 16.04LTS lftp --version LFTP | Version 4.6.3a

sudo lftp -d -u xxxx,xxxx -e "mirror -c -e -R /xxx/xxx/log/ /xxx/logs; quit;" sftp://xxx@xxx:22

---- path on wire is `/dir/logs/file.log'
---> sending a packet, length=33, type=13(REMOVE), id=14
<--- got a packet, length=24, type=101(STATUS), id=14
---- status code=0(OK), message=OK
---- path on wire is `/dir/logs/file.log'
---> sending a packet, length=46, type=3(OPEN), id=15
<--- got a packet, length=25, type=102(HANDLE), id=15
---- got file handle xxx (16)
---> sending a packet, length=32805, type=6(WRITE), id=16
---> sending a packet, length=32805, type=6(WRITE), id=17
---> sending a packet, length=32805, type=6(WRITE), id=18
---> sending a packet, length=32805, type=6(WRITE), id=19
---> sending a packet, length=32805, type=6(WRITE), id=20
---> sending a packet, length=32805, type=6(WRITE), id=21
---> sending a packet, length=32805, type=6(WRITE), id=22
<--- got a packet, length=24, type=101(STATUS), id=16
---- status code=0(OK), message=OK
<--- got a packet, length=24, type=101(STATUS), id=17
---- status code=0(OK), message=OK
---> sending a packet, length=2726, type=6(WRITE), id=23
<--- got a packet, length=24, type=101(STATUS), id=18
---- status code=0(OK), message=OK
<--- got a packet, length=24, type=101(STATUS), id=19
---- status code=0(OK), message=OK
<--- got a packet, length=24, type=101(STATUS), id=20
---- status code=0(OK), message=OK
<--- got a packet, length=24, type=101(STATUS), id=21
---- status code=0(OK), message=OK
<--- got a packet, length=24, type=101(STATUS), id=22
---- status code=0(OK), message=OK
<--- got a packet, length=24, type=101(STATUS), id=23
---- status code=0(OK), message=OK
`file.log' at 232065 (99%) [Sending data]