gnemo
September 11th, 2009, 07:29 AM
Operating system: Ubuntu Jaunty 9.04, from Alternate CD (i386)
Problem: when I use scp to copy a 21 GB folder across the network to the PC running Jaunty, the copy process never ends. Worse, copying that 21 GB folder generated a 309 GB folder on the destination machine before I interrupted the copy! Nautilus shows 309 GB folder size, but when I open the folder, there is no visible data inside it.
Note: copy was done as root because some sub-folders were owned by root. My network connection to the external world was DISCONNECTED while the scp process ran, so running scp as root did not pose a security risk.
Repeatability: Every time. I tried it a second time, and this time the scp process generated 290 GB of invisible data before I killed the process.
Commands executed:
1) Log into Ubuntu Jaunty PC, let's pretend its IP is 192.168.0.5
2) su to root (I set a root password)
3) Try to copy 21 GB /home/gnemo folder from 192.168.0.2 (source PC running Kubuntu 8.04) to Jaunty PC using the command:
scp -prv root@192.168.0.2:/home/gnemo ./gnemo_full_copy_sep_9_2009
4) Result: scp never terminates, and ./gnemo_full_copy_sep_9_2009 keeps growing endlessly until I manually kill the scp process.
On-screen messages: "kcore" appears periodically, along with an endlessly growing reported copy size. Other messages as shown below ("kcore" lines formatted red for emphasis):
gnemo@backupbox:~$ su
Password:
root@backupbox:/home/gnemo# scp -prv root@192.168.0.2:/home/gnemo ./gnemo_full_copy_sep_9_2009
<BIG SNIP>
.
.
.
.
Sink: T1252438770 0 1252438770 0
Sending file modes: C0200 0 sysrq-trigger
Sink: C0200 0 sysrq-trigger
sysrq-trigger 100% 0 0.0KB/s 00:00
Sink: T1252438770 0 1252438770 0
Sending file modes: C0400 0 vmcore
Sink: C0400 0 vmcore
vmcore 100% 0 0.0KB/s 00:00
Sink: T1252438770 0 1252438770 0
Sending file modes: C0400 281474975666176 kcore
Sink: C0400 281474975666176 kcore
kcore 0% 23GB 11.3MB/s 6623:46:10 debug1: need rekeying
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.2' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
kcore 0% 87GB 11.2MB/s 6648:20:57 debug1: need rekeying
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.2' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
kcore 0% 150GB 11.2MB/s 6634:27:31 debug1: need rekeying
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.2' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
kcore 0% 214GB 11.3MB/s 6625:09:49 debug1: SSH2_MSG_KEXINIT received
debug1: SSH2_MSG_KEXINIT sent
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.2' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
kcore 0% 278GB 11.3MB/s 6609:08:40 debug1: SSH2_MSG_KEXINIT received
debug1: SSH2_MSG_KEXINIT sent
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.2' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
kcore 0% 309GB 10.7MB/s 6974:59:44 ^Cdebug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Killed by signal 2.
root@backupbox:/home/gnemo#
This Jaunty box was intended to be my data backup and media server, and it is currently useless for the task if I can't use ssh/scp to transfer my files to it.
Interestingly, I had the same problem (scp would never end, and the copied data size kept growing indefinitely) on a Mepis Linux box several years ago. That makes me suspect that ssh/scp in Debian-based distributions has a long-standing bug.
-Gnemo
Problem: when I use scp to copy a 21 GB folder across the network to the PC running Jaunty, the copy process never ends. Worse, copying that 21 GB folder generated a 309 GB folder on the destination machine before I interrupted the copy! Nautilus shows 309 GB folder size, but when I open the folder, there is no visible data inside it.
Note: copy was done as root because some sub-folders were owned by root. My network connection to the external world was DISCONNECTED while the scp process ran, so running scp as root did not pose a security risk.
Repeatability: Every time. I tried it a second time, and this time the scp process generated 290 GB of invisible data before I killed the process.
Commands executed:
1) Log into Ubuntu Jaunty PC, let's pretend its IP is 192.168.0.5
2) su to root (I set a root password)
3) Try to copy 21 GB /home/gnemo folder from 192.168.0.2 (source PC running Kubuntu 8.04) to Jaunty PC using the command:
scp -prv root@192.168.0.2:/home/gnemo ./gnemo_full_copy_sep_9_2009
4) Result: scp never terminates, and ./gnemo_full_copy_sep_9_2009 keeps growing endlessly until I manually kill the scp process.
On-screen messages: "kcore" appears periodically, along with an endlessly growing reported copy size. Other messages as shown below ("kcore" lines formatted red for emphasis):
gnemo@backupbox:~$ su
Password:
root@backupbox:/home/gnemo# scp -prv root@192.168.0.2:/home/gnemo ./gnemo_full_copy_sep_9_2009
<BIG SNIP>
.
.
.
.
Sink: T1252438770 0 1252438770 0
Sending file modes: C0200 0 sysrq-trigger
Sink: C0200 0 sysrq-trigger
sysrq-trigger 100% 0 0.0KB/s 00:00
Sink: T1252438770 0 1252438770 0
Sending file modes: C0400 0 vmcore
Sink: C0400 0 vmcore
vmcore 100% 0 0.0KB/s 00:00
Sink: T1252438770 0 1252438770 0
Sending file modes: C0400 281474975666176 kcore
Sink: C0400 281474975666176 kcore
kcore 0% 23GB 11.3MB/s 6623:46:10 debug1: need rekeying
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.2' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
kcore 0% 87GB 11.2MB/s 6648:20:57 debug1: need rekeying
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.2' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
kcore 0% 150GB 11.2MB/s 6634:27:31 debug1: need rekeying
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.2' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
kcore 0% 214GB 11.3MB/s 6625:09:49 debug1: SSH2_MSG_KEXINIT received
debug1: SSH2_MSG_KEXINIT sent
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.2' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
kcore 0% 278GB 11.3MB/s 6609:08:40 debug1: SSH2_MSG_KEXINIT received
debug1: SSH2_MSG_KEXINIT sent
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.2' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
kcore 0% 309GB 10.7MB/s 6974:59:44 ^Cdebug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Killed by signal 2.
root@backupbox:/home/gnemo#
This Jaunty box was intended to be my data backup and media server, and it is currently useless for the task if I can't use ssh/scp to transfer my files to it.
Interestingly, I had the same problem (scp would never end, and the copied data size kept growing indefinitely) on a Mepis Linux box several years ago. That makes me suspect that ssh/scp in Debian-based distributions has a long-standing bug.
-Gnemo