Cannot upload files (using BITES)

Hello!

I’m trying to upload a file using CLI:
stardog doc put test file.pdf
but it responds with “No value present” message.
With verbose mode on (-v), the following backtrace is output:

No value present
The detailed stack trace for the error is:

com.complexible.stardog.cli.CliException: No value present
at com.complexible.stardog.cli.impl.ConnectionCommand.call(ConnectionCommand.java:73)
at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:55)
at com.complexible.stardog.cli.CLI.main(CLI.java:105)
Caused by: com.complexible.stardog.StardogException: No value present
at com.complexible.stardog.protocols.http.client.BaseHttpClient.checkResponseCode(BaseHttpClient.java:433)
at com.complexible.stardog.protocols.http.client.BaseHttpClient.execute(BaseHttpClient.java:304)
at com.complexible.stardog.protocols.http.client.HttpClientImpl.execute(HttpClientImpl.java:197)
at com.complexible.stardog.protocols.http.docs.client.HttpStardocsConnection.putDocument(HttpStardocsConnection.java:78)
at com.complexible.stardog.docs.cli.DocPut.lambda$execute$1(DocPut.java:96)
at com.complexible.stardog.docs.cli.DocPut$$Lambda$17/675833472.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at com.complexible.stardog.docs.cli.DocPut.execute(DocPut.java:98)
at com.complexible.stardog.cli.impl.ConnectionCommand.call(ConnectionCommand.java:61)

When I try and use the web UI (“Document Store” tab > “Upload file”), I’m getting HTTP 405 error (as reported in the tooltip for the non-uploaded file icon). I tried different files, in different formats (jpg, pdf, txt, etc.), but nothing works.

Am I missing something?

P.S.: I use stardog-4.2.3 on MacOSX 10.12.3, starting the server with “stardog-admin” command, nothing fancy there.

Hi Slava,

Do you see any error messages in the server log (stardog.log) when you run this command?

Jess

Hi Jess,

No, stardog.log is not updated at all when this error pops up.

Btw, if it’s of any help, I’m running the stardog server at port 5830 (which is not the default 5820), so the full command invocation looks like:
bin/stardog doc put http://localhost:5830/test file.pdf

I’ve been playing with other Stardog features, and can confirm the rest of them works fine with this setup.

Are you able to run doc count on that database?

No, I’m getting the same “No value present” error.
I tried creating other DBs, enabling/disabling different features (e.g. full-text search), but no cigar.
Also, checked Java version, just in case - it’s 1.8.0_51. I guess, that’s fine too.

Hi Slava,

The BITES feature is not enabled when you run Stardog with a community license. I will update the documentation and error handling to reflect this.

Jess

Oh, I see.
Thanks for the help anyway! :slight_smile:

Slava,

I apologize that we wasted yr time in this way. But Stardog Enterprise 30-day trial is free from the website and you can just drop in that license key and restart. Then you can evaluate BITES.

Hi Kendall!

No apologies necessary. I appreciate your prompt support and dedication to
Stardog, even when it’s about a non-paid version.

I will try the enterprise license key, as you suggest.

Thank you!

Here’s an update on the issue: after I’ve used the developer/enterprise 30-day trial license, the CLI upload works fine, but the Web UI still produces “Server responded with 405 code” error message (“Document Store > Upload a File” page). Not a big deal now that I can use CLI, but I guess that still qualifies as a bug :slight_smile:

Moreover, “Document Store” page does not list any documents at all, although stardog doc count says that there’s more than 0 documents there.

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