Re: @ERROR: chdir failed

7 replies [Last post]
tk
Offline
Joined: 01.05.2008

test is ok, thank you tev
Now I have add new module in my rsyncd.conf

[inetpub]
path = /cygdrive/c/Inetpub
read only = false
transfer logging = yes

and I use "Prep a Dir for Upload"

I get the same error: @ERROR: chdir failed,

but if I copy inetpub into test it works correctly.

any suggestion??

Thank regards

Dario

tk
Offline
Joined: 01.05.2008

Hi,
I have installed cwrsync 2.0.7 client on my local machine, XP SP2, and cwrsyncserver 2.0.7 on the server machine, W2K server.

When i run rsync -av remote.host::test

I get the following error
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1296) [sender=2.6.8]

I have setting Environment Variables CYGWIN=nontsec

Any ideas? Please forgive any brevity.

Thanks a lot
Dario

tk
Offline
Joined: 01.05.2008

I gave up on the "::" form. Configure the [test] module in your rsyncd.conf on the server then sync with "rsync://serverIP/test" as the remote path. The 'rsync://' is significant somehow. 'Test' will rooted on whatever path you specified.

tk
Offline
Joined: 01.05.2008

thank you so much for the answer, but the problem isn't resolved
I try with
rsync -av rsync://remote.host/test

I get the same error
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=2.6.8]

Any ideas?

Many thanks in advance!
Dario

this is my rsyncd.conf

use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid

# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/c/work
read only = false
transfer logging = yes

tk
Offline
Joined: 01.05.2008

[quote][test]

path = /cygdrive/c/work

read only = false

transfer logging = yes
[/quote]

Make sure that the service account has change rights on the directory c:\work. You can use Prep a Dir for Upload wizard from start menu for that purpose.

tk
Offline
Joined: 01.05.2008

Hi, What do you mean when you day :
[quote=
but if I copy inetpub into test it works correctly.

[/quote]
Could you paste your rsyncd.conf ?
Thanks

tk
Offline
Joined: 01.05.2008

Hello,Sorry for the first post
What do you mean when you say ?
"but if I copy inetpub into test it works correctly."
Could you paste your rsyncd.conf file ?
Thanks

tk
Offline
Joined: 01.05.2008

Hi,
I copy directory inetpub into directory test and rsync works correctly otherwise I don't backup inetpub.

I get same error:
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=2.6.8]

this is my rsyncd.conf :

use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid

# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/c/work
read only = false
transfer logging = yes

[inetpub]
path = /cygdrive/c/Inetpub/wwwroot
read only = false
transfer logging = yes

Any ideas?

Many thanks in advance!
Dario