Standalone Solr throws "missing content stream" error

Hello,

to follow best practices (?) I was trying to set up a Standalone SOLR Server to move away from the embedded. The docker documentation does not seem to be up2date, because the entrypoint script contains “unzip” which, somehow, is not in the solr:9 image.

So I tried following the Extension documentation and I got SOLR up and running, indexing also seems to work just fine, but every time a document gets deleted in xwiki, an error in XWiki log is thrown:

xwiki | 2026-07-18 20:04:33,256 [XWiki Solr client thread] ERROR o.x.s.s.i.DefaultSolrIndexer - Failed to add documents to the Solr server
xwiki | org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error from server at http://solr:8983/solr/xwiki_search_9: missing content stream

solr logs show

solr | 2026-07-18 18:04:33.253 ERROR (qtp515809288-24-null-217) [ x:xwiki_search_9 t:null-217] o.a.s.h.RequestHandlerBase Client exception =>org.apache.solr.common.SolrException: missing content stream
solr | at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:93)

My configuration looks like that

docker-compose

solr:
container_name: solr
hostname: solr
image: solr:9
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- bridge
expose:
- “8983”
environment:
TZ: ${TIMEZONE}
SOLR_HEAP: 3072m
SOLR_MODULES: analysis-extras
volumes:
- ./solr/data:/var/solr/data
ulimits:
nofile: 65000

The ./solr/data contains the solr cores

The xwiki.cfg has just this set

solr.type=remote
solr.remote.baseURL=http://solr:8983/solr

Any ideas? Or can I ignore this error?

Thanks

FYI I’ve fixed Loading...

Hopefully that should get released next week in 18.6.0.

I’m also working on XDOCKER-183: It's not really possible anymore to properly configure a remote Solr using variables since XWiki 12.2 by vmassol · Pull Request #90 · xwiki/xwiki-docker · GitHub (Loading...) which hopefully should be merged this week and released next week too in 18.6.0.

Thx

1 Like

Any chances of this getting released in 17.x (sorry missed out in mentioning we are using 17.)?

Actually yes, the fix will be applied for all XWiki cycle versions next week, at the same time we release 18.6.0.

Awesome! :slight_smile:

Edit: I just found the open issue in Jira :slight_smile: Loading...


Hi @vmassol - I just did a fresh installation in docker with 17.10.11 and the new SOLR image, according to Run XWiki with an External Solr Container, but I still get the error message in XWiki when deleting pages:

xwiki | 2026-07-30 13:05:25,515 [XWiki Solr client thread] ERROR o.x.s.s.i.DefaultSolrIndexer - Failed to add documents to the Solr server
xwiki | org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error from server at http://solr:8983/solr/xwiki_search_9: missing content stream
xwiki | at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:747)
xwiki | at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:263)
xwiki | at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:244)
xwiki | at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:234)
xwiki | at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:101)
xwiki | at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:68)
xwiki | at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:81)
xwiki | at org.xwiki.search.solr.internal.AbstractSolrInstance.add(AbstractSolrInstance.java:71)
xwiki | at org.xwiki.search.solr.internal.DefaultSolrIndexer.lambda$flushDocuments$3(DefaultSolrIndexer.java:634)
xwiki | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
xwiki | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
xwiki | at java.base/java.lang.Thread.run(Unknown Source)

Please let me know if you need any further information.

Yes, actually we’ve been discussing about when we release docker changes at Process and rules to release changes for the official XWiki Docker images and we decided that it’s better that it is in sync with the XWiki releases.

Yesterday we’ve released 18.6.0 (the release was a few days ago but the docker distribution had an issue that we fixed yesterday), 18.4.3 and then 17.10.11 in the evening. Right now the docker images are released or 18.6.0 an 18.4.3 but in progres for 17.10.11 ( see https://dev.xwiki.org/xwiki/bin/view/ReleasePlans/ReleasePlan17.10.11 ). It should land tonight I think.

On Docker Hub 17.10.11 is already available, which is the one I have in use now:

image: “xwiki:17.10.11-mysql-tomcat”

oh ok good, my bad.

I see you’ve linked to Loading... which seems to be your issue.

Thx