[SOLVED] Rsync from QNAP to other NAS: error (code 5)

Discussion on remote replication.

[SOLVED] Rsync from QNAP to other NAS: error (code 5)

Postby cybergio1974 » Sat Mar 24, 2012 10:29 pm

Dear All,

I'm struggling since some days trying to get an rsync backup from a QNAP TS-210 to an eTrayz.
Both NAS are within the same LAN and no firewall is involved in the communication.
I was able to get remote replication (via ftp) working but I would like to get the benefit of rsync checksum control which is not available using FTP (I guess).

I start the RSYNC job creation wizard and inserted:

Server Type: "Rsync Server"
Remote Destination\Name: "eTrayz"
Port Number: 1837 (just to avoid having the default 837 for possible port scans)

I obviously also defined the User Name "sysadmin" and its associated PWD.
When I run the test, I get a "Success".

The first problem I see in the next Wizard step is that I cannot browse the eTrayz shared folders. When I click ofcus on the path textbox, the folder tree panel opens but it is completely empty. In addition, I get the message "Remain Capacity:Remote size rsync did not support this feature."
Whatever the reason for it, I proceed manually inserting the remote eTrayz path "/Public"

I press next and in the local path textbox, I'm able to browse my local QNAP folder structure and select a source folder.
I press next and leave all replication options unflagged.

When I try to run the job, I get the following error:

@ERROR: Unknown module 'Public'
rsync error: error starting client-server protocol (code 5) at main.c(2348) [sender=3.0.7]


Looks like QNAP is not able to find or access the remote eTrayz "Public" folder.
I see different people had such error on the forum but I cannot exactly understand how it was solved.
I assume the problem might be related to the eTrayz rsync server configuration (reported below) but I also do not exactly understand which is the rsync leading the data transfer (the one on QNAP or the one on eTrayz).

NOTE: eTrayz rsync configuration below

log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
port = 1873

[Music]
path = /home/Public/Music(iTunes)
comment = eTrayz rsync Server
uid = sysadmin
gid = etrayz
read only = no
list = yes
auth users = sysadmin
secrets file = /etc/rsyncd.secrets



I hope you can help me on this.
If any manual command is available for deeper troubleshooting, also please let me know.
Thank you very much in advance for your help.

Best Regards,

Giorgio (Italy)
cybergio1974
Starting out
 
Posts: 11
Joined: Fri Jan 29, 2010 4:42 am
NAS Model: TS-219P

Re: [SOLVED] Rsync from QNAP to other NAS: error (code 5)

Postby cybergio1974 » Mon Mar 26, 2012 4:17 am

Hello,

Just to inform you that I was able to solve it myself.
For those who are interested, here follow the details.

According to the QNAP error I got, the problem was associated to the target rsync folder on the remote eTRayz NAS:

@ERROR: Unknown module 'Public'
rsync error: error starting client-server protocol (code 5) at main.c(2348) [sender=3.0.7]


I checked the eTrayx rsync.conf file and also checked some notes about rsync at the following link:

http://everythinglinux.org/rsync/

It looks like you can define a certain kind of alias for your target path and in my config, that was the entry [Music].
This alias corresponds to path = /home/Public/Music(iTunes).

It was enough, while running through the QNAP RSync wizard to pass the alias "Music" instead of the whole target path.
It worked like a charm !

Hope this is useful for anyone.
Best Regards,

Giorgio
cybergio1974
Starting out
 
Posts: 11
Joined: Fri Jan 29, 2010 4:42 am
NAS Model: TS-219P


Return to Remote Replication/ Disaster Recovery

Who is online

Users browsing this forum: No registered users and 1 guest