ubuntussh

Broken pipe error on scp


I can ssh into my ubuntu box just fine, and I have already scp'd a version of my app onto the server, but when I run

scp MaryBaked.tar.gz root@marybakedpdx.com:/home/marybakedpdx

or even

scp MaryBaked.tar.gz root@marybakedpdx.com:~

The progress of the scp jumps up to 81%, then the process says stalled and I get

rite failed: Broken pipe lost connection

EDIT

root@marybakedpdx:/home/marybakedpdx# df -T

Filesystem     Type     1K-blocks    Used Available Use% Mounted on
/dev/vda1      ext4      30830588 2906508  26334944  10% /
none           tmpfs            4       0         4   0% /sys/fs/cgroup
udev           devtmpfs    498088       4    498084   1% /dev
tmpfs          tmpfs       101788     356    101432   1% /run
none           tmpfs         5120       0      5120   0% /run/lock
none           tmpfs       508940       0    508940   0% /run/shm
none           tmpfs       102400       0    102400   0% /run/user

Solution

  • Try throttling - 2Mb/sec max throughput like so:

    scp -l 2000 MaryBaked.tar.gz root@marybakedpdx.com:/home/marybakedpdx
    

    Many times, broken pipes are caused by scp pushing/pulling too fast for something in the stack that throttling can resolve.

    scp man page