Backup - "The remote server returned an error: (401) Unauthorized."

108 views
Skip to first unread message

Joakim Westin

unread,
May 9, 2012, 1:35:10 AM5/9/12
to rav...@googlegroups.com
I'm setting up a new production environment for a customer. We have RavenDB in TEST, STAGE and PROD environments.

All machines are members of the same Active Directory.

If I log in locally as administrator (ur Run As as local admin) the backup works fine using the Raven.Backup.exe, such as this:

 .\Raven.Backup.exe -url http://localhost:8080/ -dest=D:\Backup

But if  I log in with a diferent account, even one that is administrator locally it does not work:

\Raven.Backup.exe -url http://localhost:8080/ -dest=D:\Backup
Sending json { "BackupLocation": "D:\\Backup" } to http://localhost:8080
The remote server returned an error: (401) Unauthorized.

The Raven config files looks as follows:

<add key="Raven/AnonymousAccess" value="None"/>
<add key="Raven/DataDir" value="~\..\..\Data"/>
<add key="Raven/Authorization/Windows/RequiredGroups" value="PRODSE\Domain Admins"/>
<add key="Raven/Authorization/Windows/RequiredUsers" value="mgmt\xxx"/>

As you can see I have also tried to explicitly allow my user account.

Can anoyone tell me how to fix this?

Or if not fix, what is the recommended way to backup RavenDB in a Windows production environment?

/Joakim

Itamar Syn-Hershko

unread,
May 9, 2012, 4:43:35 AM5/9/12
to rav...@googlegroups.com
You probably need to Run As Admin there as well
Reply all
Reply to author
Forward
0 new messages