#929453 lftp: hangs on getting directory contents at the end of mirror

Package:
lftp
Source:
lftp
Description:
Sophisticated command-line FTP/HTTP/BitTorrent client programs
Submitter:
Nico Golde
Date:
2024-07-26 05:57:07 UTC
Severity:
important
Tags:
#929453#5
Date:
2019-05-23 18:31:49 UTC
From:
To:
Hi Noël,
First thanks for maintaining lftp!

I've got two machines that run the same version of Debian and the same version
(and same configuration)
of lftp and one of them, lftp behaves very weird at the end of mirror command.

This manifests in the following output:

...
Transferring file `foo01'
Transferring file `foo02'
Transferring file `foo03'
New: 11 files, 0 symlinks
421696988 bytes transferred in 47 seconds (8.58 MiB/s)
Retrying mirror...
Getting directory contents (0) [Waiting for response...]

At that point, lftp is just stuck.
The exact mirror command that is executed is "mirror -R -c -v".

I have attached a minimal config for which this problem occurs and hope that
helps. Specifically, the timeout does not seem to kick in and I have no idea
why. There's also nothing obvious in the transfer log that hints to a problem.

I have also attached an strace from slightly before this happens, i.e. when
the files are stat'ed the last time. It seems lftp hangs up in some infinite
select loop without valuing the timeout or noticing that the server has closed
the connection. FWIW, this connection uses sftp.

Hope this helps. This has been bugging me for a while now and I've got no idea
what this is.

Thanks!
Nico

#929453#10
Date:
2019-10-22 14:39:17 UTC
From:
To:
Any idea what is causing this?
#929453#15
Date:
2024-07-26 05:56:17 UTC
From:
To:
tags 929453 + upstream confirmed
forwarded 929453 https://github.com/lavv17/lftp/issues/581
found 929453 4.9.2-2
thanks

Hello Nico,

Am Donnerstag, dem 23.05.2019 um 20:31 +0200 schrieb Nico Golde:
...

sadly this is still a problem and reported upstream
https://github.com/lavv17/lftp/issues/581