Closed raupie closed 4 years ago
Hello, I fixed this issue by adding : sed -i -e 's/<\/config>/<schemaFactory class="ClassicIndexSchemaFactory"\/><\/config>/g' /ezsolr/server/ez/template/solrconfig.xml on line 19 of the solr entyoint.bash file
didn't still figure out if this issue should be fixed in the ezplatform solr bundle instead of fixing it in the docker conf entrypoint file
@Plopix I've just reproduced this bug, it seems that the solr core creation done in the solr entrypoint is causing a collision with the core creation in the recipes for Init and Create. Disabling core creation on the recipes and maintaining only the solr reindex seems to work well. I've checked this all with eZP 2.5.9 and Solr 6.6.2, not checked with v3 and Solr 7.
Yes, I don't remember the use case. But I remember we needed both actually because we cannot know for sure if the core has been created before that's why we have it both.
I guess the answer is around here: https://github.com/ezsystems/launchpad/blob/master/src/Command/Docker/Initialize.php#L230 https://github.com/ezsystems/launchpad/blob/master/src/Command/Docker/Create.php#L56
Is that possible we run $executor->indexSolr();
if the core is not created yet... which is this case will be in the EntryPoint and The Recipe. (when init/create)
I don't reproduce the bug actually, and right now I definitely agree with what you are saying.
Me when I test I have just an error saying that the Core exist but I don't have index error.
So that's why I closed the issue. but if there is really an index issue then we need to fix I will re-open.
@Plopix check attached PR #82 it solves the issue here.
@raupie @Plopix believe this can be closed now?
A fresh install of ezlaunchpad and a new
init
of ezplatform results in a solr collection error.I've noticed that this happens off and on. See #61 .travis failure for example.
I believe this may have something to do with permissions. Ref #55