Rsync Not Working: Error rsync protocol data stream (code 12) - How to Fix It
If you're trying to use Hyper Backup, Synology's DSM backup tool, to back up files from your Synology NAS to a WD Cloud EX2 NAS network, you may encounter the error message "rsync protocol data stream (code 12)" when attempting to communicate between the two devices. This error can be frustrating, but it's usually easy to fix with a few troubleshooting steps. In this article, we'll cover the key concepts related to this error and provide a detailed guide on how to resolve it.
Understanding the Error
The "rsync protocol data stream (code 12)" error typically occurs when there is a problem with the rsync protocol, which is used to synchronize files between two devices. In this case, the error is being caused by a communication issue between the Synology NAS and the WD Cloud EX2 NAS network. This error can be caused by a number of factors, including network connectivity issues, firewall settings, or incorrect rsync settings.
Troubleshooting the Error
To fix the "rsync protocol data stream (code 12)" error, follow these troubleshooting steps:
Check the network connectivity between the two devices. Make sure that both devices are connected to the same network and that they can communicate with each other. You can test the network connectivity by pinging one device from the other.
Check the firewall settings on both devices. Make sure that the firewall is not blocking the rsync protocol. You can check the firewall settings by going to the Control Panel on each device and looking for the firewall settings.
Check the rsync settings on the Synology NAS. Make sure that the rsync module and the rsync daemon are properly configured. You can check the rsync settings by going to the Control Panel on the Synology NAS and looking for the rsync settings.
Try using a different rsync version. The version of rsync that is installed on the Synology NAS may be incompatible with the version that is installed on the WD Cloud EX2 NAS network. You can try using a different version of rsync by installing a different version of the rsync package on the Synology NAS.
Try using a different rsync daemon. The rsync daemon that is running on the Synology NAS may be incompatible with the rsync daemon that is running on the WD Cloud EX2 NAS network. You can try using a different rsync daemon by installing a different version of the rsync package on the Synology NAS.
Code Block Example
Here is an example of how to configure the rsync settings on the Synology NAS:
rsync service rsyncd
{
use chroot = yes
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
log file = /var/log/rsync.log
timeout = 300
strict modes = yes
refuse options = checksum,compress
dont compress = *.gz \*.tgz \*.zip \*.z \*.rpm \*.deb \*.bz2 \*.tbz
transfer logging = yes
[backup]
path = /volume1/backup
comment = Synology Backup
read only = no
list = yes
auth users = myuser
secrets file = /etc/rsyncd.secrets
}The "rsync protocol data stream (code 12)" error is a common issue that can occur when using Hyper Backup to back up files from a Synology NAS to a WD Cloud EX2 NAS network. By following the troubleshooting steps outlined in this article, you should be able to resolve the error and successfully back up your files.