# Can not start stardog and some questions

**URL:** <https://community.stardog.com/t/can-not-start-stardog-and-some-questions/2297>\
**Category:** Support\
**Created:** [March 12, 2020, 3:52pm UTC](https://community.stardog.com/t/can-not-start-stardog-and-some-questions/2297 "2020-03-12T15:52:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shockvip1331](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@shockvip1331](https://community.stardog.com/u/shockvip1331)\
**Post date:** [March 12, 2020, 3:52pm UTC](https://community.stardog.com/t/can-not-start-stardog-and-some-questions/2297/1 "2020-03-12T15:52:51Z")

</div>

Im trying to use stardog in the first time but i cant get access to localhost:5820 on version 7.2. I tested on Mac and docker

I want to ask more question about stardog  
1./ if i have more than 1B entities, my query performance still good ? (expect \<3s)  
2./ i used owl created by Protege with some SWRL rules , does my inference work well ?  
3./ my app is all about searching on multiple properties per entity and also search on multiple entity. Is there a way to allow to search on this ?  
4./ my current database is on elasticsearch and cassandra. Does Stardog have special connector for it to migrate data from es and cassandra to stardog.  
Thanks for reading

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [March 12, 2020, 6:22pm UTC](https://community.stardog.com/t/can-not-start-stardog-and-some-questions/2297/2 "2020-03-12T18:22:30Z")

</div>

What exact problem are you having when you say, "I can't get access". Are you able to start Stardog successfully without any errors? Are you trying to access [http://localhost:5820](http://localhost:5820) with your browser?

1. Your performance is going to depend on a number of factors such as the complexity of the queries, what features you're using, full text search, geospatial, reasoning, etc. Given enough resources Stardog should easily be able to handle 1B triples.

2. Ontologies and rules created in Protoge should be standard OWL and SWRL and should work as expected in Stardog given you choose the correct reasoning profile. I'm not sure what your criteria for "working well" is. Stardog will provide logically consistent results in performant manner.

3. Can you give an example of what you'd like to do? Stardog supports SPARQL and GraphQL allowing a great deal of flexibility in querying.

4. Stardog supports both Elasticsearch and Cassandra through virtual graphs that can then be imported. [Home | Stardog Documentation Latest](https://www.stardog.com/docs/#_structured_data_virtual_graphs)

---

<div class="post-metadata">

**Author:** ![borgendorf](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/borgendorf/32/24_2.png) [@borgendorf](https://community.stardog.com/u/borgendorf)\
**Post date:** [March 12, 2020, 11:57pm UTC](https://community.stardog.com/t/can-not-start-stardog-and-some-questions/2297/3 "2020-03-12T23:57:04Z")

</div>

I'll chime in on the initial problem with Mac and Docker. I've been meaning to chase this down but this prompted me to see if someone already has the answer. When you run Stardog via Docker with `docker run -it -v $STARDOG_HOME:/var/opt/stardog stardog/stardog`, I see the Stardog logo and it says it's listening. But when you go to localhost:5820 in the browser, you get "localhost refused to connect". My initial thought is that Docker might be doing something special with ports and not exposing 5820?

---

<div class="post-metadata">

**Author:** ![shockvip1331](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@shockvip1331](https://community.stardog.com/u/shockvip1331)\
**Post date:** [March 13, 2020, 12:26am UTC](https://community.stardog.com/t/can-not-start-stardog-and-some-questions/2297/4 "2020-03-13T00:26:27Z")

</div>

I start stardog without any error. But when i enter website localhost:5820 404 not found. I tested on 2 diffrent machines Mac and Ubuntu in Docker and also source(Mac). It werid that port 5820 running on my machines. I downloaded Studio and then connected to server but it couldnt connect to server. Any advice to run it successfully ?

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [March 13, 2020, 11:34am UTC](https://community.stardog.com/t/can-not-start-stardog-and-some-questions/2297/5 "2020-03-13T11:34:12Z")

</div>

@borgendorf is correct. In order to connect port 5820 locally to port 5820 on the container, you need to add `-p 5820:5820` to your `docker run` command.

That said, connecting to localhost:5820 in a browser isn't going to accomplish anything other than proving that the server is listening on that port. Connecting via Stardog Studio or CLI will allow you to do things.

---

<div class="post-metadata">

**Author:** ![borgendorf](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/borgendorf/32/24_2.png) [@borgendorf](https://community.stardog.com/u/borgendorf)\
**Post date:** [March 13, 2020, 3:16pm UTC](https://community.stardog.com/t/can-not-start-stardog-and-some-questions/2297/6 "2020-03-13T15:16:26Z")

</div>

Now we're cooking!  
`docker run -it -p 5820:5820 -v $STARDOG_HOME:/var/opt/stardog stardog/stardog`  
does the trick. I'm able to connect with admin/admin in Stardog Studio now. Thanks!  
I would highly suggest you add that to the [Docker](https://www.stardog.com/docs/#_docker) section of the docs.

Thanks! (and thanks again @shockvip1331 for asking that question. Welcome to the community. 👋 )

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [March 27, 2020, 3:16pm UTC](https://community.stardog.com/t/can-not-start-stardog-and-some-questions/2297/7 "2020-03-27T15:16:26Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
