HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

rsync error

 
bharath_hanuma
Regular Advisor

rsync error

Hi Champs,

I am new to HP-UX administration, I am facing rsync error from yesterday which is as below,

rcmd: connect: : Connection timed out
rcmd: connect: : Connection timed out
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)
rcmd: connect: : Connection timed out
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)
rcmd: connect: : Connection timed out

Kindly need your help in resolving the same.

Thanks and Regards
Bharath
15 REPLIES
Michal Kapalka (mikap)
Honored Contributor

Re: rsync error

hi,

you could send more information, about the connection....

did you made some changes on the servers or lan ???

rcmd: connect: : Connection timed out

mikap

bharath_hanuma
Regular Advisor

Re: rsync error

Hi Michal,

We haven't done any changes on servers or lan. rsync was working fine till yesterday afternoon. But after that as of a sudden it is giving error. Kindly let me know if your require more information regarding the same.

Thanks and Regards
Bharath
Michal Kapalka (mikap)
Honored Contributor

Re: rsync error

hi,

o how you are using the rsync ???
over ssh ??? if yes, are using password less configuration ??

mikap
bharath_hanuma
Regular Advisor

Re: rsync error

Hi Mikap,

This is how the rsync is being called in the shell script.

/usr/local/bin/rsync -acrp -e "remsh" :/

I think it is remsh, hope I am correct as I don't know much about ssh is being used or not.

Thanks and Regards
Bharath
Michal Kapalka (mikap)
Honored Contributor

Re: rsync error

hi,

/usr/local/bin/rsync -acrp -e "remsh" :/

hi you are using remsh, check rhost configuration file.

mikap
bharath_hanuma
Regular Advisor

Re: rsync error

Hi Mikap,

Under .rhosts configuration I have entries of other servers from where we are copying the files. But still we are having problems. Let me know for more information.

Regards
Bharath
Michal Kapalka (mikap)
Honored Contributor

Re: rsync error

hi,

check inetd.conf if somebody, made some change and disabled r*services.

check this link :

http://docs.hp.com/en/B2355-90827/ch05s02.html

mikap
bharath_hanuma
Regular Advisor

Re: rsync error

Hi Mikap,

Kindly find the attached inetd.conf where remsh is existing in the file. I hope this is the correct entry. Please let me know whether this is correct or not.

Thanks and Regards
Bharath
Michal Kapalka (mikap)
Honored Contributor

Re: rsync error

hi,

yes the entries should be correct.

did you try to use rlogin to check if you are able to connect ??

or executing other command
remsh date for example.

mikap
bharath_hanuma
Regular Advisor

Re: rsync error

Hi Mikap,

It is happening from both server to and from. Its very strange that rsync error is coming after all everything seems to be ok.

Anything I can check.

Regards
Bharath
Michal Kapalka (mikap)
Honored Contributor

Re: rsync error

hi,

sorry no idea at this time.

mikap
bharath_hanuma
Regular Advisor

Re: rsync error

Hi All,

Anybody is there to help me out in rsync error pls....

Regards
Bharath
Steven Schweda
Honored Contributor

Re: rsync error

> [...]
> or executing other command
> remsh date for example.

> Anything I can check.

Did you do that basic remsh check?
bharath_hanuma
Regular Advisor

Re: rsync error

Hi Steven,

I have checked the same it is executing from both the servers without any errors.

Kindly let me know how I can troubleshoot this, as this is urgent.

Regards
Bharath
Raj D.
Honored Contributor

Re: rsync error

Bharath,
Check if your r services are running:
- check /etc/services remshd should not be hashed.
- if hashed removed and do /sbin/init.d/inetd stop /sbin/init.d/inetd start ,
- check again. First check with a remsh or rlogin to the other server it should prompt for password. If that work rsync will work

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "