Skip to content

Instantly share code, notes, and snippets.

View awead's full-sized avatar
🏠
Working from home

Adam Wead awead

🏠
Working from home
View GitHub Profile
Started POST "/concern/container/6t053f97v/file_sets" for ::1 at 2016-03-29 15:11:30 -0400
Processing by CurationConcerns::FileSetsController#create as JSON
Parameters: {"utf8"=>"✓", "authenticity_token"=>"n/q+5Zkjs0Z0LfUjTrQ0TPfcUEhmwIZ6sMN+kLblbZYk0riqZq4S1AjTnUjctQ482x3t1INNuNTHIEacDRo13w==", "total_upload_size"=>"305754", "relative_path"=>"", "upload_set_id"=>"", "parent_id"=>"6t053f97v", "file_coming_from"=>"local", "terms_of_service"=>"1", "file_set"=>{"files"=>[#<ActionDispatch::Http::UploadedFile:0x007fe71a6ee980 @tempfile=#<Tempfile:/var/folders/yb/pbl7568x7073w02tyghtk3140000gp/T/RackMultipart20160329-74394-ujspjz.jpg>, @original_filename="cat-riding-a-fire-breathing-unicorn-16414-1280x800.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"file_set[files][]\"; filename=\"cat-riding-a-fire-breathing-unicorn-16414-1280x800.jpg\"\r\nContent-Type: image/jpeg\r\n">]}}
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC
describe "#empty?"
subject { Collection.new }
it { is_expected.to be_empty }
end
@awead
awead / Redis error
Last active February 22, 2016 21:49
/usr/lib/ruby/1.8/phusion_passenger/rack/thread_handler_extension.rb:81:in `process_request'
/usr/lib/ruby/1.8/phusion_passenger/request_handler/thread_handler.rb:145:in `accept_and_process_next_request'
/usr/lib/ruby/1.8/phusion_passenger/request_handler/thread_handler.rb:98:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/request_handler.rb:440:in `block (3 levels) in start_threads'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:97:in `block in create_thread_and_abort_on_exception'
2016-02-22 16:23:59 -0500 (29285) GenericFilesController::create rescued Redis::CommandError
ERR unknown command 'script'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:114:in `call'
/usr/lib/ruby/1.8/phusion_passenger/rack/thread_handler_extension.rb:81:in `process_request'
/usr/lib/ruby/1.8/phusion_passenger/request_handler/thread_handler.rb:145:in `accept_and_process_next_request'
/usr/lib/ruby/1.8/phusion_passenger/request_handler/thread_handler.rb:98:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/request_handler.rb:440:in `block (3 levels) in start_threads'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:97:in `block in create_thread_and_abort_on_exception'
2016-02-22 16:23:59 -0500 (29285) GenericFilesController::create rescued Redis::CommandError
ERR unknown command 'script'
/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:114:in `call'
@awead
awead / gist:a71ae6f9d55d84484e17
Created January 28, 2016 18:38
Kaminari error
1) Browse Dashboard lets the user search and display their files
Failure/Error: <% if @response.total_pages > 1 %>
ActionView::Template::Error:
The number of total pages was incalculable. Perhaps you called .per(0)?
# /Users/awead/.gem/ruby/2.2.3/bundler/gems/kaminari-7f7108e12bdd/lib/kaminari/models/page_scope_methods.rb:35:in `rescue in total_pages'
# /Users/awead/.gem/ruby/2.2.3/bundler/gems/kaminari-7f7108e12bdd/lib/kaminari/models/page_scope_methods.rb:24:in `total_pages'
# ./app/views/my/_results_pagination.html.erb:1:in `___sers_awead__rojects__ithub_projecthydra_sufia_app_views_my__results_pagination_html_erb___4430370579119401592_70166645717800'
# /Users/awead/.gem/ruby/2.2.3/gems/actionview-4.2.5.1/lib/action_view/template.rb:145:in `block in render'
# /Users/awead/.gem/ruby/2.2.3/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:166:in `instrument'
Failures:
1) Sufia::HomepageController#index sets marketing text
Failure/Error: (_, @recent_documents) = search_results({ q: '', sort: sort_field, rows: 4 }, search_params_logic)
RuntimeError:
current_ability has not been set on #<Sufia::SearchBuilder:0x007fd03ec91a60>
# /Users/awead/.gem/ruby/2.2.3/gems/blacklight-access_controls-0.2.0/lib/blacklight/access_controls/enforcement.rb:23:in `current_ability'
# /Users/awead/.gem/ruby/2.2.3/bundler/gems/curation_concerns-3c296d2ab94b/app/search_builders/curation_concerns/search_builder.rb:15:in `gated_discovery_filters'
# /Users/awead/.gem/ruby/2.2.3/gems/blacklight-access_controls-0.2.0/lib/blacklight/access_controls/enforcement.rb:63:in `apply_gated_discovery'
@awead
awead / gist:a565e8a80df6353433bb
Created January 7, 2016 03:19
Fedora error in test
E, [2016-01-06T21:18:20.841166 #10612] ERROR -- : GenericFilesController::create rescued Ldp::HttpError
STATUS: 500 javax.jcr.nodetype.ConstraintViolationException: Cannot find a definition for a child named '{}01' on the node at '/prod1/SI/00' with primary type 'nt:folder' and mixin types: [fedora:Pairtree]
at org.modeshape.jcr.AbstractJcrNode.nodeDefinition(AbstractJcrNode.java:2911)
at org.modeshape.jcr.AbstractJcrNode.getDefinition(AbstractJcrNode.java:2835)
at org.modeshape.jcr.AbstractJcrNode.isCheckedOut(AbstractJcrNode.java:3222)
at org.modeshape.jcr.AbstractJcrNode.addChildNode(AbstractJcrNode.java:1131)
at org.modeshape.jcr.AbstractJcrNode.addNode(AbstractJcrNode.java:1072)
at org.modeshape.jcr.AbstractJcrNode.addNode(AbstractJcrNode.java:986)
at org.modeshape.jcr.AbstractJcrNode.addNode(AbstractJcrNode.java:101)
at org.modeshape.jcr.api.JcrTools.findOrCreateNode(JcrTools.java:437)
@awead
awead / gist:2cde5a2c35a24884c816
Created December 4, 2015 21:34
Fedora versions
#!/bin/bash
FCREPO=http://fedoraAdmin:fedoraAdmin@localhost:8983/fedora/rest
FURL="curl --user fedoraAdmin:fedoraAdmin"
# Clear out existing resources
$FURL -X DELETE $FCREPO/sample/
$FURL -X DELETE $FCREPO/sample/fcr:tombstone
# Create container
@awead
awead / gist:875c853e50fd131a96a4
Created December 4, 2015 21:29
Fedora versioning
#!/bin/bash
FCREPO=http://fedoraAdmin:fedoraAdmin@localhost:8983/fedora/rest
FURL="curl --user fedoraAdmin:fedoraAdmin"
# Clear out existing resources
$FURL -X DELETE $FCREPO/sample/
$FURL -X DELETE $FCREPO/sample/fcr:tombstone
# Create container
"committee_member_name_ssim":["Prof. Bing Li",
"Bing Li",
"Bing Li",
"Runze Li",
"Michael Akritas",
"Francesca Chiaromonte",
"Adam Smith"],
"committee_member_email_ssim":["[email protected]",
"[email protected]",
"[email protected]",