cbeer / solr_wrapper

Wrap your tests with Solr 5+
MIT License
23 stars 20 forks source link

Error launching Solr - Unrecognized option: -p #155

Open ewlarson opened 2 months ago

ewlarson commented 2 months ago

Seeing an issue launching the latest Solr 9.7.0 this morning. Can anyone replicate? Using a .solr_wrapper.yml and pinning to 9.6.1 works.

ewlarson@beanburrito-5 geoblacklight_admin % bin/rails geoblacklight:solr           
A gemspec development dependency (solr_wrapper, ~> 4.0) is being overridden by a Gemfile dependency (solr_wrapper, >= 0.3).
This behaviour may change in the future. Please remove either of them, or make sure they both have the same requirement
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Bundle updated!
solr-9.7.0.tgz: |===================================================================================================================================================================================================| 100% (Time: 00:00:35 )
solr-9.7.0.tgz.sha512: |============================================================================================================================================================================================| 100% (Time: 00:00:00 )
solr-9.7.0.tgz.sha512: |============================================================================================================================================================================================| 100% (Time: 00:00:00 )
solr-9.7.0.tgz.sha512: |============================================================================================================================================================================================| 100% (Time: 00:00:00 )
bin/rails aborted!
Failed to execute solr create: Failed to parse command-line arguments due to: Unrecognized option: -p

usage: bin/solr create -c <NAME> [-d <DIR>] [-n <NAME>] [-rf <#>] [-s <#>] [-url <HOST>] [-z <HOST>]

Related: https://github.com/geobtaa/geoblacklight_admin/issues/82

cbeer commented 2 months ago

Yes, Solr 9.7.0 introduced several breaking changes to the CLI. #154 should fix them, if it ever is 💚