Issue starting database on RavenDB server using nodejs

15 views
Skip to first unread message

Anjana Ratnayake

unread,
Oct 28, 2022, 2:42:39 AM10/28/22
to RavenDB - an awesome database
These are the settings I use for my ravenDB server,  I run it in a docker container on ip address 10.20.20.10
{
"DataDir": "RavenData",
"Security.UnsecuredAccessAllowed": "PublicNetwork",
"License.Eula.Accepted": true,
"Setup.Mode": "Unsecured"
}

I am able to get the server to run, the only issue is with connecting to it.
This is what my JS file looks like:

  let { DocumentStore } = require('ravendb');
  let serverUrl = 'http://10.20.20.10:8080';
  let databaseName = 'YourDatabaseName';

  let documentStore = new DocumentStore(serverUrl, databaseName);

  documentStore.initialize();

  let session = documentStore.openSession('YourDatabaseName');

When I look inside the session variable I see the following:

_firstTopologyUpdateStatus: PromiseStatusTracker { _status: 'REJECTED', _promise: [Promise] }

I am not sure why it is getting rejected


Oren Eini (Ayende Rahien)

unread,
Nov 2, 2022, 9:50:24 AM11/2/22
to rav...@googlegroups.com
You are missing the ServerUrl setting, otherwise RavenDB will bind to 127.0.0.1, probably

--
You received this message because you are subscribed to the Google Groups "RavenDB - an awesome database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/48f8b893-32ac-495f-b570-863ce0614746n%40googlegroups.com.


--
Oren Eini
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net
  
Reply all
Reply to author
Forward
0 new messages