Open ghost opened 7 years ago
Workaround:
gem uninstall --force riiif
gem uninstall --force rsolr
Gemfile
-gem 'rsolr', '>= 1.0'
+gem 'rsolr', '1.1.2'
-gem 'riiif', '~> 1.0'
+gem 'riiif', '1.4.0'
rm -rf Gemfile.lock
bundle install
Might be able to get away with bundle update
@wwelling ah, interesting. It looks like there may be a compatibility issue with the more recent versions of one of those gems. Did you receive any errors messages in the logs when trying to upload images or re-index content? We may need to update Spotlight's gemspec (if it's not immediately obvious why the newer versions fail).
@jkeck no error messages in logs, which made it a bit more difficult to debug. My last effort was to do a gem list diff to a running Spotlight instance. There where other gem version differences, but these two are the only required to specify version to allow Solr indexing functionality to work.
Riiif gives a deprecation warning during an upload to /upload_resources:
DEPRECATION WARNING: Initializing a file resolver without setting the base path is deprecated and will be removed in Riiif 2.0. (called from new at /Users/njfranck/git/spotlight_test/config/initializers/riiif.rb:1
and also the upload controller seems to be broken:
Started POST "/spotlight/test3/upload_resources" for 127.0.0.1 at 2017-11-13 11:14:54 +0100
..
Rack::QueryParser::ParameterTypeError (expected Hash (got Array) for param `data'):
rack (2.0.3) lib/rack/query_parser.rb:112:in `normalize_params'
Not sure whether this is related..
Hi. I ran into the same issue. Any updates?
FWIW, I just tested this on the latest Spotlight master and was able to upload an item w/o any issues.
It may be worthwhile to test this using a different background job queuing framework (like sidekiq) as that may be able to give you some better logging capabilities from the job.
With a new deployment, I am unable to upload images neither single file or by CSV. The files are uploaded to the
public/uploads/spotlight/featured_image/
directory and the rows are added to thespotlight_resources
table. They are not however being indexed into Solr. A reindexing does not work either.Everything worked with a previousl deployment a few months back. No changes have been made in the deployment process.
cat config/blacklight.yml
echo $SOLR_URL
curl http://janus.evans.tamu.edu:8983/solr/blacklight-core/admin/ping
gem list
ruby -v