AmesCornish / buttersink

Buttersink is like rsync for btrfs snapshots
GNU General Public License v3.0
195 stars 18 forks source link

ERROR: failed to dump stream. Broken pipe #41

Closed XiteHosting closed 7 years ago

XiteHosting commented 7 years ago

Hi,

I'm trying to set up a 2nd host that needs to copy all data on a btrfs volume from a 1st host. Installation went fine, but when running I get the following error:

root@host02-sync:/mnt/urbackup-btrfs# buttersink -n -d ssh://host02/mnt/urbackup-btrfs/ /mnt/urbackup-btrfs/
  Remote version: {u'btrfs': u'Btrfs v3.17', u'buttersink': u'0.6.8', u'linux': u'Linux-3.16.0-4-amd64-x86_64-with-debian-8.7'}
S|Measuring 296d...3b0f /mnt/urbackup-btrfs/srvmedia/170502-1128 from b06f...ba7d /mnt/urbackup-btrfs/srvmedia/170506-1114 (~160.4 MiB)

S|btrfs send errors
At subvol /mnt/urbackup-btrfs/srvmedia/170502-1128
ERROR: failed to dump stream. Broken pipe
  ERROR: {u'traceback': u'  File "/usr/local/lib/python2.7/dist-packages/crcmod/_crcfunpy.py", line 73, in _crc32r', u'errorType': u'TypeError', u'command': u'measure', u'server': True, u'error': u'ord() expected string of length 1, but int found'}.

Just listing the snapshots does seem to work:

root@host02-sync:/mnt/urbackup-btrfs# buttersink -n -d ssh://host02/mnt/urbackup-btrfs/
  Remote version: {u'btrfs': u'Btrfs v3.17', u'buttersink': u'0.6.8', u'linux': u'Linux-3.16.0-4-amd64-x86_64-with-debian-8.7'}
296d14b6-c0a8-7d4b-a56b-f17d98e63b0f /mnt/urbackup-btrfs/srvmedia/170502-1128 (7.215 GiB 2.066 MiB exclusive)
f72540be-e48a-9848-b2d3-ed52e5761174 /mnt/urbackup-btrfs/srvmedia/170502-1632 (7.214 GiB 2.113 MiB exclusive)
8885e787-8604-5549-a640-36023bc1f806 /mnt/urbackup-btrfs/srvmedia/170502-2135 (7.206 GiB 2.473 MiB exclusive)

Am i doing something wrong? thanks, Stijn

XiteHosting commented 7 years ago

Hi,

Never mind. I've been searching on the wrong error :-) Searching on "ord() expected string of length 1, but int found" I found the solution.

For further reference, the following fixed it on debian jessie

vi /etc/apt/sources.list
deb http://ftp.nl.debian.org/debian jessie-backports main
apt-get update
apt-get -t jessie-backports install python-crcmod
pip uninstall crcmod