# Cannot upload files (using BITES)

**URL:** <https://community.stardog.com/t/cannot-upload-files-using-bites/105>\
**Category:** Support\
**Created:** [February 13, 2017, 2:08pm UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105 "2017-02-13T14:08:24Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![cordawyn](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/cordawyn/32/39_2.png) [@cordawyn](https://community.stardog.com/u/cordawyn)\
**Post date:** [February 13, 2017, 2:08pm UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/1 "2017-02-13T14:08:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)\
**Post date:** [February 13, 2017, 2:30pm UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/2 "2017-02-13T14:30:16Z")

</div>

Hi Slava,

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

Jess

---

<div class="post-metadata">

**Author:** ![cordawyn](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/cordawyn/32/39_2.png) [@cordawyn](https://community.stardog.com/u/cordawyn)\
**Post date:** [February 13, 2017, 2:36pm UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/3 "2017-02-13T14:36:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)\
**Post date:** [February 13, 2017, 2:41pm UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/4 "2017-02-13T14:41:54Z")

</div>

Are you able to run `doc count` on that database?

---

<div class="post-metadata">

**Author:** ![cordawyn](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/cordawyn/32/39_2.png) [@cordawyn](https://community.stardog.com/u/cordawyn)\
**Post date:** [February 13, 2017, 2:45pm UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/5 "2017-02-13T14:45:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)\
**Post date:** [February 13, 2017, 2:53pm UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/6 "2017-02-13T14:53:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cordawyn](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/cordawyn/32/39_2.png) [@cordawyn](https://community.stardog.com/u/cordawyn)\
**Post date:** [February 13, 2017, 2:56pm UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/7 "2017-02-13T14:56:19Z")

</div>

Oh, I see.  
Thanks for the help anyway! 🙂

---

<div class="post-metadata">

**Author:** ![kendall](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/kendall/32/9_2.png) [@kendall](https://community.stardog.com/u/kendall)\
**Post date:** [February 13, 2017, 2:58pm UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/8 "2017-02-13T14:58:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cordawyn](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/cordawyn/32/39_2.png) [@cordawyn](https://community.stardog.com/u/cordawyn)\
**Post date:** [February 13, 2017, 4:24pm UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/9 "2017-02-13T16:24:25Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![cordawyn](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/cordawyn/32/39_2.png) [@cordawyn](https://community.stardog.com/u/cordawyn)\
**Post date:** [February 14, 2017, 9:18am UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/10 "2017-02-14T09:18:01Z")

</div>

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 🙂

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [February 28, 2017, 9:18am UTC](https://community.stardog.com/t/cannot-upload-files-using-bites/105/11 "2017-02-28T09:18:07Z")

</div>

Closed on February 28, 2017, 9:18am UTC

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