I've just tried upgrading to cwrsync 2.1.0 (Rsync version 3.0.0 protocol version 30) between 2 Windows XP Pro sp2 machine across the Internet. I used: SET CYGWIN=nontsec SET HOME=c:\cwrsync\bin C:\cwrsync\bin\rsync -za -u -P --delete --recursive /cygdrive/c/test2/ stuart@test.address.co.uk::test/ When I run the above batch script on the remote machine I get this odd output. ------------------------------------------------------------------------ sending incremental file list rsync: The server is configured to refuse --iconv rsync error: requested action not supported (code 4) at clientserver.c(810) [receiver=3.0.0] rsync: connection unexpectedly closed (5 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(609) [sender=3.0.0] Press any key to continue . . . ------------------------------------------------------------------------ But I'm not using option --iconv! Where does it say it refuses --iconv? I admit I'm a bit lost. :-) Server side rsync is started via --config rsyncd.conf --daemon --no-detach as a service. Registry settings are: ------------------------------------------------------------------------ Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncServer] "Type"=dword:00000010 "Start"=dword:00000002 "ErrorControl"=dword:00000001 "ImagePath"=hex(2):43,00,3a,00,5c,00,63,00,77,00,52,00,73,00,79,00,6e,00,63,00,\ 5c,00,62,00,69,00,6e,00,5c,00,63,00,79,00,67,00,72,00,75,00,6e,00,73,00,72,\ 00,76,00,2e,00,65,00,78,00,65,00,00,00 "DisplayName"="RsyncServer" "ObjectName"=".\\stuart" "Description"="Rsync - open source utility that provides fast incremental file transfer" "FailureActions"=hex:00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,50,00,70,\ 00,01,00,00,00,20,bf,02,00,01,00,00,00,20,bf,02,00,01,00,00,00,20,bf,02,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncServer\Parameters] "AppPath"="C:\\cwRsync\\bin\\rsync.exe" "AppArgs"="--config rsyncd.conf --daemon --no-detach" "WorkingDirectory"="C:\\cwRsync" "StdOut"="C:\\cwRsync\\rsyncd-stdin.log" "StdErr"="C:\\cwRsync\\rsyncd-stderr.log" "Shutdown"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncServer\Parameters\Environment] "CYGWIN"="nontsec binmode" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncServer\Enum] "0"="Root\\LEGACY_RSYNCSERVER\\0000" "Count"=dword:00000001 "NextInstance"=dword:00000001 -------------------------------------------------------------------- rsyncd.conf is: ----------------------------------------------------------------------------------- log file = rsyncd.log pid file = rsyncd.pid use chroot=false uid=administrator gid=administrators strict modes = false [test] path=/cygdrive/ctest comment=Nothing to see here. Empty. read only=false transfer logging = yes list=yes auth users=stuart ------------------------------------------------------------ Even just attempting to list the contents of this remote directory gives this error. The directory contains one file called 'test_text_file.txt' -- Stuart Halliday This email is the property of ECS Technology Ltd. This company is registered in Scotland with company number 212513. VAT registered GB 761 7456 12 ecs-tech.com
See a related thread in cwrsync forum itefix.no/phpws/index.php?module=phpwsbb&PHPWSBB_MAN_OP=view&PHPW S_MAN_ITEMS[]=1130 Tev> -----Original Message----- > From: rsync-bounces+tevfik=itefix.no@lists.samba.org > [mailto:rsync-bounces+tevfik=itefix.no@lists.samba.org] On > Behalf Of Stuart Halliday > Sent: 10. mars 2008 11:38 > To: rsync@lists.samba.org > Subject: The server is configured to refuse --iconv > > I've just tried upgrading to cwrsync 2.1.0 (Rsync version > 3.0.0 protocol version 30) between 2 Windows XP Pro sp2 > machine across the Internet. > > I used: > SET CYGWIN=nontsec > SET HOME=c:\cwrsync\bin > C:\cwrsync\bin\rsync -za -u -P --delete --recursive > /cygdrive/c/test2/ stuart@test.address.co.uk::test/ > > When I run the above batch script on the remote machine I get > this odd output. > > -------------------------------------------------------------- > ---------- > sending incremental file list > rsync: The server is configured to refuse --iconv rsync > error: requested action not supported (code 4) at > clientserver.c(810) [receiver=3.0.0] > rsync: connection unexpectedly closed (5 bytes received so > far) [sender] rsync error: error in rsync protocol data > stream (code 12) at io.c(609) [sender=3.0.0] Press any key to > continue . . . > -------------------------------------------------------------- > ---------- > But I'm not using option --iconv! > > Where does it say it refuses --iconv? > > I admit I'm a bit lost. :-) > > > > Server side rsync is started via > --config rsyncd.conf --daemon --no-detach as a service. > Registry settings are: > -------------------------------------------------------------- > ---------- > Windows Registry Editor Version 5.00 > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncServer] > "Type"=dword:00000010 > "Start"=dword:00000002 > "ErrorControl"=dword:00000001 > "ImagePath"=hex(2):43,00,3a,00,5c,00,63,00,77,00,52,00,73,00,7 > 9,00,6e,00,63,00,\ > > 5c,00,62,00,69,00,6e,00,5c,00,63,00,79,00,67,00,72,00,75,00,6e > ,00,73,00,72,\ > 00,76,00,2e,00,65,00,78,00,65,00,00,00 > "DisplayName"="RsyncServer" > "ObjectName"=".\\stuart" > "Description"="Rsync - open source utility that provides fast > incremental file transfer" > "FailureActions"=hex:00,00,00,00,00,00,00,00,00,00,00,00,03,00 > ,00,00,50,00,70,\ > > 00,01,00,00,00,20,bf,02,00,01,00,00,00,20,bf,02,00,01,00,00,00 > ,20,bf,02,00 > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncSer > ver\Parameters] > "AppPath"="C:\\cwRsync\\bin\\rsync.exe" > "AppArgs"="--config rsyncd.conf --daemon --no-detach" > "WorkingDirectory"="C:\\cwRsync" > "StdOut"="C:\\cwRsync\\rsyncd-stdin.log" > "StdErr"="C:\\cwRsync\\rsyncd-stderr.log" > "Shutdown"=dword:00000001 > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncSer > ver\Parameters\Environment] > "CYGWIN"="nontsec binmode" > > > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncSer > ver\Enum] > "0"="Root\\LEGACY_RSYNCSERVER\\0000" > "Count"=dword:00000001 > "NextInstance"=dword:00000001 > -------------------------------------------------------------------- > rsyncd.conf is: > -------------------------------------------------------------- > --------------------- > log file = rsyncd.log > pid file = rsyncd.pid > use chroot=false > uid=administrator > gid=administrators > strict modes = false > [test] > path=/cygdrive/ctest > comment=Nothing to see here. Empty. > read only=false > transfer logging = yes > list=yes > auth users=stuart > ------------------------------------------------------------ > > Even just attempting to list the contents of this remote > directory gives this error. > The directory contains one file called 'test_text_file.txt' > > > -- > Stuart Halliday > > > > This email is the property of ECS Technology Ltd. > This company is registered in Scotland with company number 212513. > VAT registered GB 761 7456 12 > ecs-tech.com > > > -- > To unsubscribe or change options: > lists.samba.org/mailman/listinfo/rsync > Before posting, read: > catb.org/~esr/faqs/smart-questions.html >
On Mon, Mar 10, 2008 at 10:37:51AM +0000, Stuart Halliday wrote:> But I'm not using option --iconv!It looks like the cwRsync binary was created with a default --iconv option enabled (this is possible via a configure option). From the other messages I saw, it appears that the default is "--iconv=." (which is rsync's cryptic way of saying "use default charset on both sides"). As others have noted, setting a "charset = FOO" on the daemon side (in the rsyncd.conf) enables the allowing of clients that use --iconv. Or, you can manually turn off the default iconv-action for a single transfer via --no-iconv to the client rsync. You can also override a compiled-in default for all your commands by exporting the RSYNC_ICONV environment variable; e.g. set it to "-" to disable iconv by default. ..wayne..