Hello, I'm desperately trying to have a RSync server work on a Windows 2003 Standard Server. All the documentation available I have found applies to Windows NT/2000/XP I don't know whether 2003 works differently from the previous Windows. I have installed the cwrsync package. The RSyncServer Service is running fine under a user account named cwrsync. A successful Telnet on the port 873 tells me that the rsync service is responding. Here is my rsyncd.conf File : ----------------------------------------- use chroot = false strict modes = false hosts allow = * log file = rsyncd.log pid file = rsyncd.pid [test] path = /cygdrive/c/ARCHIMED_INSTANCE/MASC/Standard/cwrsync/DATA/ read only = false transfer logging = yes ----------------------------------------->From what I have seen in web pages, this file is correctly configured.Here is my rsync command line for testing the service locally : ----------------------------------------- rsync -vz "/cygdrive/c/ARCHIMED_INSTANCE/MASC/Standard/cwrsync/doc" cwrsync@localhost::test ----------------------------------------- I keep getting the following error : ----------------------------------------- @ERROR: chdir failed rsync: connection unexpectedly closed (33 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(189) ----------------------------------------- I guess chdir refers to the directory with the files to be copied (the one in the rsync command line) but I can't figure why there is an error. I've checked and rechecked the path. The account cwrsync has full control over the chdir so it should see it. I really don't understand what's going on. Is this problem Windows 2003 related ? Does ssh have anything to do with it ? Or is it some dumb configuration mistake I've been missing these last 3 hours ? Any help would be greatly appreciated. St?phane Rohart
I have a feeling there's a permissions problem you're not seeing with your cwrsync account. Try temporarily changing the service to run as an account you can log in as and seeing if that account can browse the folder the test module refers to, THEN trying cwrsync running as that user and see if you get the same error. Jim Salter JRS Systems> Hello, > > I'm desperately trying to have a RSync server work on a Windows 2003 > Standard Server. > All the documentation available I have found applies to Windows NT/2000/XP > I don't know whether 2003 works differently from the previous Windows. > > I have installed the cwrsync package. > The RSyncServer Service is running fine under a user account named cwrsync. > A successful Telnet on the port 873 tells me that the rsync service is > responding. > > Here is my rsyncd.conf File : > ----------------------------------------- > use chroot = false > strict modes = false > hosts allow = * > log file = rsyncd.log > pid file = rsyncd.pid > > [test] > path = /cygdrive/c/ARCHIMED_INSTANCE/MASC/Standard/cwrsync/DATA/ > read only = false > transfer logging = yes > ----------------------------------------- > >>From what I have seen in web pages, this file is correctly configured. > > Here is my rsync command line for testing the service locally : > ----------------------------------------- > rsync -vz "/cygdrive/c/ARCHIMED_INSTANCE/MASC/Standard/cwrsync/doc" > cwrsync@localhost::test > ----------------------------------------- > > I keep getting the following error : > > ----------------------------------------- > @ERROR: chdir failed > rsync: connection unexpectedly closed (33 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(189) > ----------------------------------------- > > I guess chdir refers to the directory with the files to be copied (the one > in the rsync command line) > but I can't figure why there is an error. I've checked and rechecked the > path. > The account cwrsync has full control over the chdir so it should see it. > > I really don't understand what's going on. > Is this problem Windows 2003 related ? > Does ssh have anything to do with it ? > Or is it some dumb configuration mistake I've been missing these last 3 > hours ? > > Any help would be greatly appreciated. > > St?phane Rohart
Hi, cwRsync installation asks you a directory to keep your writeable modules in. Make sure that all writeable modules (read only = false) point to directories lying under this directory. In that way, you will make sure that -cwrsync- account has correct permissions and ownership. In your case, this directory should be C:\ARCHIMED_INSTANCE. Of course, you can override this behaviour by specifying an other directory. You must then make sure that account -cwrsync- has full permissions to this directory. Don't forget to use CYGWIN=nontsec in your batch files when running rsync. Rgrds Tev cwRsync maintainer Rgrds Tev cwRsync maintainer> Hello, > > I'm desperately trying to have a RSync server work on a Windows 2003 > Standard Server. > All the documentation available I have found applies to Windows NT/2000/XP > I don't know whether 2003 works differently from the previous Windows. > > I have installed the cwrsync package. > The RSyncServer Service is running fine under a user account named > cwrsync. > A successful Telnet on the port 873 tells me that the rsync service is > responding. > > Here is my rsyncd.conf File : > ----------------------------------------- > use chroot = false > strict modes = false > hosts allow = * > log file = rsyncd.log > pid file = rsyncd.pid > > [test] > path = /cygdrive/c/ARCHIMED_INSTANCE/MASC/Standard/cwrsync/DATA/ > read only = false > transfer logging = yes > ----------------------------------------- > >>From what I have seen in web pages, this file is correctly configured. > > Here is my rsync command line for testing the service locally : > ----------------------------------------- > rsync -vz "/cygdrive/c/ARCHIMED_INSTANCE/MASC/Standard/cwrsync/doc" > cwrsync@localhost::test > ----------------------------------------- > > I keep getting the following error : > > ----------------------------------------- > @ERROR: chdir failed > rsync: connection unexpectedly closed (33 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(189) > ----------------------------------------- > > I guess chdir refers to the directory with the files to be copied (the one > in the rsync command line) > but I can't figure why there is an error. I've checked and rechecked the > path. > The account cwrsync has full control over the chdir so it should see it. > > I really don't understand what's going on. > Is this problem Windows 2003 related ? > Does ssh have anything to do with it ? > Or is it some dumb configuration mistake I've been missing these last 3 > hours ? > > Any help would be greatly appreciated. > > St?phane Rohart > -- > To unsubscribe or change options: > http://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >