# Difficulty with install

Hi there,

I am having a difficult time installing Stardog-5.3.5. I am on Windows 10, and I have been following the instructions. I downloaded the zip, and extracted it to a folder named "Stardog" and created a new folder in C: called "Data". I downloaded the stardog-license-key.bin and put it in the "Stardog" folder along with the subfolders "bin", "client", etc. In cmd.exe, when I enter "COPY /B stardog-license-key.bin %STARDOG_HOME%" I get the message "the system cannot find the file specified. I've searched around and I haven't found anything on this to help.

You didn't mention anything about setting the STARDOG_HOME environment variable

SET STARDOG_HOME=C:\data\stardog


but that's not your immediate problem. It's probably because when you open cmd.exe it's in your user home directory and I'm guessing that stardog-license-key.bin is in your Downloads folder. Try changing to your Downloads folder first

cd Downloads


Or you can get all pointy-clicky and just drag the file into your Stardog folder. You can create a separate Data directory but that's a somewhat more advanced installation. If you're interested in having a separate data directory I'd be happy to help, just let me know but for now I figured you're more interested in just getting it up and running.

The last thing you'll want to do is set the path

SET PATH=%PATH%;C:\path\to\my\stardog\folder\bin

2 Likes

Apologies, yes I set the STARDOG_HOME environment variable. I initially saved the stardog-license-key.bin to C:\data\stardog but I thought I had to run the command anyway because of this: " The /B is required to perform a binary copy or the license file may get corrupted. Of course stardog-license-key.bin has to be readable by the Stardog process. Finally, Stardog won’t run without a valid stardog-license-key.bin in STARDOG_HOME ."

Should I keep the data directory that I made in C: or should I save it elsewhere like in documents?

I managed to fix it, I had to change the directory which I didn't know I had to do. But now, I am unable to access the web console. I get a blank page with links to stardog's main page and the community page. Java isn't blocked, so I don't know what the problem is.

Sorry, I missed that the documentation suggests unzipping the install into c:\data

If you set the path environment variable you shouldn’t need to change to the directory.

The docs suggest using the /B flag as opposed to not using it and possible corrupting the file. Dragging it to the destination should be fine. You can delete the c:\data directory if you’re going to be installing it somewhere else. Just remember to change all the paths to reflect the different install location you’ve chosen but I would recommend using c:\data as the install location just to follow the documentation and avoid confusion.

My best guess with the console would be a local firewall. Make sure Windows isn’t blocking access to port 5820

I allowed the port through my firewall, but the problem still exists. I have tried multiple browsers.

And changing the directory to c:\data\stardog was the only way to even start the server, for some reason.

Having to change to the directory is probably a problem with your path and/or a problem with STARDOG_HOME. STARDOG_HOME will default to the current directory if it’s not set so if it’s not set you need to be in the install directory for it to run. If you’re saying you need to cd to the bin directory to get it to start then it’s a problem with your path.

Can you double check your windows firewall settings and make sure java is allowed for both public and private?

I did set STARDOG_HOME though, I opened up cmd and followed the steps listed. So I don't know what I could be doing wrong, unless there are some things that I should be doing that aren't indicated in the guide.

I checked java several times, it's allowed through public and private.

I read through the windows installation instructions. I wasn't too familiar with it since I don't use windows. It includes everything you should need to get it running. I hadn't realized that the install setup suggested for windows is slightly different than for Linux. It recommends a separate install and data directory.

The separation is why you need to be in the install directory to launch Stardog. Setting %STARDOG% to your install directory should allow you to launch Stardog from anywhere but that shouldn't be the problem with the console.

I should say that the Stardog web console is still available but it is deprecated. Stardog Studio is the replacement for the web console. That being said, it should still work.

Are there any warnings in your stardog.log file? (located in the Stardog installation directory)

Okay, so changing the directory in cmd was the right thing to do? And I checked the log for errors, and there is this:

ERROR 2018-10-18 10:28:30,285 [stardog-user-3] com.complexible.stardog.protocols.http.server.StardogHttpServiceLoader:accept(229): An unexpected exception was handled by the server
com.complexible.stardog.server.UnknownDatabaseException: Database 'favicon.ico' does not exist.
at com.complexible.stardog.server.UnknownDatabaseException.create(UnknownDatabaseException.java:28) ~[stardog-core-shared-5.3.5.jar:?]
at com.complexible.stardog.StardogKernel.get(StardogKernel.java:2794) ~[stardog-5.3.5.jar:?]
at com.complexible.stardog.StardogKernel.assertOnline(StardogKernel.java:2799) ~[stardog-5.3.5.jar:?]
at com.complexible.stardog.StardogKernel.getConnection(StardogKernel.java:1139) ~[stardog-5.3.5.jar:?]
at com.complexible.stardog.protocols.http.server.GraphStoreProtocol.openConnection(GraphStoreProtocol.java:87) ~[stardog-protocols-http-server-5.3.5.jar:?]
at com.complexible.stardog.protocols.http.server.GraphStoreProtocol.getGraph(GraphStoreProtocol.java:100) ~[stardog-protocols-http-server-5.3.5.jar:?]
at com.stardog.http.server.undertow.jaxrs.ExtractRoutes.lambda$handleIt$5(ExtractRoutes.java:192) ~[stardog-protocols-http-server-5.3.5.jar:?]
at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [shiro-core-1.3.0.jar:1.3.0]
at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [shiro-core-1.3.0.jar:1.3.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor\$Worker.run(Unknown Source) [?:1.8.0_191]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]

The good news is that's something to go on. Sorry this is taking so long. Hopefully we will get you going soon. Can you clear your browser cache and try again?

Cleared it a few times, restarted my laptop, still nothing works sadly. I'll try stardog studio to see if anything happens there and if I can connect to 5820.

Okay so stardog studio seems to work fine, everything connected properly.

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