Skip to content

Instantly share code, notes, and snippets.

View atz's full-sized avatar
:octocat:

Joe Atzberger atz

:octocat:
  • Corelight
  • Columbus, OH
View GitHub Profile
@atz
atz / gist:dfc30d5ab73fd7115f34
Last active August 29, 2015 14:16
error trace
Failures:
1) ApoController create should hit the registration service to register an apo and a collection
Failure/Error: post 'register', example
Errno::ETIMEDOUT:
Operation timed out - connect(2)
# /Users/atz/.rvm/gems/ruby-1.9.3-p547/gems/rest-client-1.6.8/lib/restclient/request.rb:206:in `transmit'
# /Users/atz/.rvm/gems/ruby-1.9.3-p547/gems/rest-client-1.6.8/lib/restclient/request.rb:68:in `execute'
# /Users/atz/.rvm/gems/ruby-1.9.3-p547/gems/rest-client-1.6.8/lib/restclient/request.rb:35:in `execute'
# /Users/atz/.rvm/gems/ruby-1.9.3-p547/gems/rest-client-1.6.8/lib/restclient/resource.rb:51:in `get'
GIT
remote: git://github.com/sul-dlss/osullivan.git
revision: 11a173cfe6998df061ed954c4549b620220b11bc
branch: development
specs:
osullivan (0.0.4.pre.dev)
activesupport (>= 3.2.18)
faraday (~> 0.9.0)
json
@atz
atz / Gemfile.lock
Created January 5, 2015 18:38
dor-workflow-services
PATH
remote: .
specs:
dor-workflow-service (1.7.3)
activesupport (>= 3.2.1, < 4.2.0)
confstruct (~> 0.2.7)
nokogiri (~> 1.6.0)
rest-client (~> 1.6.7)
GEM
@atz
atz / rspec_output.txt
Last active August 29, 2015 14:11
module:Dirty uninitialized constant ActiveModel::AttributeMethods (NameError)
$ rspec
/Users/atz/.rvm/gems/ruby-2.1.2/gems/activemodel-4.0.12/lib/active_model/dirty.rb:90:in `<module:Dirty>': uninitialized constant ActiveModel::AttributeMethods (NameError)
from /Users/atz/.rvm/gems/ruby-2.1.2/gems/activemodel-4.0.12/lib/active_model/dirty.rb:88:in `<module:ActiveModel>'
from /Users/atz/.rvm/gems/ruby-2.1.2/gems/activemodel-4.0.12/lib/active_model/dirty.rb:4:in `<top (required)>'
from /Users/atz/.rvm/gems/ruby-2.1.2/gems/om-1.8.0/lib/om.rb:3:in `require'
from /Users/atz/.rvm/gems/ruby-2.1.2/gems/om-1.8.0/lib/om.rb:3:in `<top (required)>'
from /Users/atz/.rvm/gems/ruby-2.1.2/gems/solrizer-2.2.0/lib/solrizer/xml.rb:2:in `require'
from /Users/atz/.rvm/gems/ruby-2.1.2/gems/solrizer-2.2.0/lib/solrizer/xml.rb:2:in `<top (required)>'
from /Users/atz/.rvm/gems/ruby-2.1.2/gems/solrizer-2.2.0/lib/solrizer.rb:18:in `require'
from /Users/atz/.rvm/gems/ruby-2.1.2/gems/solrizer-2.2.0/lib/solrizer.rb:18:in `block in <top (required)>'
@atz
atz / sorted_requests.txt
Last active August 29, 2015 14:11
rails c test
[4] pry(main)> d.to_solr()
HTTP GET (9.77ms) http://localhost:8983/fedora/objects/druid:fr534yg7199/datastreams/DC?format=xml
Response status Net::HTTPOK (200)
Response body <?xml version="1.0" encoding="UTF-8"?><datastreamProfile xmlns="http://www.fedora.info/definitions/1/0/management/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.fedora.info/definitions/1/0/management/ http://www.fedora.info/definitions/1/0/datastreamProfile.xsd" pid="druid:fr534yg7199" dsID="DC" ><dsLabel>Dublin Core Record for this object</dsLabel><dsVersionID>DC.3</dsVersionID><dsCreateDate>2011-10-30T07:36:53.766Z</dsCreateDate><dsState>A</dsState><dsMIME>text/xml</dsMIME><dsFormatURI>http://www.openarchives.org/OAI/2.0/oai_dc/</dsFormatURI><dsControlGroup>X</dsControlGroup><dsSize>883</dsSize><dsVersionable>true</dsVersionable><dsInfoType></dsInfoType><dsLocation>druid:fr534yg7199+DC+DC.3</dsLocation><dsLocationType></dsLocationType><dsC
@atz
atz / start.ini
Created November 6, 2014 19:08
jetty options
--exec
-Xmx2000m
-XX:+PrintCommandLineFlags
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-XX:PermSize=64M
-XX:MaxPermSize=256M
# Some logging
-Dorg.eclipse.jetty.util.log.IGNORED=true
@atz
atz / druid:wz243gf4151.json
Last active August 29, 2015 14:08
Insane Solr indexing
{
"id": "druid:wz243gf4151",
"system_create_dt": [ "2011-07-05T17:12:18Z" ],
"date": [ "2011-07-05T17:12:18Z",
...
"2013-03-12T15:26:50Z"],
"system_modified_dt": [ "2013-01-15T17:17:31Z"],
"active_fedora_model_s": [ "Dor::Set" ],
"object_profile_display": [...],
"dc_title_t": [ "The Marcus Chambers Collection of the Revs Institute"],
@atz
atz / gist:8bd3d8ebbfb3ce00360e
Created October 18, 2014 00:39
jetty config errors
java.lang.NoSuchFieldException: TYPE
java.lang.NoSuchFieldException: ThreadPool
java.lang.NoSuchFieldException: detailedDump
java.lang.NoSuchFieldException: dumpAfterStart
java.lang.NoSuchFieldException: dumpBeforeStop
java.lang.NoSuchFieldException: gracefulShutdown
java.lang.NoSuchFieldException: handler
java.lang.NoSuchFieldException: host
java.lang.NoSuchFieldException: lowResourceMaxIdleTime
java.lang.NoSuchFieldException: maxIdleTime
@atz
atz / bash
Last active August 29, 2015 14:07
Fedora 3.7.1 ingest error (data exported from 3.6.2)
$ FEDORA_HOME=/Users/atz/repos/argo/jetty/fedora client/bin/fedora-ingest.sh f ../../fedora_conf/data/br481xz7820.xml info:fedora/fedora-system:FOXML-1.1 localhost:8983 fedoraAdmin fedoraAdmin http ingest.log
Error : Caused by: java.lang.RuntimeException: Namespace for prefix 'foxml' has not been declared.
(Last attempted file was ../../fedora_conf/data/br481xz7820.xml)
$ cd ../.. ### to rails root, top git dir. Try again w/ active-fedora rake task
$ rake repo:load foxml=fedora_conf/data/br481xz7820.xml
rake aborted!
RestClient::BadRequest: 400 Bad Request
/Users/atz/.rvm/gems/ruby-1.9.3-p547/gems/rest-client-1.6.8/lib/restclient/abstract_response.rb:48:in `return!'
@atz
atz / gist:6d83f2e36e8ebca75a47
Created September 19, 2014 22:34
rspec output (partial)
Failures:
1) ApoController create should hit the registration service to register an apo and a collection
Failure/Error: post 'register', "title"=>"New APO Title", "agreement"=>"druid:xf765cv5573", "desc_md"=>"MODS", "metadata_source"=>"DOR", "managers"=>"dlss:developers dlss:dpg-staff", "viewers"=>"sdr:viewer-role , dlss:forensics-staff", "collection_radio"=>"","collection_title"=>'col title', "collection_abstract"=>"", "default_object_rights"=>"World", "use"=>"", "copyright"=>"", "cc_license"=>"", "workflow"=>"digitizationWF", "register"=>""
ActiveFedora::ObjectNotFoundError:
Unable to find 'druid:xf765cv5573' in fedora. See logger for details.
# ./config/initializers/dor.rb:5:in `agreement='
# ./app/controllers/apo_controller.rb:62:in `register'
# ./spec/controllers/apo_controller_spec.rb:28:in `block (3 levels) in <top (required)>'