<div dir="ltr">Dear Friends,<br>
<br>
I have 2 ubuntu 14.04 LST server Master and Slave. Master to Slave rsync command was
working fine last 2 years. But the problem started when I have created
new image of Slave server and stopped old server.<br>
When I am going to run rsync command it is giving me <br>
<b>Error Message :</b><br>
" rsync -avzL -e "ssh -i jiten.pem" /var/www/html/ root@XXX.XXX.XXX.XXX:/var/www/html/<br>
protocol version mismatch -- is your shell clean?<br>
(see the rsync man page for an explanation)<br>
rsync error: protocol incompatibility (code 2) at compat.c(171) <a class="" href="http://sender=3.0.6">http://sender=3.0.6</a>"<br>
<br>
<b>"both server have same rsync version" "rsync version 3.0.6 protocol version 30"</b><br>
<br>
<b>I have checked ::</b> <br>
1> Created new image of master server and tried rsync command both server but same problem.<br>
<br>
<b>I have follow so many instruction:</b><br>
1> ssh remotehost /bin/true > out.dat ( file blank)<br>
2> ssh remoteuser@remotehost echo 2>/dev/null<br>
3> vi /etc/bashrc file (there is not echo and other extra line or character)<br>
4> rsync -avvvz -e "ssh -i <br>
5> move and remove the .bashrc on remote host<br>
6> vi /root/.bashrc<br>
if [<a href="https://forums.aws.amazon.com/"> $- != <b>i</b> ]</a> ; then<br>
<ol><li>Shell is non-interactive. Be done now!</li></ol>
return<br>
fi<br>
<br>
7> I have remove and move /root/.bashrc file and /root/profile file both Master and new Slave server<br>
8> I have removed rsync command and install new on both server.<br>
<br>
<b>Output of ::</b> root@ip-xxx.xxx.xxx.xxx home]# rsync -avvvzL -e "ssh -i jiten.pem" /var/www/html/ root@xxx.xxx.xxx.xxx:/var/www/html/<br>
opening connection using: ssh -i jiten.pem -l root xxx.xxx.xxx.xxx rsync --server -vvvlogDtprze.iLs . /var/www/html/ <br>
protocol version mismatch -- is your shell clean?<br>
(see the rsync man page for an explanation)<br>
rsync error: protocol incompatibility (code 2) at compat.c(171) <a class="" href="http://sender=3.0.6">http://sender=3.0.6</a><br>
_exit_cleanup(code=2, file=compat.c, line=171): about to call exit(2)<br>
You have mail in /var/spool/mail/root<br>
<br>
Please help me what to do now.<br><br><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Thanks & Regards<br><br></div></div></div></div></div></div>
</div>