lftp is hanging when there is a file transfer. Files get downloaded, then It just hangs after http connection close.There are no errors in the log with debug too. The lftp process goes into infinite sleep.
currently using lftp 4.8.4 version. Below is the command used.
/usr/local/bin/lftp -d -c
set dns:order inet;
set hftp:use-head 0;
set cmd:move-background false;
set net:timeout 30s;
set net:max-retries 20;
set net:reconnect-interval-base 5;
set xfer:disk-full-fatal true;
set ssl:ca-file <>.pem; set ssl:key-file <>-key.pem;
set ssl:cert-file <>.pem;
mirror --no-empty-dirs --loop --only-missing -v -v -v -v -I .rpm -X "/headers/" -X "/repodata/" -X ".src.rpm" -X "/SRPMS/" -X "-debuginfo-.rpm" -X "/debug/" /local/mnt/workspace
Please help with this issue.
below is the strace output:
lftp is hanging when there is a file transfer. Files get downloaded, then It just hangs after http connection close.There are no errors in the log with debug too. The lftp process goes into infinite sleep. currently using lftp 4.8.4 version. Below is the command used. /usr/local/bin/lftp -d -c set dns:order inet; set hftp:use-head 0; set cmd:move-background false; set net:timeout 30s; set net:max-retries 20; set net:reconnect-interval-base 5; set xfer:disk-full-fatal true; set ssl:ca-file <>.pem; set ssl:key-file <>-key.pem; set ssl:cert-file <>.pem; mirror --no-empty-dirs --loop --only-missing -v -v -v -v -I .rpm -X "/headers/" -X "/repodata/" -X ".src.rpm" -X "/SRPMS/" -X "-debuginfo-.rpm" -X "/debug/" /local/mnt/workspace
Please help with this issue. below is the strace output:
write(4, "GET /pub/linux/epel/7/x86_64/ HT"..., 173) = 173 select(5, [4], [], NULL, {0, 16295}) = 0 (Timeout) select(5, [4], [], NULL, {1, 88550}) = 1 (in [4], left {1, 34768}) read(4, "HTTP/1.1 200 OK\r\nVia: WebProxy\r\n"..., 65536) = 1367 write(2, "<--- HTTP/1.1 200 OK\n", 21) = 21 read(4, 0x24ce447, 65536) = -1 EAGAIN (Resource temporarily unavailable) write(2, "<--- Via: WebProxy\n", 19) = 19 write(2, "<--- Via: 10.45.109.134\n", 24) = 24 write(2, "<--- Date: Fri, 27 Dec 2019 07:0"..., 41) = 41 write(2, "<--- Server: Apache/2.4.6 (abc"..., 35) = 35 write(2, "<--- Connection: Keep-Alive\n", 28) = 28 write(2, "<--- Content-Type: text/html;cha"..., 48) = 48 write(2, "<--- Content-Length: 1155\n", 26) = 26 write(2, "<--- \n", 6) = 6 write(2, "---- Receiving body...\n", 23) = 23 write(2, "---- Received all\n", 18) = 18 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 write(2, "---- Closing HTTP connection\n", 29) = 29 close(4) = 0 select(0, [], [], NULL, {1, 30729}) = 0 (Timeout) select(0, [], [], NULL, {0, 209284}) = 0 (Timeout) select(0, [], [], NULL, {16, 392806}) = 0 (Timeout) select(0, [], [], NULL, {0, 97777}) = 0 (Timeout) select(0, [], [], NULL, {0, 147969}) = 0 (Timeout) select(0, [], [], NULL, {0, 152307}) = 0 (Timeout) select(0, [], [], NULL, {0, 161573}) = 0 (Timeout) select(0, [], [], NULL, {0, 157225}) = 0 (Timeout) select(0, [], [], NULL, {0, 142958}) = 0 (Timeout)