Open mephillips-durham opened 10 months ago
I can confirm this bug on a mac, newly generated blacklight application, using lando for solr:
be rake solr:marc:index_test_data
rake aborted!
ArgumentError: Traject::SolrJsonWriter: Neither solr.update_url nor solr.url set; need at least one (ArgumentError)
raise ArgumentError.new("#{self.class.name}: Neither solr.update_url nor solr.url set; need at least one")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/Users/bess/.asdf/installs/ruby/3.2.0/bin/bundle:25:in `load'
/Users/bess/.asdf/installs/ruby/3.2.0/bin/bundle:25:in `<main>'
Tasks: TOP => solr:marc:index:work
(See full trace by running task with --trace)
I will see if I can figure it out.
In the section for Easy or Hard: After creating your new application I was able to start Solr using solr_wrapper. I was able to access the Solr web interface. I then tried the "Index some data" step and got this error:
The /home/vagrant/projects/search_app/app/models/marc_indexer file does not seem to be present. Searching using find from the home directory I can see these are present:
Is there a fault with the rake task for index_test_data or should I be located in a different directory to run the command, perhaps?
I followed the Creating a new application the easy way. I see the "hard way" instructions include
rails generate blacklight:install --devise --marc --solr_version=latest
to generate blacklight-marc into the application, so perhaps that is missing from the easy method? I checked here and there seems to be something about including blacklight-marc in the easy method. (Though I don't fully understand the ENV.fetch and whether it will take the --devise and --marc options or not.)