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
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
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.