Skip to content

Instantly share code, notes, and snippets.

@younga3
Created January 27, 2020 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save younga3/bf98dfc57c8d76e6314045c74e0d8cfd to your computer and use it in GitHub Desktop.
Save younga3/bf98dfc57c8d76e6314045c74e0d8cfd to your computer and use it in GitHub Desktop.
[vagrant@localhost current]$ sudo /usr/local/bin/rails hyrax:default_admin_set:create RAILS_ENV=production
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.3). We suggest you to upgr$
de to the version that created the lockfile by running `gem install bundler:2.1.3`.
rails aborted!
RSolr::Error::Http: RSolr::Error::Http - 400 Bad Request
Error: {
"responseHeader":{
"status":400,
"QTime":187},
"error":{
"metadata":[
"error-class","org.apache.solr.common.SolrException",
"root-error-class","org.apache.solr.common.SolrException"],
"msg":"ERROR: [doc=admin_set/default] unknown field 'system_create_dtsi'",
"code":400}}
URI: http://127.0.0.1:8983/solr/oars/update?wt=json&softCommit=true
Request Headers: {"Content-Type"=>"application/json"}
Request Data: "[{\"system_create_dtsi\":\"2020-01-27T22:49:14Z\",\"system_modified_dtsi\":\"2020-01-27T22:49:14Z\",\"has_model_ssim$
":\"AdminSet\",\"id\":\"admin_set/default\",\"title_tesim\":\"Default Admin Set\",\"title_sim\":\"Default Admin Set\",\"thumbnail_p$
th_ss\":\"/assets/collection-a38b932554788aa578debf2319e8c4ba8a7db06b3ba57ecda1391a548a4b6e0a.png\",\"generic_type_sim\":\"Admin Se$
\",\"human_readable_type_sim\":\"Admin Set\",\"human_readable_type_tesim\":\"Admin Set\"}]"
Backtrace: /opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:206:in `rescue in execute'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:196:in `execute'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:191:in `send_and_receive'
(eval):2:in `post'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:94:in `update'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:113:in `add'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/solr_service.rb:87:in `add'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/indexing.rb:43:in `update_index'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/indexing.rb:65:in `_create_record'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/callbacks.rb:240:in `block in _create_record'
/opt/oars/shared/bundle/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:131:in `run_callbacks'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:206:in `rescue in execute'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:196:in `execute'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:191:in `send_and_receive'
(eval):2:in `post'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:94:in `update'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:113:in `add'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/solr_service.rb:87:in `add'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/indexing.rb:43:in `update_index'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/indexing.rb:65:in `_create_record'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/callbacks.rb:240:in `block in _create_record'
/opt/oars/shared/bundle/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:131:in `run_callbacks'
/opt/oars/shared/bundle/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:827:in `_run_create_callbacks'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/callbacks.rb:240:in `_create_record'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/persistence.rb:172:in `create_or_update'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/callbacks.rb:236:in `block in create_or_update'
/opt/oars/shared/bundle/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:131:in `run_callbacks'
/opt/oars/shared/bundle/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:827:in `_run_save_callbacks'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/callbacks.rb:236:in `create_or_update'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/persistence.rb:33:in `save'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/validations.rb:50:in `save'
/opt/oars/shared/bundle/ruby/2.6.0/gems/hyrax-2.6.0/app/services/hyrax/admin_set_create_service.rb:57:in `create'
/opt/oars/shared/bundle/ruby/2.6.0/gems/hyrax-2.6.0/app/services/hyrax/admin_set_create_service.rb:21:in `create_default_admin_set'
/opt/oars/shared/bundle/ruby/2.6.0/gems/hyrax-2.6.0/app/models/admin_set.rb:59:in `find_or_create_default_admin_set_id'
/opt/oars/shared/bundle/ruby/2.6.0/gems/hyrax-2.6.0/lib/tasks/default_admin_set.rake:5:in `block (3 levels) in <top (required)>'
/opt/oars/shared/bundle/ruby/2.6.0/gems/railties-5.1.7/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/opt/oars/shared/bundle/ruby/2.6.0/gems/railties-5.1.7/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/opt/oars/shared/bundle/ruby/2.6.0/gems/railties-5.1.7/lib/rails/command.rb:46:in `invoke'
/opt/oars/shared/bundle/ruby/2.6.0/gems/railties-5.1.7/lib/rails/commands.rb:16:in `<top (required)>'
bin/rails:9:in `require'
bin/rails:9:in `<main>'
Caused by:
Faraday::ClientError: the server responded with status 400
/opt/oars/shared/bundle/ruby/2.6.0/gems/faraday-0.12.2/lib/faraday/response/raise_error.rb:13:in `on_complete'
/opt/oars/shared/bundle/ruby/2.6.0/gems/faraday-0.12.2/lib/faraday/response.rb:9:in `block in call'
/opt/oars/shared/bundle/ruby/2.6.0/gems/faraday-0.12.2/lib/faraday/response.rb:61:in `on_complete'
/opt/oars/shared/bundle/ruby/2.6.0/gems/faraday-0.12.2/lib/faraday/response.rb:8:in `call'
/opt/oars/shared/bundle/ruby/2.6.0/gems/faraday-0.12.2/lib/faraday/rack_builder.rb:141:in `build_response'
/opt/oars/shared/bundle/ruby/2.6.0/gems/faraday-0.12.2/lib/faraday/connection.rb:386:in `run_request'
/opt/oars/shared/bundle/ruby/2.6.0/gems/faraday-0.12.2/lib/faraday/connection.rb:186:in `post'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:197:in `execute'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:191:in `send_and_receive'
(eval):2:in `post'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:94:in `update'
/opt/oars/shared/bundle/ruby/2.6.0/gems/rsolr-2.2.1/lib/rsolr/client.rb:113:in `add'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/solr_service.rb:87:in `add'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/indexing.rb:43:in `update_index'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/indexing.rb:65:in `_create_record'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/callbacks.rb:240:in `block in _create_record'
/opt/oars/shared/bundle/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:131:in `run_callbacks'
/opt/oars/shared/bundle/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:827:in `_run_create_callbacks'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/callbacks.rb:240:in `_create_record'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/persistence.rb:172:in `create_or_update'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/callbacks.rb:236:in `block in create_or_update'
/opt/oars/shared/bundle/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:131:in `run_callbacks'
/opt/oars/shared/bundle/ruby/2.6.0/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:827:in `_run_save_callbacks'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/callbacks.rb:236:in `create_or_update'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/persistence.rb:33:in `save'
/opt/oars/shared/bundle/ruby/2.6.0/gems/active-fedora-11.5.4/lib/active_fedora/validations.rb:50:in `save'
/opt/oars/shared/bundle/ruby/2.6.0/gems/hyrax-2.6.0/app/services/hyrax/admin_set_create_service.rb:57:in `create'
/opt/oars/shared/bundle/ruby/2.6.0/gems/hyrax-2.6.0/app/services/hyrax/admin_set_create_service.rb:21:in `create_default_admin_set'
/opt/oars/shared/bundle/ruby/2.6.0/gems/hyrax-2.6.0/app/models/admin_set.rb:59:in `find_or_create_default_admin_set_id'
/opt/oars/shared/bundle/ruby/2.6.0/gems/hyrax-2.6.0/lib/tasks/default_admin_set.rake:5:in `block (3 levels) in <top (required)>'
/opt/oars/shared/bundle/ruby/2.6.0/gems/railties-5.1.7/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/opt/oars/shared/bundle/ruby/2.6.0/gems/railties-5.1.7/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/opt/oars/shared/bundle/ruby/2.6.0/gems/railties-5.1.7/lib/rails/command.rb:46:in `invoke'
/opt/oars/shared/bundle/ruby/2.6.0/gems/railties-5.1.7/lib/rails/commands.rb:16:in `<top (required)>'
bin/rails:9:in `require'
bin/rails:9:in `<main>'
Tasks: TOP => hyrax:default_admin_set:create
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment