Unable to connect to server

I have installed Stardog 7.6.1 on Ubuntu 20.4.
Although I started the server, I get the following error when I want to create a db.

Unable to connect to server at http://localhost:5820 Connection refused (Connection refused).

It it a local connection or remote?

I have followed the following instruction:

$ curl http://packages.stardog.com/stardog.gpg.pub | apt-key add
$ echo "deb http://packages.stardog.com/deb/ stable main" >> /etc/apt/sources.list
$ apt-get update
$ apt-get install -y stardog=7.6.1
$ systemctl start stardog

Then,
$ ./bin/stardog-admin db create -n mydb1 mydata1

I am new and I am not sure whether I am missing something or not

You might have a firewall blocking connections

I have checked it:
sudo ufw status

Status: inactive

could u give me some hints, please?

What do you see when you run this:
$ ./bin/stardog-admin server status

Unable to connect to server at http://localhost:5820 Connection refused (Connection refused).

Try to run the Stardog server first by doing this:
$ ./bin/stardog-admin server start

./bin/stardog-admin server start
Thank you for downloading Stardog.
A valid license was not found in /home/sare/Documents/stardog/stardog-7.6.1.
Would you like to download a trial license from Stardog (y/N)? y
Contacting Stardog...
NOTE: By downloading a Stardog license you agree to be bound by our evaluation agreement.
This agreement can be found at Evaluation Agreement

Do you agree to these terms (y/N)? y
Are you interested in requesting an academic trial license (y/N)? y
Please provide a valid academic email address to start your 365-day trial: XX.YY@ZZ
Contacting license server.

but the status is yet: Unable to connect to server ...

Do you have a Stardog License stardog-license-key.bin? When starting Stardog, it looks for a license within the $STARDOG_HOME. By default $STARDOG_HOME uses /var/opt/stardog. Docs here. You can also check this out.

Sorry for bothering u.
Could u explain how to get license?
three months ago, I installed version 7.4.5 and I can see its license. but actually I do not remember how to get license.
Yes, I have seen its document but I have not figure out how to solve my problem

If you know the path of your 7.4.5, you should copy stardog-license-key.bin and move it to /home/sare/Documents/stardog/stardog-7.6.1. Based on the info you shared above, that's where your Stardog home is located.

Many thanks @Ross_Jackson , it is done.
thanks for your patience

1 Like

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