File transfers using SCP hang in the process
Issue
- While transferring files between two local systems, the transfer hangs as shown below:
scp -r <Hostname>/ root@<Public IP>:/<Destination>
root@113.128.179.243's password:
filesystems 100% 350 0.3KB/s 00:00
mdstat 100% 40 0.0KB/s 00:00
mounts 100% 1339 1.3KB/s 00:00
interrupts 100% 64KB 63.6KB/s 00:00
-
An inspection of the destination system once the process hangs shows a few files created, but having no contents.
-
An examination of the process via strace shows the following output. Please note the
Connection timed outandBroken Pipemessages in the following:
221433 09:10:56.259813 select(7, [3 4], [3], NULL, NULL) = 2 (in [3], out [3])
21433 09:26:24.952604 read(3, 0x7fff8024f290, 8192) = -1 ETIMEDOUT (Connection timed out)
21433 09:26:24.958012 rt_sigaction(SIGWINCH, NULL, {0x7fd15055ca90, [], SA_RESTORER, 0x7fd14e0f2900}, 8) = 0
21433 09:26:24.958544 rt_sigaction(SIGWINCH, {SIG_DFL, [], SA_RESTORER, 0x7fd14e0f2900}, NULL, 8) = 0
21433 09:26:24.958836 write(3, "<data>"..., 32560) = -1 EPIPE (Broken pipe)
21433 09:26:24.959258 --- SIGPIPE (Broken pipe) @ 0 (0) ---
21433 09:26:24.959442 write(2, "Write failed: Broken pipe\r\n", 27) = 27
21433 09:26:24.962016 exit_group(255) = ?
21432 09:26:24.962745 <... read resumed> "", 1) = 0
21432 09:26:24.962799 --- SIGCHLD (Child exited) @ 0 (0) ---
21432 09:26:24.962845 write(2, "lost connection\n", 16) = 16
21432 09:26:24.963136 exit_group(1) = ?
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
