RSYNC fun... bizzare things....

Status
Not open for further replies.

andyclimb

Contributor
Joined
Aug 17, 2012
Messages
101
Hi,

So I have FREENAS running on 192.168.1.72
I have a QNAP running on 192.168.1.66

I have successfully got QNAP to back up to the FREENAS using RSYNC - Check

However, I can not for the life of me get it to work the other way round using the GUI! BUT.... I can get it to work by command line.. using the following...

when logged in as root. i realise the -n is there..... this is for testing.....

rsync -v --recursive --stats --log-file=/mnt/freenas/rsync-client.log -n /mnt/freenas/public Media@192.168.1.66::Public

This then asks for a password which if i enter works just fine....

However these settings in the GUI DO NOT WORK. nothing happens... if I add
--log-file=/mnt/freenas/rsync.log -v -v to the attributes then I get this in the log file


2012/08/31 12:01:00 [98867] opening tcp connection to 192.168.1.66 port 873
2012/08/31 12:01:00 [98867] @ERROR: auth failed on module Public
2012/08/31 12:01:00 [98867] rsync error: error starting client-server protocol (code 5) at main.c(1517) [sender=3.0.9]


A bit of digging revels that the GUI is lacking the ability to specify a password, and despite the fact that the users are all set up appropriately with permissions it does not seem to matter... so I added a password file, created under root, with the following permissions....

-rwxrwx--- 1 root wheel 6 Aug 31 10:05 psw.txt*

issuing the command in the terminal as root as follows

rsync -v --recursive --stats --log-file=/mnt/freenas/rsync-client.log --password-file=/mnt/freenas/psw.txt -n /mnt/freenas/public Media@192.168.1.66::Public

works just fine, no problems....

so if I then add --password-file=/mnt/freenas/psw.txt to the aux param in the rsync task along with the logging command I get this

2012/08/31 12:20:00 [99866] opening tcp connection to 192.168.1.66 port 873
2012/08/31 12:20:01 [99866] building file list
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/Crucialm4_000F.zip") failed: Permission denied (13)
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/.DS_Store") failed: Permission denied (13)
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/._.DS_Store") failed: Permission denied (13)
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/ddfile2") failed: Permission denied (13)
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/._VLCStreamerSetup.exe") failed: Permission denied (13)
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/._WINDOWS 8 SERIAL.rtf") failed: Permission denied (13)
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/FreeNAS-8.3.0-BETA1-x64.iso") failed: Permission denied (13)
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/8400.0.WINMAIN_WIN8RC.120518-1423_X64FRE_SERVER_EN-US-HRC_SSS_X6
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/Crucialm4_000F.iso") failed: Permission denied (13)
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/AnyDVD.HD.6.8.8.0.Final-RES-october 13.rar") failed: Permission
2012/08/31 12:20:01 [99866] rsync: readlink_stat("/mnt/freenas/public/AnyDVD-HD.6.6.8.0.patch.exe") failed: Permission denied (13)
2012/08/31 12:20:01 [99866] total: matches=0 hash_hits=0 false_alarms=0 data=0
2012/08/31 12:20:01 [99866] sent 57 bytes received 8 bytes 43.33 bytes/sec
2012/08/31 12:20:01 [99866] total size is 0 speedup is 0.00
2012/08/31 12:20:01 [99866] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1053) [sender

which is the same error I get when I try to run rsync when not root... but the folder I am trying to copy, and all files in it are owned by media with full permissions etc...

what is going on, and why can I not get this to work?

any ideas would be appreciated....
 
Status
Not open for further replies.
Top