We suspect that this has something to do with your server setup. Specifically that the grakn.properties file has an internally pointing storage.hostname. Would you be able to check the configuration file (or send it to us) so that we can confirm this?
Thanks for your reply. I downloaded Grakn, and started the server. I haven’t touched anything. Then from another server, I tried connecting to it using the Java example I showed.
I know it’s running, because I can open the web UI.
Internally, the Grakn client retrieves its properties from the server. The default configuration tries to access the storage backend on localhost (127.0.0.1) and because Grakn is not running locally, you see the error.
Take a look at grakn.properties on the server. You should change the storage.hostname property to be the external IP of the server that you are running Grakn on.
Sorry, i interpreted that i had to pass some kind of structure that contains the IP, and that it was present by default. Also i tried replacing the IP, but an exception is raised when the engine is starting, i think it is due my application is not in the same network as Grakn. Thanks for the help Thanh.
Well i need this for a demo, to show the potential of Grakn, and it should be accessible online.
Do you have anything in mind to get this working?.
I’m using GCP but also i can use Microsoft Azure. Is creating a VPN a good solution, have you tried it?. I will really appreciate that you can give me this information.
Do you need Grakn accessible via the Java API to clients outside of GCP?
You can run Graql queries from the Dashboard on port 4567.
If accessing via the Java API, we would highly recommend the app is in the same network as Grakn as the app has to access the storage layer directly. I have not tried with a VPN but it should work. You will need to set all the configuration options to the internal IP address.
If you need to access Grakn directly from your PC, you can use the configuration that Ilya provided but you need to open the firewall on port 9160 to your PC’s IP address.
Hi Thanh, indeed, i need Grakn accessible via the Java API to clients outside GCP.
I was able to do queries to the Grakn Dashboard from my PC using SSH port forwarding. I didn’t know about the port 9160.
Thanks for the invite to Slack and the info. I will setup the VPN first (i don’t know much about that) and then i think i will be prepared to discuss the details.