System.Security.SecurityException in RavenDb Studio after upgrading to version 2139

88 views
Skip to first unread message

Ryan Britton

unread,
Nov 12, 2012, 5:44:34 AM11/12/12
to rav...@googlegroups.com
I think its a probably a quick one.... I've upgraded my version of RavenDb server (hosted as a service) to #2139 and now I'm battling to get anything done in the Studio (keep getting System.Security.SecurityException: Attempted to connect to a RavenDB Server that requires authentication using Windows credentials,
but either worng credentials where entered or the specified server does not support Windows authentication. error). I've tried adding a record for my domain account in the Windows Authentication tab under Settings, but to no avail). I found a forum post that suggested that I set Raven/AnonymousAccess to All, but this doesn't work....

Oren Eini (Ayende Rahien)

unread,
Nov 12, 2012, 5:52:45 AM11/12/12
to rav...@googlegroups.com
Known issue, will be fixed in the next build

Ryan Britton

unread,
Nov 12, 2012, 5:59:50 AM11/12/12
to rav...@googlegroups.com

Is there a way around it until then? Or should I revert back to the previous build until then?

Oren Eini (Ayende Rahien)

unread,
Nov 12, 2012, 6:15:42 AM11/12/12
to rav...@googlegroups.com
Change the Raven/AnonymousAccess = All

Ryan Britton

unread,
Nov 12, 2012, 6:41:48 AM11/12/12
to rav...@googlegroups.com
I tried that (as per my original post)...it doesn't work?
 
my configuration file reads as follows :
 
-----
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
     <add key="Raven/Port" value="8089"/>
     <add key="Raven/DataDir" value="G:\Data\RavenDB"/>
 <add key="Raven/IndexStoragePath" value="D:\RavenDB\Indexes"/>
    <add key="Raven/AnonymousAccess" value="All"/>
  </appSettings>
 <runtime>
  <loadFromRemoteSources enabled="true"/>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
   <probing privatePath="Analyzers"/>
  </assemblyBinding>
 </runtime>
</configuration>
----

Ryan Britton

unread,
Nov 12, 2012, 6:42:39 AM11/12/12
to rav...@googlegroups.com
 I get the error when I try to create a new database in the Studio?

Oren Eini (Ayende Rahien)

unread,
Nov 12, 2012, 6:48:51 AM11/12/12
to rav...@googlegroups.com
Same issue, will be fixed soon

Ryan Britton

unread,
Nov 12, 2012, 9:10:36 AM11/12/12
to rav...@googlegroups.com
I see that build 2140 is now available :)
 
now I get an error that just says "Unauthorised"...and no additional detail (see attached)
 

 

Oren Eini (Ayende Rahien)

unread,
Nov 12, 2012, 9:12:26 AM11/12/12
to rav...@googlegroups.com
Yes, it was fixed in 2140

On Mon, Nov 12, 2012 at 3:14 PM, murali krishna N <mura...@gmail.com> wrote:
Hi Oren,
 
Was this issue is fixed in build number 2140. I am also waiting for the fix.
 
Thanks & Regards,
N.Murali Krishna.

Oren Eini (Ayende Rahien)

unread,
Nov 12, 2012, 9:12:53 AM11/12/12
to rav...@googlegroups.com
Okay, that is a differen tissue.
How are you running RavenDB?

Ryan Britton

unread,
Nov 12, 2012, 9:16:16 AM11/12/12
to rav...@googlegroups.com
as a service....could it be a file permissions issue?

Oren Eini (Ayende Rahien)

unread,
Nov 12, 2012, 10:05:20 AM11/12/12
to rav...@googlegroups.com
No, it isn't.
The problem is that you need to be an administrator to be able to create a database. If you aren't, you will get the error.

murali krishna N

unread,
Nov 12, 2012, 7:39:48 PM11/12/12
to rav...@googlegroups.com
Hi Ryan,
 
Now are you able to store the data in Remote RavenDB. I have created the database manually on the remote raven database by logging into the machine. I have been added to administrators group as well.
 
Now when I call documentSession.SaveChanges() it is giving me an exception unauthorised:401. So though of asking you now whether everything is working fine or not. Since yesterday I am struggling with this problem. I tried in so many ways. But could not able to save my data. But when I set AnanymousAccess to All in the configuration and when I restarted the raven server I am able to save data.
 
Thanks & Regards,
N.Murali Krishna.

Oren Eini (Ayende Rahien)

unread,
Nov 13, 2012, 2:20:36 AM11/13/12
to rav...@googlegroups.com
Please make sure to use 2140 or 2141, we fixed this issue.

murali krishna N

unread,
Nov 14, 2012, 1:39:24 AM11/14/12
to rav...@googlegroups.com
Hi Oren,
 
I have tried with the latest build number 2142 and still I am getting Unauthorised 401 exception, when I call ravenSession.EnsureDatabaseExists(). In the remote machine I have been in the administrators group. If you could able to help me in resolving this problem it could be great help to me.
 
Thanks & Regards,
N.Murali Krishna.

Oren Eini (Ayende Rahien)

unread,
Nov 14, 2012, 3:12:55 AM11/14/12
to rav...@googlegroups.com
In 2142, you have to be an admin to create a db, so that make sense.
Are you using the remote machine credentails?

murali krishna N

unread,
Nov 14, 2012, 3:20:33 AM11/14/12
to rav...@googlegroups.com
Yes Oren,
 
I am using the credentials of the remote machine. If you want i can show that online for you if you have any means to make a small online meeting through skype. Is that ok for you?
 
Thanks & Regards,
N.Murali Krishna.

Oren Eini (Ayende Rahien)

unread,
Nov 14, 2012, 3:22:56 AM11/14/12
to rav...@googlegroups.com
Yes, that would be fine, we can meet in 1 & 1/2 hours.

murali krishna N

unread,
Nov 14, 2012, 3:29:59 AM11/14/12
to rav...@googlegroups.com
Hi Oren,
 
oren.eini this is your skypid am i correct?
 
Thanks & Regards,
N.Murali Krishna.

Oren Eini (Ayende Rahien)

unread,
Nov 14, 2012, 3:30:18 AM11/14/12
to rav...@googlegroups.com
No, ayenderahien

murali krishna N

unread,
Nov 14, 2012, 4:55:47 AM11/14/12
to rav...@googlegroups.com
Hi Oren,
 
I have sent the add contact request through skype. My name Murali.Natukula. Shall we start the call.
 
Thanks & Regards,
N.Murali Krishna.
Reply all
Reply to author
Forward
0 new messages