{"action":"created","issue":{"url":"https://api.github.com/repos/lavv17/lftp/issues/130","labels_url":"https://api.github.com/repos/lavv17/lftp/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/lavv17/lftp/issues/130/comments","events_url":"https://api.github.com/repos/lavv17/lftp/issues/130/events","html_url":"https://github.com/lavv17/lftp/issues/130","id":58601192,"number":130,"title":"lftp hangs after dowloading one file during a mirror","user":{"login":"L-B","id":6763277,"avatar_url":"https://avatars.githubusercontent.com/u/6763277?v=3","gravatar_id":"","url":"https://api.github.com/users/L-B","html_url":"https://github.com/L-B","followers_url":"https://api.github.com/users/L-B/followers","following_url":"https://api.github.com/users/L-B/following{/other_user}","gists_url":"https://api.github.com/users/L-B/gists{/gist_id}","starred_url":"https://api.github.com/users/L-B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/L-B/subscriptions","organizations_url":"https://api.github.com/users/L-B/orgs","repos_url":"https://api.github.com/users/L-B/repos","events_url":"https://api.github.com/users/L-B/events{/privacy}","received_events_url":"https://api.github.com/users/L-B/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-23T15:28:26Z","updated_at":"2015-09-08T11:52:00Z","closed_at":null,"body":"During a mirror, lftp transfers the first file, then hangs and doesn't exit. It's not clear why, there is no error the same directory hierarchy can be replicated using eg psftp.\r\n\r\nThe command run is:\r\n```\r\nlftp -e \"\r\n  set sftp:connect-program \\\"ssh -a -x -i key\\\";\r\n  mirror -vvv --no-perms --log=/tmp/log /remdir /localdir;\r\n  exit\" \\\r\n  -u login, sftp://remhost\r\n```\r\n\r\nThe logs contain the following:\r\n```\r\nMirroring directory `dir1'\r\nFinished mirror `dir1'\r\nMirroring directory `dir2'\r\nFinished mirror `dir2'\r\nMirroring directory `dir3'\r\nFinished mirror `dir3'\r\nMirroring directory `dir4'\r\nTransferring file `file1'\r\nFinished transfer `file1' (14.6 KiB/s)\r\nFinished mirror `dir4'\r\nMirroring directory `dir5'\r\n```\r\n\r\nI forced a core of the running process to run a backtrace on it:\r\n```\r\n(gdb) bt\r\n#0  0x00007f83fd041433 in __select_nocancel () from /lib64/libc.so.6\r\n#1  0x0000000000468735 in PollVec::Block (this=0x7528c0) at PollVec.cc:81\r\n#2  0x0000000000408794 in SMTask::Block () at SMTask.h:96\r\n#3  0x0000000000410ce9 in Job::WaitDone (this=0x19be5c0) at Job.cc:552\r\n#4  0x0000000000408263 in main (argc=8, argv=0x7fffcccb1ae8) at lftp.cc:589\r\n```\r\n\r\nAlso of note: the remote server is a funky one, as soon as a file has been accessed, it's removed. This is by design.\r\nThat means that any try to access it after it's been transferred will fail, "},"comment":{"url":"https://api.github.com/repos/lavv17/lftp/issues/comments/138530594","html_url":"https://github.com/lavv17/lftp/issues/130#issuecomment-138530594","issue_url":"https://api.github.com/repos/lavv17/lftp/issues/130","id":138530594,"user":{"login":"uhliarik","id":6824494,"avatar_url":"https://avatars.githubusercontent.com/u/6824494?v=3","gravatar_id":"","url":"https://api.github.com/users/uhliarik","html_url":"https://github.com/uhliarik","followers_url":"https://api.github.com/users/uhliarik/followers","following_url":"https://api.github.com/users/uhliarik/following{/other_user}","gists_url":"https://api.github.com/users/uhliarik/gists{/gist_id}","starred_url":"https://api.github.com/users/uhliarik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uhliarik/subscriptions","organizations_url":"https://api.github.com/users/uhliarik/orgs","repos_url":"https://api.github.com/users/uhliarik/repos","events_url":"https://api.github.com/users/uhliarik/events{/privacy}","received_events_url":"https://api.github.com/users/uhliarik/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T11:52:00Z","updated_at":"2015-09-08T11:52:00Z","body":"Any update? It seems, like lftp stucks at select function (or poll in previous version). It is just waiting for input from remote server, but server is not sending anything."}}