rsync ssh not working in crontab after reboot
Posted
by
kabeer
on Server Fault
See other posts from Server Fault
or by kabeer
Published on 2012-11-12T02:53:50Z
Indexed on
2012/11/12
5:02 UTC
Read the original article
Hit count: 542
I was using a script to perform rsync in sudo crontab. The script does a 2-way rsync (from serverA to serverB and reverse). the rsync uses ssh to connect between servers. After i reboot both the server machines, the rsync is not working in sudo crontab. I also setup a new cronjob and it fails, The error is: rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6] rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
However, when run from terminal, the rync script works as expected without issues. please help. looks like issue with ssh. however, i am able to ssh into either servers withoiut issues.
© Server Fault or respective owner