# Launch Stardog on a server

**URL:** <https://community.stardog.com/t/launch-stardog-on-a-server/658>\
**Category:** Support\
**Created:** [October 26, 2017, 9:58am UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658 "2017-10-26T09:58:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 26, 2017, 9:58am UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/1 "2017-10-26T09:58:03Z")

</div>

Hello everyone,

I'm trying to create a node.js app (on Heroku) and to launch Stardog on it. Thanks to that, I'll be able to request my Stardog DB through Heroku.

Do you know if it's possible ?

Do you have any ideas to launch a Stardog instance on a server (free or not !) ?

Indeed, my programs works like a charm, but my endpoint is in local. I want to use my requests with any computers ! 😃

I've been thinking of a thing like "I store my file (.ttl in my case, but it can be .rdf or any other formats) in a website (like [www.example.org/myFile](http://www.example.org/myFile)), and I query this file with Stardog thanks to my node.js program." But there's a problem, I think : 0 instances of Stardog are launch, so I have 0 endpoints, ...

Thanks,  
Clément

---

<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:** [October 26, 2017, 1:21pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/2 "2017-10-26T13:21:56Z")

</div>

Hi,

Any server that can expose port 5820 (or whichever port you would choose to have Stardog run on) ought to work and accept requests on that port, given (of course) proper authentication

---

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 26, 2017, 1:36pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/3 "2017-10-26T13:36:17Z")

</div>

Thanks for your answer.

To run Stardog on any server (let’s take Heroku) I need to install Java and then Stardog ?

Because I do not have a proper server. I need to use something to host my instance. If I want to, what website would you recommend to me ?

Clément

---

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 26, 2017, 1:38pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/4 "2017-10-26T13:38:58Z")

</div>

Moreover, do you have any example of what code i’m supposed to launch on that kinds of servers to create an instance of Stardog ?

Thanks,

---

<div class="post-metadata">

**Author:** ![gatemezing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/gatemezing/32/177_2.png) [@gatemezing](https://community.stardog.com/u/gatemezing)\
**Post date:** [October 26, 2017, 1:52pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/5 "2017-10-26T13:52:32Z")

</div>

Hi,  
You need to be able to have java 8 installed, and deploy Stardog as described in the documentation [Home | Stardog Documentation Latest](http://www.stardog.com/docs/)

---

<div class="post-metadata">

**Author:** ![gatemezing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/gatemezing/32/177_2.png) [@gatemezing](https://community.stardog.com/u/gatemezing)\
**Post date:** [October 26, 2017, 1:53pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/6 "2017-10-26T13:53:08Z")

</div>

No code, just read the steps in the manual of installation (you can do it in one script)

---

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 26, 2017, 1:56pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/7 "2017-10-26T13:56:47Z")

</div>

What do you mean by “No code” ? On Heroku, we cannot install something like by pushing files into it, I think ?

I spent like 4 hours on trying to install Stardog (on Heroku or other)… I really tried, but I’m not able to do this. Just a tip, I’ll handle the rest by myself 🙂

---

<div class="post-metadata">

**Author:** ![gatemezing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/gatemezing/32/177_2.png) [@gatemezing](https://community.stardog.com/u/gatemezing)\
**Post date:** [October 26, 2017, 2:11pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/8 "2017-10-26T14:11:51Z")

</div>

I don’t know how Heroku works! I’ve deployed many times Stardog on servers for my ORG and it’s easy…

---

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 26, 2017, 2:20pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/9 "2017-10-26T14:20:07Z")

</div>

Probably, but I don’t see the tip there. I’m not able to go onto my server, create things onto it, and navigate on it.  
I don’t have a cool server like “ok in my terminal I install my stardog like I can do on localhost”.

The instances you deployed for your company, on which server they are/were ?

Heroku is like an application launcher. You can launch it in node.js, python, java, … The point is that i’m not able to navigate as if the server was on my terminal (do you see the difference?)

---

<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:** [October 26, 2017, 2:28pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/10 "2017-10-26T14:28:36Z")

</div>

I haven’t used Heroku either but as you said it seems to be more an application server rather than a plain VM so if you wrote and application that embedded Stardog you could deploy it easily there. It sounds like what you’re looking for is a VM where you can ssh onto it, install java and Stardog and run like an Amazon EC2 instance.

---

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 26, 2017, 2:38pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/11 "2017-10-26T14:38:42Z")

</div>

Thanks. I was creating an AWS account when your comment poped. I’ll jump onto it, and come back here if needed.

Thanks @gatemezing @zachary.whitley .

Clément

---

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 27, 2017, 8:14am UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/12 "2017-10-27T08:14:43Z")

</div>

Ok, I've created the EC2 instance and I've installed Java&Stardog. I launched my stardog instance and it works well.

But now, how can I do to access to my stardog server from the exterior ? Like my ec2 instance looks like [myec2address.compute.amazonaws.com](http://myec2address.compute.amazonaws.com) and my stardog instance looks like [http://localhost:5820](http://localhost:5820). How can I request my stardog instance ?

Thanks,

Clément

---

<div class="post-metadata">

**Author:** ![gatemezing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/gatemezing/32/177_2.png) [@gatemezing](https://community.stardog.com/u/gatemezing)\
**Post date:** [October 27, 2017, 8:34am UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/13 "2017-10-27T08:34:11Z")

</div>

HEllo;  
Did you have a chance to read this [Home | Stardog Documentation Latest](http://www.stardog.com/docs/#_deploying) ? HTH

---

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 27, 2017, 8:38am UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/14 "2017-10-27T08:38:39Z")

</div>

Yes but I cannot run sd-graviton. I’m on Windows (company things).

---

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 27, 2017, 8:50am UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/15 "2017-10-27T08:50:25Z")

</div>

Like this command (launched on another computer, not the same network) doesn’t work ☹

`stardog.bat query http://myEC2Instace.compute.amazonaws.com:5820/myDb "select * where { ?s ?p ?o } LIMIT 10"`

`Connection timed out: connect`

I don’t use proxy or whatever things that can block my connexion to aws.  
Moreover, I allowed all kinds of connexions on aws. (SSH, …)

---

<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:** [October 27, 2017, 10:36am UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/16 "2017-10-27T10:36:56Z")

</div>

Did you try [http://myec2address.compute.amazonaws.com:5820](http://myec2address.compute.amazonaws.com:5820) ? And did you specific allow access to port 5820?

---

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 27, 2017, 11:16am UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/17 "2017-10-27T11:16:06Z")

</div>

Yes I did, and yes again.

I allowed the access for all protocols, on all ports.

Moreover, I cannot ping my AWS EC2 instance. I followed a lot of tutorials (like add security rules, custom ICMP rule on echo request, disable my firewall or other things) but it doesn't work.

See my stackoverflow post here : [amazon web services - Cannot ping my new AWS instance - Stack Overflow](https://stackoverflow.com/questions/46972057/cannot-ping-my-new-aws-instance?noredirect=1#comment80893354_46972057)

Clément

---

<div class="post-metadata">

**Author:** ![grosscol](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/grosscol/32/171_2.png) [@grosscol](https://community.stardog.com/u/grosscol)\
**Post date:** [October 27, 2017, 1:25pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/18 "2017-10-27T13:25:23Z")

</div>

@barbotclem, I’m doing some work on deploying stardog to an aws vpc this afternoon. My architecture puts things like stardog and other persistence layer software in a private subnet. I’ll do my initial deployment to the web tier, so I can access it directly, and get back to this thread.

---

<div class="post-metadata">

**Author:** ![barbotclem](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/barbotclem/32/183_2.png) [@barbotclem](https://community.stardog.com/u/barbotclem)\
**Post date:** [October 27, 2017, 1:27pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/19 "2017-10-27T13:27:31Z")

</div>

Hi @grosscol . Thanks, it’ll be helpful. Clément

---

<div class="post-metadata">

**Author:** ![gatemezing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/gatemezing/32/177_2.png) [@gatemezing](https://community.stardog.com/u/gatemezing)\
**Post date:** [October 27, 2017, 5:02pm UTC](https://community.stardog.com/t/launch-stardog-on-a-server/658/20 "2017-10-27T17:02:20Z")

</div>

Did you ask to AWS how to set up and open relevant ports for apps?

[Next page](https://community.stardog.com/t/launch-stardog-on-a-server/658.md?page=2)
