cwRsync does not want to work


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
6 views
Can't get to work with cwRsync.

C:\\Users\\i\\Documents\\projects> rsync mydata login@example.ru:~/tmp
login@example.ru's password:
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(610) [sender=3.0.7]


Asks to enter the password, and then dies.
The gugleniya for the error gave no results.

I tried to run with-e ssh, the result is the same.
by | 6 views

4 Answers

0 like 0 dislike
A few years ago wrote a batch file for backup folder from the working computer to the router. The details do not remember, but everything works now. Try it with keys to understand/play.
— set CYGWIN=codepage:utf8
echo %DATE% %TIME% Starting %0 >> %temp%\\backup.log
rsync -e "ssh -p 12233 -l admin" -P-avz --delete --delete-after --rsync-path=/opt/bin/rsync /cygdrive/D/docs myrouter.dyndns.org:/home/backup/ 2>> %temp%\\backup.log
echo %DATE% %TIME% Done >> %temp%\\backup.log
exit
--------------------------
by
0 like 0 dislike
Here found how to do debugging with this error:
\rsamba.anu.edu.au/rsync/issues.html
\r
On the remote server, did a file rsync-debug:
#!/bin/sh
ulimit-c unlimited
strace -f rsync "${@}" 2>~/tmp/rsync-$$.out
\r
Launched rsync with the option --rsync-path=~/rsync-debug
\r
The result is a file with debug info from strace:
\r
execve("/usr/bin/rsync", ["rsync", "--server", "-e.Lsf", ".", "/home/un1t/tmp/test"], [/* 12 vars */]) = 0
brk(0) = 0x1198000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5af6383000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, an st_size=43482, ...}) = 0
mmap(NULL, 43482, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5af6378000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libacl.so.1", O_RDONLY) = 3
read(3, "\\177ELF\\2\\1\\1\\0\\0\\0\\0\\0\\0\\0\\0\\0\\3\\0>\\0\\1\\0\\0\\0\\360\\36\\0\\0\\0\\0\\0\\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, an st_size=30472, ...}) = 0
mmap(NULL, 2125648, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5af5f61000
mprotect(0x7f5af5f68000, 2093056, PROT_NONE) = 0
mmap(0x7f5af6167000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f5af6167000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libpopt.so.0", O_RDONLY) = 3
read(3, "\\177ELF\\2\\1\\1\\0\\0\\0\\0\\0\\0\\0\\0\\0\\3\\0>\\0\\1\\0\\0\\0\\340\\"\\0\\0\\0\\0\\0\\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, an st_size=41984, ...}) = 0
mmap(NULL, 2137264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5af5d57000
mprotect(0x7f5af5d61000, 2093056, PROT_NONE) = 0
mmap(0x7f5af5f60000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x7f5af5f60000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\\177ELF\\2\\1\\1\\0\\0\\0\\0\\0\\0\\0\\0\\0\\3\\0>\\0\\1\\0\\0\\0`\\355\\1\\0\\0\\0\\0\\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, an st_size=1432968, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5af6377000
mmap(NULL, 3541032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5af59f6000
mprotect(0x7f5af5b4e000, 2093056, PROT_NONE) = 0
mmap(0x7f5af5d4d000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x157000) = 0x7f5af5d4d000
mmap(0x7f5af5d52000, 18472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5af5d52000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libattr.so.1", O_RDONLY) = 3
read(3, "\\177ELF\\2\\1\\1\\0\\0\\0\\0\\0\\0\\0\\0\\0\\3\\0>\\0\\1\\0\\0\\0p\\24\\0\\0\\0\\0\\0\\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, an st_size=17808, ...}) = 0
mmap(NULL, 2112952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5af57f2000
mprotect(0x7f5af57f6000, 2093056, PROT_NONE) = 0
mmap(0x7f5af59f5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f5af59f5000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5af6376000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5af6375000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5af6374000
arch_prctl(ARCH_SET_FS, 0x7f5af6375700) = 0
mprotect(0x7f5af5d4d000, 16384, PROT_READ) = 0
mprotect(0x7f5af6385000, 4096, PROT_READ) = 0
munmap(0x7f5af6378000, 43482) = 0
rt_sigaction(SIGUSR1, {0x41ab20, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f5af5a281e0}, NULL, 8) = 0
rt_sigaction(SIGUSR2, {0x41b450, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f5af5a281e0}, NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x41b4a0, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f5af5a281e0}, NULL, 8) = 0
geteuid() = 1041
umask(0) = 022
brk(0) = 0x1198000
brk(0x11b9000) = 0x11b9000
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, an st_size=2942400, ...}) = 0
mmap(NULL, 2942400, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5af5523000
close(3) = 0
open("/usr/etc/popt", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/popt", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/etc/popt.d", 0x7fff5ac491b0) = -1 ENOENT (No such file or directory)
open("/home/un1t/.popt", O_RDONLY) = -1 ENOENT (No such file or directory)
rt_sigaction(SIGINT, {0x40b0e0, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f5af5a281e0}, NULL, 8) = 0
rt_sigaction(SIGHUP, {0x40b0e0, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f5af5a281e0}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x40b0e0, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f5af5a281e0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [HUP INT USR1 USR2 TERM CHLD], NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f5af5a281e0}, NULL, 8) = 0
rt_sigaction(SIGXFSZ, {SIG_IGN, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f5af5a281e0}, NULL, 8) = 0
getcwd("/home/un1t", 4095) = 13
fcntl(0, F_GETFL) = 0 (flags O_RDONLY)
fcntl(0, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl(1, F_GETFL) = 0x1 (flags O_WRONLY)
fcntl(1, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
fcntl(0, F_GETFL) = 0x800 (flags O_RDONLY|O_NONBLOCK)
fcntl(1, F_GETFL) = 0x801 (flags O_WRONLY|O_NONBLOCK)
select(2, NULL, [1], [1], {60, 0}) = 1 (out [1], left {59, 999997})
write(1, "\\36\\0\\0\\0", 4) = 4
select(1, [0], [], NULL, {60, 0}) = 1 (in [0], left {59, 966985})
read(0, "", 4) = 0
write(2, "rsync: connection unexpectedly c"..., 74rsync: connection unexpectedly closed (0 bytes received so far) [receiver]) = 74
write(2, "\", 1
) = 1
rt_sigaction(SIGUSR1, {SIG_IGN, [], SA_RESTORER, 0x7f5af5a281e0}, NULL, 8) = 0
rt_sigaction(SIGUSR2, {SIG_IGN, [], SA_RESTORER, 0x7f5af5a281e0}, NULL, 8) = 0
write(2, "rsync error: error in rsync prot"..., 88rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]) = 88
write(2, "\", 1
) = 1
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
exit_group(12) =?
\r
Honestly not particularly clear, except that doesn't wash to find some file /etc/ld.so.nohwcap
by
0 like 0 dislike
Create folders accordingly to where you installed rsync something type
C:\\Program Files\\cwRsync\\home\\Administrator
C:\\Program Files\\cwRsync\\home\\Administrator\\.(ssh folder in Windows starting with a dot are created mkdir'ohms)
\r
I did a backup of postgre on fedora rsync'om windowas via ssh, I had a similar error. Using
regmon.exe looked where the process ssh.exe looking for folder ".ssh" and created it there.
by
0 like 0 dislike
something like this:
1. Create the keys:
\r
ssh-keygen-t rsa -N " -f c:\\tools\\backup\\id_rsa
\r
2. Uploadin them to the server
\r
rsync -av "/cygdrive/c/tools/backup/id_rsa.pub" XXXX@ch-s0XX.rsync.net:.ssh/authorized_keys
\r
3. The upload data actually:
\r
set IN=/cygdrive/c/backups
set OUT=KW01
set LOGIN=XXXX
set HOST=ch-s0XX.rsync.net
set EXCLUDE=--exclude=files --exclude=images/avatars
set CYGWIN=nontsec
set HOME=c:\\tools\\backup
\r
rsync -e ssh -prltzvv --delete --modify-window=10 %EXCLUDE% %IN%/ %LOGIN%@%HOST%:%OUT%/
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
asked Jun 1, 2019 by akimdi
0 like 0 dislike
4 answers
asked Jun 2, 2019 by dmitrydeco
110,608 questions
257,186 answers
0 comments
27,943 users