Skip to content

Instantly share code, notes, and snippets.

@awead
Created August 14, 2018 13:49
Show Gist options
  • Save awead/2ff3c8686b22edb97c059ab24c166bab to your computer and use it in GitHub Desktop.
Save awead/2ff3c8686b22edb97c059ab24c166bab to your computer and use it in GitHub Desktop.
Stack trace from Fedora external files migration
[deploy@dce-fedora current]$ RAILS_ENV='production' bundle exec rake scholarsphere:internal_to_external_files
DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <main> at /opt/heracles/deploy/scholarsphere/releases/20180720180339/config/environments/production.rb:51)
This task will create a new version of all the works.
The process will place the content in the /opt/heracles/binaries directory.
Are you sure you want to do this? (y/n)
y
rake aborted!
Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/object/json.rb:34:in `encode'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/object/json.rb:34:in `to_json'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/object/json.rb:34:in `to_json_with_active_support_encoder'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/json/encoding.rb:57:in `to_json'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/json-1.8.6/lib/json/common.rb:223:in `generate'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/json-1.8.6/lib/json/common.rb:223:in `generate'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/json/encoding.rb:101:in `stringify'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/json/encoding.rb:35:in `encode'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/json/encoding.rb:22:in `encode'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/object/json.rb:37:in `to_json_with_active_support_encoder'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/rsolr-2.1.0/lib/rsolr/json.rb:20:in `add'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/rsolr-2.1.0/lib/rsolr/client.rb:103:in `add'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/solr_service.rb:87:in `add'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/indexing.rb:43:in `update_index'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/indexing.rb:72:in `_update_record'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:244:in `block in _update_record'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:117:in `call'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_update_callbacks'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:244:in `_update_record'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:172:in `create_or_update'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:236:in `block in create_or_update'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:117:in `call'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_save_callbacks'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:236:in `create_or_update'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:37:in `save!'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/validations.rb:56:in `save!'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/opt/heracles/deploy/scholarsphere/releases/20180720180339/app/jobs/ingest_file_job.rb:45:in `perform'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activejob-4.2.7.1/lib/active_job/execution.rb:32:in `block in perform_now'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:117:in `call'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/i18n-0.8.1/lib/i18n.rb:257:in `with_locale'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activejob-4.2.7.1/lib/active_job/translation.rb:7:in `block (2 levels) in <module:Translation>'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:441:in `instance_exec'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:342:in `block in simple'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activejob-4.2.7.1/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activejob-4.2.7.1/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activejob-4.2.7.1/lib/active_job/logging.rb:43:in `block in tag_logger'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/tagged_logging.rb:26:in `tagged'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/tagged_logging.rb:68:in `tagged'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activejob-4.2.7.1/lib/active_job/logging.rb:43:in `tag_logger'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activejob-4.2.7.1/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:441:in `instance_exec'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:342:in `block in simple'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activejob-4.2.7.1/lib/active_job/execution.rb:31:in `perform_now'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/activejob-4.2.7.1/lib/active_job/execution.rb:16:in `perform_now'
/opt/heracles/deploy/scholarsphere/releases/20180720180339/app/services/external_files_conversion.rb:38:in `block in convert_file'
/opt/heracles/deploy/scholarsphere/releases/20180720180339/app/services/external_files_conversion.rb:35:in `each'
/opt/heracles/deploy/scholarsphere/releases/20180720180339/app/services/external_files_conversion.rb:35:in `convert_file'
/opt/heracles/deploy/scholarsphere/releases/20180720180339/app/services/external_files_conversion.rb:17:in `block (3 levels) in convert'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/relation/delegation.rb:16:in `each'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/relation/delegation.rb:16:in `each'
/opt/heracles/deploy/scholarsphere/releases/20180720180339/app/services/external_files_conversion.rb:16:in `block (2 levels) in convert'
/opt/heracles/deploy/scholarsphere/releases/20180720180339/app/services/external_files_conversion.rb:15:in `each'
/opt/heracles/deploy/scholarsphere/releases/20180720180339/app/services/external_files_conversion.rb:15:in `block in convert'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/relation/delegation.rb:16:in `each'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/active-fedora-11.5.2/lib/active_fedora/relation/delegation.rb:16:in `each'
/opt/heracles/deploy/scholarsphere/releases/20180720180339/app/services/external_files_conversion.rb:14:in `convert'
/opt/heracles/deploy/scholarsphere/releases/20180720180339/lib/tasks/scholarsphere.rake:237:in `block (2 levels) in <main>'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/opt/heracles/deploy/.rbenv/versions/2.3.3/bin/bundle:22:in `load'
/opt/heracles/deploy/.rbenv/versions/2.3.3/bin/bundle:22:in `<main>'
Tasks: TOP => scholarsphere:internal_to_external_files
(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