Open tisto opened 9 years ago
I just made a collective.solr release and people will run into this when following the c.solr README. I either have to add a note to the c.solr README or we have to fix this in c.r.solrinstance. Is anybody working on c.r.solrinstance or feels responsible? This bug is open for 7 month...
@tisto I deployed some days ago Solr in our website with a patched version of c.r.solr 5.3.x with one single fix.
I think that my fix (pointed above) is the solution to this problem, as there was no 5.3.x branch on c.r.solr I thought there's no desire on maintaining it as everyone(?) moved to master (6.x) releases.
@gforcada cool! I'm still on the 5.x branch with everything because 6.x never worked for me. Would you mind doing a pull request? I will create a 5.x branch...
@tisto why did 6.x never work for you?
@saily because of the problem I described above. :) If people install the latest version of c.solr and follow the instructions, they will run into this problem. We can either solve it in p.r.solrinstance 6.x or add a note to the c.solr README that they need to pin to 5.x.
a required _version_
field is not an issue of the recipe it's maybe an issue of the solrconfiguration. did you specify a solrconfig file?
@saily no, we are talking about the minimal c.solr standard buildout here:
https://raw.githubusercontent.com/collective/collective.solr/master/solr.cfg
@tisto ok, then we should just disable updateLog
and it works.
@saily you mean in the c.solr solr.cfg? This would mean that solr.cfg would work for c.r.solrinstance 5.x but not for 6.x, right?
Using an update log requires a _version_
field in schema.
Both versions are affected if updateLog=true
is there.
The title and the first comment talk about 5.0.0b3, but this is 6.0.0b3, right?
I tried it today with the minimal buildout and the solr-instance starts up just fine. This is on Mac. Any chance that the above error is only on Linux? No: I deployed solr 4.10.4 to an Ubuntu server with c.r.solrinstance 6.0.0b3, with a solr config based on the standard one.
The link between _version_
and updateLog
seems just fine in our schema.xml
template.
Those lines are already in 6.0.0b3.
collective.recipe.solrinstance 5.0.0b3 / Solr 4.10.x fails with:
Steps to reproduce.
Create package:
$ mrbob -O example.solr bobtemplates:plone_addon $ cd example.solr/ $ wget https://github.com/collective/collective.solr/raw/master/solr.cfg $ wget https://raw.githubusercontent.com/collective/collective.solr/master/solr-4.10.x.cfg
buildout.cfg:
$ python bootstrap-buildout.py $ bin/buildout $ bin/solr-instance fg
Pinning c.r.solrinstance to 5.3.2 solves the issue.
Original bug report: https://github.com/collective/collective.solr/issues/84