Networking Forums

Networking Forums > Computer Networking > Linux Networking > rsync problem

Reply
Thread Tools Display Modes

rsync problem

 
 
Bob Parnes
Guest
Posts: n/a

 
      02-08-2004, 10:23 PM
Hello,

I am running debian testing on several computers. Before today I used
rsync successfully to back up files to a dedicated backup computer.
Today I revived a third computer and tried running rsync but got the
follower error lines:

protocol version mismatch - is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(70)

The man page for rsync on my system has no explanation. Google has
about 6 posts concerning this problem, but they either applied to
other situations or did not have a reasonable explanation to me.

I ran apt-get to install the latest testing version of rsync and ssh
onto both computers, but that did not help. The only possibility that
comes to mind is that one of the computers is running ssh 1 and the
other ssh 2. I believe version 2 is on both systems. I ran
dpkg-reconfigure ssh to check, but that didn't me an option, so I
assume that both run version 2.

In case it's important the command I tried to run is

rsync --delete -a --rsh=ssh /home/bp/ 192.168.1.250:/home/bp

Thanks for any help.

bob parnes


--
Bob Parnes
(E-Mail Removed)
 
Reply With Quote
 
 
 
 
Andrey Asadchev
Guest
Posts: n/a

 
      02-09-2004, 07:46 AM
Bob Parnes wrote:
> Hello,
>
> I am running debian testing on several computers. Before today I used
> rsync successfully to back up files to a dedicated backup computer.
> Today I revived a third computer and tried running rsync but got the
> follower error lines:
>
> protocol version mismatch - is your shell clean?
> (see the rsync man page for an explanation)
> rsync error: protocol incompatibility (code 2) at compat.c(70)
>
> The man page for rsync on my system has no explanation. Google has
> about 6 posts concerning this problem, but they either applied to
> other situations or did not have a reasonable explanation to me.
>
> I ran apt-get to install the latest testing version of rsync and ssh
> onto both computers, but that did not help. The only possibility that
> comes to mind is that one of the computers is running ssh 1 and the
> other ssh 2. I believe version 2 is on both systems. I ran
> dpkg-reconfigure ssh to check, but that didn't me an option, so I
> assume that both run version 2.
>
> In case it's important the command I tried to run is
>
> rsync --delete -a --rsh=ssh /home/bp/ 192.168.1.250:/home/bp
>
> Thanks for any help.
>
> bob parnes
>
>


man sshd_config

Protocol
Specifies the protocol versions sshd should support. The
possible values are ``1'' and ``2''. Multiple versions must be
comma-separated. The default is ``2,1''.

Check which version the client and server are running:
cat /etc/ssh/sshd_config | grep Protocol

Unless you have a specific need, use SSH2 instead of 1.

If that does not help, try to debug your ssh connections by manually
connecting and copying files.
If manuall ssh works ok, increase the verbosity of rsync with "-v" option.
If that does not give any clues, try using strace to see where it fails.
 
Reply With Quote
 
Bob Parnes
Guest
Posts: n/a

 
      02-10-2004, 06:56 PM
On Mon, 09 Feb 2004 03:46:17 -0500, Andrey Asadchev
<(E-Mail Removed)> wrote:
> Bob Parnes wrote:
>> Hello,
>>
>> I am running debian testing on several computers. Before today I used
>> rsync successfully to back up files to a dedicated backup computer.
>> Today I revived a third computer and tried running rsync but got the
>> follower error lines:
>>
>> protocol version mismatch - is your shell clean?
>> (see the rsync man page for an explanation)
>> rsync error: protocol incompatibility (code 2) at compat.c(70)
>>

[...]
>
> man sshd_config
>
> Protocol
> Specifies the protocol versions sshd should support. The
> possible values are ``1'' and ``2''. Multiple versions must be
> comma-separated. The default is ``2,1''.
>
> Check which version the client and server are running:
> cat /etc/ssh/sshd_config | grep Protocol
>
> Unless you have a specific need, use SSH2 instead of 1.
>
> If that does not help, try to debug your ssh connections by manually
> connecting and copying files.
> If manuall ssh works ok, increase the verbosity of rsync with "-v" option.
> If that does not give any clues, try using strace to see where it fails.


/etc/ssh/sshd_config shows Protocol 2 only, on both computers.

The trouble seems to be that I cannot ssh manually from one computer
to the other, in either direction. I get an error message,
"Temporary failure in name resolution."

I googled with this message. The appropriate posts stated that this
is a name resolution problem, and that I am missing entries in
/etc/resolv.conf. So I entered lines in that file,

nameserver 192.168.1.249
nameserver 192.168.1.250

and restarted ssh in both computers. However, the result was the same.
I can mount directories using NFS in either direction, so I don't see a
problem with the network.

What I don't understand is that I try to connect using the IP address,
so I don't see the reason for a name resolution failure. But this is
new to me, because I have had no trouble with rsync or ssh with other
network connections, with entries only in /etc/hosts.

Thanks for the troubleshooting map. If you can help with this, it may
get me over the hump.

Bob Parnes

--
Bob Parnes
(E-Mail Removed)
 
Reply With Quote
 
Syam
Guest
Posts: n/a

 
      02-17-2004, 06:27 AM
Assuming its not a networking problem since you have nfs working
properly ,

I guess there is some thing in your .bashrc or whatever shell
initialization scripts spewing to stdout.

touch .hushlogin in your home directory and see if it helps or prune
your .bashrc for any echo statements etc






Bob Parnes <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>.. .
> On Mon, 09 Feb 2004 03:46:17 -0500, Andrey Asadchev
> <(E-Mail Removed)> wrote:
> > Bob Parnes wrote:
> >> Hello,
> >>
> >> I am running debian testing on several computers. Before today I used
> >> rsync successfully to back up files to a dedicated backup computer.
> >> Today I revived a third computer and tried running rsync but got the
> >> follower error lines:
> >>
> >> protocol version mismatch - is your shell clean?
> >> (see the rsync man page for an explanation)
> >> rsync error: protocol incompatibility (code 2) at compat.c(70)
> >>

> [...]
> >
> > man sshd_config
> >
> > Protocol
> > Specifies the protocol versions sshd should support. The
> > possible values are ``1'' and ``2''. Multiple versions must be
> > comma-separated. The default is ``2,1''.
> >
> > Check which version the client and server are running:
> > cat /etc/ssh/sshd_config | grep Protocol
> >
> > Unless you have a specific need, use SSH2 instead of 1.
> >
> > If that does not help, try to debug your ssh connections by manually
> > connecting and copying files.
> > If manuall ssh works ok, increase the verbosity of rsync with "-v" option.
> > If that does not give any clues, try using strace to see where it fails.

>
> /etc/ssh/sshd_config shows Protocol 2 only, on both computers.
>
> The trouble seems to be that I cannot ssh manually from one computer
> to the other, in either direction. I get an error message,
> "Temporary failure in name resolution."
>
> I googled with this message. The appropriate posts stated that this
> is a name resolution problem, and that I am missing entries in
> /etc/resolv.conf. So I entered lines in that file,
>
> nameserver 192.168.1.249
> nameserver 192.168.1.250
>
> and restarted ssh in both computers. However, the result was the same.
> I can mount directories using NFS in either direction, so I don't see a
> problem with the network.
>
> What I don't understand is that I try to connect using the IP address,
> so I don't see the reason for a name resolution failure. But this is
> new to me, because I have had no trouble with rsync or ssh with other
> network connections, with entries only in /etc/hosts.
>
> Thanks for the troubleshooting map. If you can help with this, it may
> get me over the hump.
>
> Bob Parnes

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can I rsync on UDP? Jagadeesh Linux Networking 19 10-27-2008 02:07 PM
Rsync Mtek Linux Networking 21 07-25-2008 12:59 AM
How to get log file for rsync operation? Does rsync also delete remote files? Goran Ivanic Linux Networking 9 05-05-2008 04:58 PM
rsync + syslog Captain Dondo Linux Networking 2 02-19-2007 01:05 PM
rsync and ssh authentification Suresh Le Rochus Linux Networking 1 03-19-2006 11:55 PM



1 2 3 4 5 6 7 8 9 10 11