There are 5 updates, 2 comments.
 
 
XWiki Docker images / cid:jira-generated-image-avatar-0f3391ff-7a46-46c4-a1dc-5c7db9e05aac XDOCKER-220 Closed

Incorrect path for extraction of Solr configuration JAR

 
View issue   ·   Add comment
 

5 updates

 
cid:jira-generated-image-avatar-06e0e265-3e62-4f94-966a-8d27c10ecbdd Changes by Vincent Massol on 17/Jul/26 21:25
 
Documentation in Release Notes: N/A
Documentation: https://github.com/xwiki/xwiki-docker/blob/master/README.md#using-an-external-solr-service
Assignee: Vincent Massol
Resolution: Fixed
Status: Open Closed
 
 

2 comments

 
cid:jira-generated-image-avatar-06e0e265-3e62-4f94-966a-8d27c10ecbdd Vincent Massol on 17/Jul/26 21:24
 

Confirmed — this is still valid. contrib/solr/solr-init.sh still sets location='/opt/solr/server/solr/', which was the SOLR_HOME of the old Solr image layout. Since Solr 8.x the official image uses SOLR_HOME under /var/solr with cores/index data in /var/solr/data/ (see the [Solr Docker FAQ|https://solr.apache.org/guide/solr/latest/deployment-guide/docker-faq.html]]), so the XWiki config JAR is currently extracted to a path Solr never reads and the xwiki core isn't created.

And yes [~NikitaPetrenko], the README must be updated too: it was bumped from solr:8 to solr:9 but the volume mounts still point at /opt/solr/server/solr (both the docker run and docker compose examples). The fix:
* solr-init.sh: location='/var/solr/data/'
* README docker run: -v /my/path/solr:/var/solr/data/xwiki
* README docker compose: - solr-data:/var/solr

Fix proposed in PR: https://github.com/xwiki/xwiki-docker/pull/new/XDOCKER-220

 
cid:jira-generated-image-avatar-06e0e265-3e62-4f94-966a-8d27c10ecbdd Vincent Massol on 17/Jul/26 21:25
 
Confirmed — this is still valid. {{contrib/solr/solr\-init.sh}} still sets {{location='/opt/solr/server/solr/'}}, which was the {{SOLR\_HOME}} of the old Solr image layout. Since Solr 8.x the official image uses {{SOLR\_HOME}} under {{/var/solr}} with cores/index data in {{/var/solr/data/}} \(see the \[Solr Docker FAQ|[https://solr.apache.org/guide/solr/latest/deployment\-guide/docker\-faq.html\]|https://solr.apache.org/guide/solr/latest/deployment-guide/docker-faq.html]]\), so the XWiki config JAR is currently extracted to a path Solr never reads and the {{xwiki}} core isn't created.

And yes \[\~NikitaPetrenko\], the README must be updated too: it was bumped from {{solr:8}} to {{solr:9}} but the volume mounts still point at {{/opt/solr/server/solr}} \(both the {{docker run}} and {{docker compose}} examples\). The fix:
\* {{solr\-init.sh}}: {{location='/var/solr/data/'}}
\* README {{docker run}}: {{\-v /my/path/solr:/var/solr/data/xwiki}}
\* README {{docker compose}}: {{\- solr\-data:/var/solr}}

Fix proposed in PR:
[ https://github.com/xwiki/xwiki \ -docker/pull/ new/XDOCKER\-220|https://github.com/xwiki/xwiki-docker/pull/new/XDOCKER-220] 89