Hello, I am trying to setup realsync to work with my development VM which is provisioned by Vagrant.
Setup gos fine but in the end it seems that rsync can't access the server, there is complete log:
dkLab RealSync: replicate developer's files over SSH in realtime.
THIS WIZARD APPEARS ONLY ONCE!
NEXT TIME THE REPLICATION WILL START IMMEDIATELY.
Starting an interactive installation.
(Step 1) LOCAL directory to replicate FROM:
[c:/Web/main/www/testproject/project]
(Step 2) REMOTE host to replicate TO (host or host:port): 127.0.0.1:2222
(Step 3) REMOTE SSH login at 127.0.0.1:2222: vagrant
Checking if we have access to vagrant@127.0.0.1:2222 with no password...
no access, generating new SSH keys.
(Step 4) ONLY ONCE you will be asked for a password. Continue? [y] y
Copying SSH key to vagrant@127.0.0.1:2222. Executing:
$ ssh -o StrictHostKeyChecking=no -p2222 vagrant@127.0.0.1
"cd; umask 077; test -d .ssh && chmod 700 .ssh || mkdir .ssh; test -e .ssh/authorized_keys && chmod 600 .ssh/authorized_keys; (echo; cat) >> .ssh/authorized_keys"
vagrant@127.0.0.1's password:
Public key C:\Users\UserName\AppData\Roaming/.realsync/ab31e8995d_Web_main_www_testproject_project.tmp/.ssh/identity.pub is copied to vagrant@127.0.0.1:2222!
(Step 5) REMOTE directory at vagrant@127.0.0.1:2222 to replicate to: /home/vagrant/www/testproject/project
checking if the directory exists...
(Step 6) Exclusions from .realsync configuration are:
.realsync CVS .git .svn .hg .cache .idea nbproject ~* *.tmp *.pyc *.swp
Enter a space-separated list of ADDITIONAL exclusions: [<none>]
All done. The configuration file has been updated.
Configuration file is:
c:/Web/main/www/testproject/project/.realsync
Generated SSH private key is saved to:
C:\Users\UserName\AppData\Roaming/.realsync/ab31e8995d_Web_main_www_testproject_project.tmp/.ssh/identity
Press Enter start the replication.
[15:37:20] Running async notification watcher (to save CPU time).
[15:37:21] Initiating a background connection with /home/vagrant/www/testproject/project...
[15:37:21] Fast initial rsync synchronization...
Connection to 127.0.0.1 timed out while waiting to read
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
[15:37:29] Rsync exited with code 12, retrying...
[15:37:29] Fast initial rsync synchronization...
Connection to 127.0.0.1 timed out while waiting to read
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
[15:37:38] Rsync exited with code 12, retrying...
[15:37:38] Fast initial rsync synchronization...
Connection to 127.0.0.1 timed out while waiting to read
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
[15:37:47] Rsync exited with code 12, retrying...
[15:37:47] Fast initial rsync synchronization...
Connection to 127.0.0.1 timed out while waiting to read
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
[15:37:55] Rsync exited with code 12, retrying...
[15:37:56] Fast initial rsync synchronization...
Connection to 127.0.0.1 timed out while waiting to read
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
[15:38:04] Rsync exited with code 12, retrying...
[15:38:05] Fast initial rsync synchronization...
...
error repeats.
I am not sure what causes this issue, one of the reasons could(?) be that login time to that VM is pretty long for some reason - about 10 seconds (after I input login and press enter). I tried to google it around, found and advice to add these lines to /etc/ssh/ssh_config
TCPKeepAlive yes
KeepAlive yes
ServerAliveInterval 60
UseDNS no
But it didn't help. Also I tried to increase time limits in .realsync file: uncommented ssh_options line and changed -o ConnectTimeout to 30, added parameter --timeout=30 to rsync_options - that didn't help as well.
Maybe you got any idea what could be wrong?
Thank you.
Hello, I am trying to setup realsync to work with my development VM which is provisioned by Vagrant.
Setup gos fine but in the end it seems that rsync can't access the server, there is complete log:
I am not sure what causes this issue, one of the reasons could(?) be that login time to that VM is pretty long for some reason - about 10 seconds (after I input login and press enter). I tried to google it around, found and advice to add these lines to
/etc/ssh/ssh_configBut it didn't help. Also I tried to increase time limits in
.realsyncfile: uncommentedssh_optionsline and changed-o ConnectTimeoutto30, added parameter--timeout=30torsync_options- that didn't help as well.Maybe you got any idea what could be wrong?
Thank you.