Hi all, I have just re-joined the list. I have been using Rsync on my Linux servers for a number of years now without fault. I now have the need to Rsync data between two Solaris 2.7 servers. This has got me stumped... Hoping that someone might have a quick answer for me? bash-2.03$ rsync -auvvvz sydney:/sun /sun opening connection using remsh sydney rsync --server --sender -vvvulogDtprz . /sun bash: rsync: command not found rsync: connection unexpectedly closed (0 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(150) _exit_cleanup(code=12, file=io.c, line=150): about to call exit(12) bash-2.03$ I can happily rsh and rcp these between these two hosts as the user... I have tried both the Sparc PKG at http://rsync.org and compiled with the latest source including the latest Zlib. What am I doing wrong? Tia M@
> Hi all, I have just re-joined the list. I have been using Rsync on my > Linux servers for a number of years now without fault. I now have the > need to Rsync data between two Solaris 2.7 servers. > > This has got me stumped... Hoping that someone might have a quick answer > for me? > > bash-2.03$ rsync -auvvvz sydney:/sun /sun > opening connection using remsh sydney > rsync --server --sender -vvvulogDtprz . /sun > bash: rsync: command not found > rsync: connection unexpectedly closed (0 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(150) > _exit_cleanup(code=12, file=io.c, line=150): about to call exit(12) > bash-2.03$ > > I can happily rsh and rcp these between these two hosts as the user... I > have tried both the Sparc PKG at http://rsync.org and compiled with the > latest source including the latest Zlib. What am I doing wrong?The error message says that the server shell couldn't find a command named "rsync". Check the bash startup scripts to make sure that they run without error and that PATH is set correctly. You said you recompiled rsync. Is the directory where you put the executable (perhaps /usr/local/bin) listed in PATH? --Mike
> -----Original Message----- > From: jw schultz [mailto:jw@pegasys.ws] > Sent: Tuesday, 14 May 2002 12:48 PM > To: Matt Gavin > Subject: Re: Help please... rsync 2.5.5 on Solaris 2.7> > Sounds like PATH to me. Can you "remsh syndey rsync --version"? > > You might want to use --rsync-pathInterestingly no I can't : bash-2.03$ remsh sydney rsync --version bash: rsync: command not found bash-2.03$ But it only seems to be an "rsync" command: bash-2.03$ remsh sydney pwd /export/home/sun bash-2.03$ Could be onto something here... I will have a play with the "--rsync-path" option. M@
> -----Original Message----- > From: jw schultz [mailto:jw@pegasys.ws] > Sent: Tuesday, 14 May 2002 12:48 PM > To: Matt Gavin > Subject: Re: Help please... rsync 2.5.5 on Solaris 2.7 > > Sounds like PATH to me. Can you "remsh syndey rsync --version"? > > You might want to use --rsync-pathIt is working now... thank you very much, and thanx to Michael Fischer as well. The solution as suggested by jw schultz for the benefit of the archives is: bash-2.03$ rsync -auvz --rsync-path=/usr/local/bin/rsync sydney:/sun/ . receiving file list ... done ./ JIPP-F JIPP-G JIPP-H JIPP-T PA-LOCKS PA-LOCKS.idx PABD-G.idx ... Cheers, M@
> -----Original Message-----> The error message says that the server shell couldn't find a command > named "rsync". Check the bash startup scripts to make sure that they > run without error and that PATH is set correctly. You said you > recompiled rsync. Is the directory where you put the > executable (perhaps > /usr/local/bin) listed in PATH? > > --Mike Hi Mike, the user "sun" exists on both hosts, from the prompt on both hosts: bash-2.03$ id uid=1061(sun) gid=50(sun) bash-2.03$ which rsync /usr/local/bin/rsync bash-2.03$ /usr/local/bin is in my System wide specified PATH. I get the same error even when I specify the full command, ie: /usr/local/bin/rsync... You've got two machines involved, and I don't know which is which. Your original log showed an attempt to pull files from machine sydney to the local machine. It's clear that rsync was found on the local machine. It tried to run the command "rsync --server ..." on sydney using remsh. The remote command failed because an executable file "rsync" could not be found in the environment that is set up on sydney by "remsh". Try running some commands manually via remsh to see what is going on on sydney, e.g., remsh sydney which rsync remsh sydney whoami remsh sydney 'echo $path' and so forth. --Mike