error in rsync protocol data stream

Tim Conway conway at
Tue May 18 15:32:34 GMT 2004

It appears that the command you show is not a complete copy/paste job. 
When you changed "" or whatever it was to 
"", you also removed one of the colons between that and 
"jspfsp", as the only time rsync does a chroot is as a server.
A chroot failure is almost invariably an erroneous "path =" line in the 
rsyncd.conf, and since it works otherwise, we know your OS can do chroot. 
Check the directory named under the "[jspfsp]" entry in your rsyncd.conf.

Tim Conway
Unix System Administration
Contractor - IBM Global Services
conway at

I am doing this to rsync a file:

rsync -avz
.txt >> /var/log/rsync_backup.log

I get these error:

@ERROR: chroot failed
rsync: connection unexpectedly closed (34 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)

I am rsyncing several folders between these two servers with no problem. 
now I keep getting this rsyncing a single script.

More information about the rsync mailing list