There is 1 comment.
 
 
XWiki Docker images / cid:jira-generated-image-avatar-4b4a4fac-aa5f-4c2f-b0f3-6dfc07f34ef1 XDOCKER-220 Closed

Incorrect path for extraction of Solr configuration JAR

 
View issue   ·   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-c48b2aa8-70b1-4530-ada6-f16cb068cd95 Vincent Massol on 18/Jul/26 17:18
 
Confirmed — this is still valid. {{contrib/solr/solr \ -init.sh}} still sets {{location='/opt/solr/server/solr/'}}, which was the {{ SOLR\_HOME SOLR_HOME }} of the old Solr image layout. Since Solr 8.x the official image uses {{ SOLR\_HOME 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/89