Skip to content

Instantly share code, notes, and snippets.

@acozine
Created February 23, 2016 17:54
Show Gist options
  • Save acozine/8c4179bf2252b99c2ecc to your computer and use it in GitHub Desktop.
Save acozine/8c4179bf2252b99c2ecc to your computer and use it in GitHub Desktop.
Export error
[root@adrlprod12 current]# RAILS_ENV=production bundle exec bin/export-authorities
Loading environment...
Starting export...
Number of records to export:
Agent: 0
Person: 82
Group: 0
Organization: 18
Topic: 197
Exporting Agent objects...
Exporting Person objects...
/opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation/finder_methods.rb:188:in `load_from_fedora': ActiveFedora::ObjectNotFoundError (ActiveFedora::ObjectNotFoundError)
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation/finder_methods.rb:124:in `block (2 levels) in find_each'
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation/finder_methods.rb:122:in `each'
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation/finder_methods.rb:122:in `block in find_each'
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation/finder_methods.rb:161:in `block in find_in_batches'
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation/finder_methods.rb:157:in `loop'
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation/finder_methods.rb:157:in `find_ in_batches'
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation/finder_methods.rb:121:in `find_ each'
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation.rb:59:in `each'
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation.rb:59:in `to_a'
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation.rb:59:in `to_a'
from /opt/alexandria-v2/shared/bundle/ruby/2.3.0/gems/active-fedora-9.9.0/lib/active_fedora/relation/delegation.rb:16:in `each'
from /opt/alexandria-v2/releases/20160219221028/lib/exporter/local_authority_exporter.rb:47:in `block (2 levels) in write_data_to_te mp_file'
from /opt/alexandria-v2/releases/20160219221028/lib/exporter/local_authority_exporter.rb:45:in `each'
from /opt/alexandria-v2/releases/20160219221028/lib/exporter/local_authority_exporter.rb:45:in `block in write_data_to_temp_file'
from /usr/local/lib/ruby/2.3.0/csv.rb:1282:in `open'
from /opt/alexandria-v2/releases/20160219221028/lib/exporter/local_authority_exporter.rb:44:in `write_data_to_temp_file'
from /opt/alexandria-v2/releases/20160219221028/lib/exporter/local_authority_exporter.rb:38:in `export_data'
from /opt/alexandria-v2/releases/20160219221028/lib/exporter/base_exporter.rb:23:in `run'
from bin/export-authorities:8:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment