dingjie / atom-sync

Atom package to sync files bidirectionally between remote host and local over ssh+rsync
MIT License
59 stars 32 forks source link

Error in rsync protocol data stream, please review your config file. #48

Open hvisage opened 8 years ago

hvisage commented 8 years ago

Okay,

I've followed the steps, and sometimes this just works like a charm, and other times it gives me headaches galore. (And I've tested atomic-sync and the atom-sync when this troubles start)

ssh works fine, rsync works fine from the cli, but sync log shows:

Ready
Syncing from /Users/hvisage/Work/GlobalRemit/dotransaction-mysql/doTransaction.sql to hvisage@uat-ferari:/home/ferari/dev/dotransaction-mysql ...
Error in rsync protocol data stream, please review your config file.

Syncing from /Users/hvisage/Work/GlobalRemit/dotransaction-mysql/doTransaction.sql to hvisage@uatferari:/home/ferari/dev/dotransaction-mysql ...
Error in rsync protocol data stream, please review your config file
guyvanbael commented 8 years ago

Updating rsync to the latest version did the trick for me. See issue #43

hvisage commented 8 years ago

Which version of rsync fails and which version works? Issue 43 doesn't show version numbers. Any MacOSX specific issues then with RSYNC? Why does it work in a terminal, but not inside Atom?

I have a bigger suspicion its related to the non-use of ~/.ssh/config which I heavily relies on

hvisage commented 8 years ago
@guyvanbael IT's not the _newer_ rsync, but the _older_ rsync that works O_o And in this case the Brew installed version 3.1.2 makes atom-sync barf while the MacOSX 2.6.9 version does work quite fine... The version that failed: ``` BlackYos% which rsync /usr/local/bin/rsync BlackYos% rsync --version rsync version 3.1.2 protocol version 31 Copyright (C) 1996-2015 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append, ACLs, xattrs, iconv, symtimes, no prealloc, file-flags rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. BlackYos% brew remove homebrew/dupes/rsync Uninstalling /usr/local/Cellar/rsync/3.1.2... (8 files, 749.0K) ``` While this version works: ``` BlackYos% which rsync /usr/bin/rsync BlackYos% rsync --version rsync version 2.6.9 protocol version 29 Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others. Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, inplace, IPv6, 64-bit system inums, 64-bit internal inums rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. BlackYos% ```
guyvanbael commented 7 years ago

@hvisage just upgraded to osx sierra and rsync 312... atom doesn't work at all. Do you have a solution to revert to rsync 2.6.9?

kraih commented 7 years ago

Had the same problem, turns out many versions of rsync don't appear to support the -z option anymore and instead expect -zz. I don't know yet how to enable compression again, but you can work around the problem by changing the flags in your .sync-config.cson from avzpur to avpur.

option:
  flags: 'avpur'