Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option '-url' deprecated for removal #3504

Open
ktzrbn opened this issue Jan 31, 2025 · 4 comments
Open

Option '-url' deprecated for removal #3504

ktzrbn opened this issue Jan 31, 2025 · 4 comments

Comments

@ktzrbn
Copy link

ktzrbn commented Jan 31, 2025

Hello, I'm trying to run through the Quickstart sequence to do some testing. I'm unable to start the solr service with this error:

Failed to execute solr create: Option '-url': Deprecated for removal since 9.7: Use -s instead (RuntimeError) Option '-url': Deprecated for removal since 9.7: Use -s instead

I'm not sure where to make this change, but I get this error running "the easy way," "the hard way," and also the 2022 intro to blacklight. Any tips? Thanks.

@ktzrbn
Copy link
Author

ktzrbn commented Jan 31, 2025

Thanks--that clears the error in the terminal but leads to an error since -s isn't defined in solr_options.merge. How do you update the argument list in runner.rb to accomodate?

def argument_list [config.solr_binary, cmd] + config.solr_options.merge(options).map do |k, v| case v when true "-#{k}" when false, nil nil else ["-#{k}", v.to_s] end end.flatten.compact end end end

@jcoyne
Copy link
Member

jcoyne commented Jan 31, 2025

@ktzrbn this is possibly outside the scope of Blacklight. Blacklight depends on having a running version of solr and that is where you are hitting problems. Blacklight doesn't care how you get the solr started. That said, I might be able to lend help if you tell us how you tried to start solr. There are at least 3 different ways, docker, solr_wrapper, or just using java directly.

@ktzrbn
Copy link
Author

ktzrbn commented Jan 31, 2025

ah, that's good to know--I've been working with solr_wrapper, but I've used java directly before to start solr for something else, so I'll give that a shot with blacklight instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jcoyne @ktzrbn and others