Unable to create a new Database :(

71 views
Skip to first unread message

Justin A

unread,
Jun 26, 2016, 8:51:32 PM6/26/16
to RavenDB - 2nd generation document database
Hi,

I'm trying to add a new database to our RavenDB server and I'm not getting the option to do this :(






Server: on an azure vm. Paid license.
Server version: 3660
Browser: Chrome.

I just logged into the UI on the server (aka as localhost).

Any reason why i can' access this?

cheers!

-le me-

Grisha Kotler

unread,
Jun 27, 2016, 6:16:30 AM6/27/16
to rav...@googlegroups.com
What do you get when you access the /debug/user-info endpoint?

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Grisha Kotler l RavenDB Core Team Developer Mobile: +972-54-586-8647

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

RavenDB paving the way to "Data Made Simplehttp://ravendb.net/


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Justin Adler

unread,
Jun 27, 2016, 7:00:27 AM6/27/16
to rav...@googlegroups.com
:( :( :( :(

{
  "Remark": "Using anonymous user",
  "User": null,
  "IsAdminGlobal": false,
  "IsAdminCurrentDb": false,
  "Databases": null,
  "Principal": null,
  "AdminDatabases": null,
  "ReadOnlyDatabases": null,
  "ReadWriteDatabases": null,
  "AccessTokenBody": null
}

--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/1QZHUvPDeQE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+u...@googlegroups.com.

Justin A

unread,
Jun 27, 2016, 7:41:02 AM6/27/16
to RavenDB - 2nd generation document database
Sorry, i ment to say:

:( :( :( :( .... what should I be doing, here? I do have an apikey .. but that's for the tenant (i think) .. not sure if it's for the whole DB, etc?

Of course, I have root access to the VM, etc.

Oren Eini (Ayende Rahien)

unread,
Jun 27, 2016, 8:20:27 AM6/27/16
to ravendb
It looks like you have anonymous access to get, can you check that in the web.config?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

--

Justin A

unread,
Jun 27, 2016, 6:39:15 PM6/27/16
to RavenDB - 2nd generation document database
 <add key="Raven/AnonymousAccess" value="All"/>

should this be something else? 

Justin A

unread,
Jun 27, 2016, 8:25:39 PM6/27/16
to RavenDB - 2nd generation document database
Ok. I believe i figured this out.

    <add key="Raven/AnonymousAccess" value="Admin"/>

and the server didn't restart back. Yay for me :(

Jumped into ravendb docs.. and...

TIL: raven.server.exe.config =>>   <add key="Raven/Licensing/AllowAdminAnonymousAccessForCommercialUse" value="false" />

I'm using a commerical lic, so i then did this (temporarily)...

    <add key="Raven/AnonymousAccess" value="Admin"/>
    <add key="Raven/Licensing/AllowAdminAnonymousAccessForCommercialUse" value="true" />

I then
- added some API Keys, including one for admin with admin-permisions.
- created a new tenant/db/resource (whatever it's called).

then updated the config to...

    <add key="Raven/AnonymousAccess" value="None"/>
    <add key="Raven/Licensing/AllowAdminAnonymousAccessForCommercialUse" value="false" />  <-- I know i don't need this line, as false is the default...

and raven.server.exe /restart .. and we're back.


So questions..

1. Is the None & False settings the recommened for a production server? (my guess is 'yes', of course!).
2. How do i connect to my server and get asked to use my apikey (ie. my admin one, for example).

Oren Eini (Ayende Rahien)

unread,
Jun 27, 2016, 9:25:47 PM6/27/16
to ravendb
1) None & False are recommended for production, we want to avoid you accidentally running a production server exposed to the world.
2) You can setup the API key (without auth), and it gives you the right connection string and link to use.

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


Justin A

unread,
Jun 27, 2016, 10:20:11 PM6/27/16
to RavenDB - 2nd generation document database
Ta Oren!

For those using google to find this answer .. here's the steps =>

- Open up the STUDIO in a browser
- Click MANAGE YOUR SERVER
- Click API KEYS (it should already be selected by default, though).
- Add a key.
- Copy the DIRECT URL


win.


ta!


Reply all
Reply to author
Forward
0 new messages