Skip to content

Instantly share code, notes, and snippets.

View jcoyne's full-sized avatar

Justin Coyne jcoyne

  • Stanford University Libraries
  • Minneapolis, MN
View GitHub Profile
Nokogiri::XML::XPath::SyntaxError: ERROR: Undefined namespace prefix: //dc:title
from /var/home/lyberadmin/hydrus/shared/bundle/ruby/2.3.0/gems/nokogiri-1.8.0/lib/nokogiri/
xml/searchable.rb:198:in `evaluate'
from /var/home/lyberadmin/hydrus/shared/bundle/ruby/2.3.0/gems/nokogiri-1.8.0/lib/nokogiri/
xml/searchable.rb:198:in `xpath_impl'
from /var/home/lyberadmin/hydrus/shared/bundle/ruby/2.3.0/gems/nokogiri-1.8.0/lib/nokogiri/
xml/searchable.rb:179:in `xpath_internal'
from /var/home/lyberadmin/hydrus/shared/bundle/ruby/2.3.0/gems/nokogiri-1.8.0/lib/nokogiri/
xml/searchable.rb:154:in `xpath'
from /var/home/lyberadmin/hydrus/shared/bundle/ruby/2.3.0/gems/om-3.1.1/lib/om/xml/document
NoMethodError: undefined method `each' for nil:NilClass
from /var/home/lyberadmin/hydrus/shared/bundle/ruby/2.3.0/gems/active-fedora-6.8.0/lib/acti
ve_fedora/solr_service.rb:61:in `class_from_solr_document'
from /var/home/lyberadmin/hydrus/shared/bundle/ruby/2.3.0/gems/active-fedora-6.8.0/lib/acti
ve_fedora/solr_service.rb:49:in `reify_solr_result'
from /var/home/lyberadmin/hydrus/shared/bundle/ruby/2.3.0/gems/active-fedora-6.8.0/lib/acti
ve_fedora/solr_service.rb:45:in `block in reify_solr_results'
from /var/home/lyberadmin/hydrus/shared/bundle/ruby/2.3.0/gems/active-fedora-6.8.0/lib/acti
ve_fedora/solr_service.rb:45:in `collect'
from /var/home/lyberadmin/hydrus/shared/bundle/ruby/2.3.0/gems/active-fedora-6.8.0/lib/acti
@jcoyne
jcoyne / backtrace.txt
Created June 9, 2017 16:01
Backtrace of fedora error
$ curl http://fcrepo.demo.vpc.hydrainabox.org/rest/f160526a-b7cd-450e-9093-ecd0a42d7219/40/e8/27/3e/40e8273e-1ea8-48ec-916c-e78bc06ba1ea/files/b5ce5a15-4942-45c1-9e47-05b6a8cc0dc1
java.lang.IllegalArgumentException: Error parsing media type 'cannot open `/tmp/40e8273e-1ea8-48ec-916c-e78bc06ba1ea20170608-25523-m6g42x' (No such file or directory)'
at org.glassfish.jersey.message.internal.MediaTypeProvider.fromString(MediaTypeProvider.java:92)
at org.glassfish.jersey.message.internal.MediaTypeProvider.fromString(MediaTypeProvider.java:60)
at javax.ws.rs.core.MediaType.valueOf(MediaType.java:179)
at org.fcrepo.http.api.FedoraLdp.getResource(FedoraLdp.java:250)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
<http://localhost:8984/rest/devel/fk/4q/52/wj/fk4q52wj23> a <http://pcdm.org/models#Object>,
<http://projecthydra.org/works/models#Work>;
<http://purl.org/dc/terms/title> "Kitaĭ";
<http://id.loc.gov/vocabulary/relators/cre> <http://id.loc.gov/authorities/names/n95002268>;
<http://id.loc.gov/vocabulary/relators/pup> "[Moscow?]";
<http://opaquenamespace.org/ns/cco/accessionNumber> "6840s 100 r8";
<http://opaquenamespace.org/ns/contributingInstitution> <http://id.loc.gov/vocabulary/organizations/cusb>;
<http://opaquenamespace.org/ns/localCollectionID> "fk4tx3mb70";
<http://pcdm.org/models#hasRelatedObject> "6840s 100 r8 index";
<http://projecthydra.org/ns/relations#isGovernedBy> <http://localhost:8984/rest/devel/au/th/or/it/authorities/policies/ucsb>;
workers_1 | getaddrinfo: Name or service not known
workers_1 | /usr/local/bundle/gems/redis-3.3.3/lib/redis/connection/ruby.rb:229:in `getaddrinfo'
workers_1 | /usr/local/bundle/gems/redis-3.3.3/lib/redis/connection/ruby.rb:229:in `connect'
workers_1 | /usr/local/bundle/gems/redis-3.3.3/lib/redis/connection/ruby.rb:313:in `connect'
workers_1 | /usr/local/bundle/gems/redis-3.3.3/lib/redis/client.rb:336:in `establish_connection'
workers_1 | /usr/local/bundle/gems/redis-3.3.3/lib/redis/client.rb:101:in `block in connect'
workers_1 | /usr/local/bundle/gems/redis-3.3.3/lib/redis/client.rb:293:in `with_reconnect'
workers_1 | /usr/local/bundle/gems/redis-3.3.3/lib/redis/client.rb:100:in `connect'
workers_1 | /usr/local/bundle/gems/redis-3.3.3/lib/redis/client.rb:364:in `ensure_connected'
workers_1 | /usr/local/bundle/gems/redis-3.3.3/lib/redis/client.rb:221:in `block in process'
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://d10fcd37-ddc8-44a1-a17c-7cfffb41d6d3",
"@type": "sc:Manifest",
"label": "[Click to edit label]",
"metadata": [],
"description": [
{
"@value": "[Click to edit description]",
"@language": "en"
@jcoyne
jcoyne / workflow.md
Last active May 7, 2017 01:29
Workflow Lesson plan for Advanced Hydra Camp
git checkout day3/workflow-start
$ ls config/workflows/
default_workflow.json		mediated_deposit_workflow.json
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://f8f349e1-1cdc-4a99-80e4-7e51701d0dc5",
"@type": "sc:Manifest",
"label": "[Click to edit label]",
"metadata": [],
"description": [
{
"@value": "[Click to edit description]",
"@language": "en"
@jcoyne
jcoyne / mapping.yml
Created March 30, 2017 23:20
Hydra mappings
# For each class of objects in the repository, map from...
# repository representation to object properties
# object properties to repository representation
# object properties to an index representation
# index representation to an HTML show page
# object properties to an HTML form
# HTML form output to object properties
# index search results to an HTML page
GenericWork: