{"action":"created","issue":{"url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/101","labels_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/101/comments","events_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/101/events","html_url":"https://github.com/psu-stewardship/scholarsphere/issues/101","id":65967634,"number":101,"title":"Uploading a folder got errors","user":{"login":"cam156","id":1599081,"avatar_url":"https://avatars.githubusercontent.com/u/1599081?v=3","gravatar_id":"","url":"https://api.github.com/users/cam156","html_url":"https://github.com/cam156","followers_url":"https://api.github.com/users/cam156/followers","following_url":"https://api.github.com/users/cam156/following{/other_user}","gists_url":"https://api.github.com/users/cam156/gists{/gist_id}","starred_url":"https://api.github.com/users/cam156/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cam156/subscriptions","organizations_url":"https://api.github.com/users/cam156/orgs","repos_url":"https://api.github.com/users/cam156/repos","events_url":"https://api.github.com/users/cam156/events{/privacy}","received_events_url":"https://api.github.com/users/cam156/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/psu-stewardship/scholarsphere/labels/High","name":"High","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/psu-stewardship/scholarsphere/milestones/1","html_url":"https://github.com/psu-stewardship/scholarsphere/milestones/fedor4","labels_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/milestones/1/labels","id":942059,"number":1,"title":"fedor4","description":null,"creator":{"login":"cam156","id":1599081,"avatar_url":"https://avatars.githubusercontent.com/u/1599081?v=3","gravatar_id":"","url":"https://api.github.com/users/cam156","html_url":"https://github.com/cam156","followers_url":"https://api.github.com/users/cam156/followers","following_url":"https://api.github.com/users/cam156/following{/other_user}","gists_url":"https://api.github.com/users/cam156/gists{/gist_id}","starred_url":"https://api.github.com/users/cam156/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cam156/subscriptions","organizations_url":"https://api.github.com/users/cam156/orgs","repos_url":"https://api.github.com/users/cam156/repos","events_url":"https://api.github.com/users/cam156/events{/privacy}","received_events_url":"https://api.github.com/users/cam156/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":7,"state":"open","created_at":"2015-01-19T15:51:59Z","updated_at":"2015-04-02T17:11:17Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-04-02T16:52:50Z","updated_at":"2015-04-02T18:30:00Z","closed_at":null,"body":"When I upload a folder of smallish files (lots of screen shots) some of the files error.\r\n\r\n![screen shot 2015-04-02 at 12 50 35 pm](https://cloud.githubusercontent.com/assets/1599081/6968736/e9f0886a-d936-11e4-91e8-c56ec547ea35.png)\r\n\r\n2015-04-02 12:48:36 -0400 (18925) GenericFilesController::create rescued Ldp::HttpError\r\n\tSTATUS: 409 Could not remove triple containing predicate http://fedora.info/definitions/v4/repository#primaryType to node /prod/n5/83/xx/16/n583xx16c\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#created to node /prod/n5/83/xx/16/n583xx16c\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#lastModified to node /prod/n5/83/xx/16/n583xx16c\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#mixinTypes to node /prod/n5/83/xx/16/n583xx16c\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#mixinTypes to node /prod/n5/83/xx/16/n583xx16c\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#lastModifiedBy to node /prod/n5/83/xx/16/n583xx16c\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#uuid to node /prod/n5/83/xx/16/n583xx16c\r\nCould not remove triple containing predicat...\r\n /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/ldp-0.2.3/lib/ldp/client/methods.rb:107:in `block in check_for_errors'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/ldp-0.2.3/lib/ldp/client/methods.rb:105:in `tap'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/ldp-0.2.3/lib/ldp/client/methods.rb:105:in `check_for_errors'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/ldp-0.2.3/lib/ldp/client/methods.rb:88:in `put'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/caching_connection.rb:24:in `put'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/ldp-0.2.3/lib/ldp/resource.rb:72:in `create'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/ldp-0.2.3/lib/ldp/resource/rdf_source.rb:19:in `create'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/persistence.rb:151:in `create_record'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/indexing.rb:40:in `create_record'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/callbacks.rb:237:in `block (2 levels) in create_record'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:215:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:215:in `block in halting_and_conditional'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in `run_callbacks'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/callbacks.rb:237:in `block in create_record'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:215:in `block in halting_and_conditional'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:215:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:215:in `block in halting_and_conditional'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in `run_callbacks'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/callbacks.rb:236:in `create_record'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/persistence.rb:144:in `create_or_update'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/persistence.rb:27:in `save'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/validations.rb:50:in `save'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/persistence.rb:112:in `create'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/sufia-models-6.0.0/app/models/batch.rb:28:in `safe_create'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/sufia-models-6.0.0/app/models/batch.rb:16:in `rescue in find_or_create'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/sufia-models-6.0.0/app/models/batch.rb:13:in `find_or_create'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/sufia-6.0.0/app/controllers/concerns/sufia/files_controller_behavior.rb:215:in `process_file'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/sufia-6.0.0/app/controllers/concerns/sufia/files_controller_behavior.rb:88:in `create_from_upload'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/sufia-6.0.0/app/controllers/concerns/sufia/files_controller_behavior.rb:73:in `create'\r\n/opt/heracles/deploy/scholarsphere/releases/20150401151428/app/controllers/concerns/sufia/files_controller/browse_everything.rb:10:in `create'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/sufia-6.0.0/app/controllers/concerns/sufia/files_controller/local_ingest_behavior.rb:9:in `create'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_controller/metal/implicit_render.rb:4:in `send_action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/abstract_controller/base.rb:189:in `process_action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_controller/metal/rendering.rb:10:in `process_action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:282:in `block (2 levels) in halting_and_conditional'\r\n/opt/heracles/deploy/scholarsphere/releases/20150401151428/app/controllers/generic_files_controller.rb:21:in `notify_users_of_permission_changes'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:424:in `block in make_lambda'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:281:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:281:in `block in halting_and_conditional'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:229:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:229:in `block in halting'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:229:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:229:in `block in halting'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in `run_callbacks'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/abstract_controller/callbacks.rb:19:in `process_action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_controller/metal/rescue.rb:29:in `process_action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in `block in instrument'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in `instrument'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activerecord-4.1.9/lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/abstract_controller/base.rb:136:in `process'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionview-4.1.9/lib/action_view/rendering.rb:30:in `process'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_controller/metal.rb:196:in `dispatch'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_controller/metal.rb:232:in `block in action'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:82:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:82:in `dispatch'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:50:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:73:in `block in call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `each'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:685:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.9/lib/rails/engine.rb:514:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `public_send'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `method_missing'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:73:in `block in call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `each'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:685:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/rack/agent_hooks.rb:30:in `traced_call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/rack/browser_monitoring.rb:23:in `traced_call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:35:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/flash.rb:254:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/cookies.rb:562:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activerecord-4.1.9/lib/active_record/query_cache.rb:36:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activerecord-4.1.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-9.0.6/lib/active_fedora/ldp_cache.rb:26:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:82:in `run_callbacks'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.9/lib/rails/rack/logger.rb:38:in `call_app'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.9/lib/rails/rack/logger.rb:20:in `block in call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:26:in `tagged'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:68:in `tagged'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.9/lib/rails/rack/logger.rb:20:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/ssl.rb:24:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.9/lib/rails/engine.rb:514:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.9/lib/rails/application.rb:144:in `call'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `public_send'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `method_missing'\r\n/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.11.1.284/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'\r\n/opt/heracles/deploy/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/passenger-enterprise-server-5.0.4/lib/phusion_passenger/rack/thread_handler_extension.rb:69:in `process_request'\r\n/opt/heracles/deploy/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/passenger-enterprise-server-5.0.4/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'\r\n/opt/heracles/deploy/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/passenger-enterprise-server-5.0.4/lib/phusion_passenger/request_handler/thread_handler.rb:95:in `main_loop'\r\n/opt/heracles/deploy/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/passenger-enterprise-server-5.0.4/lib/phusion_passenger/request_handler.rb:438:in `block (3 levels) in start_threads'\r\n/opt/heracles/deploy/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/passenger-enterprise-server-5.0.4/lib/phusion_passenger/utils.rb:95:in `block in create_thread_and_abort_on_exception'\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/comments/89002637","html_url":"https://github.com/psu-stewardship/scholarsphere/issues/101#issuecomment-89002637","issue_url":"https://api.github.com/repos/psu-stewardship/scholarsphere/issues/101","id":89002637,"user":{"login":"hectorcorrea","id":568286,"avatar_url":"https://avatars.githubusercontent.com/u/568286?v=3","gravatar_id":"","url":"https://api.github.com/users/hectorcorrea","html_url":"https://github.com/hectorcorrea","followers_url":"https://api.github.com/users/hectorcorrea/followers","following_url":"https://api.github.com/users/hectorcorrea/following{/other_user}","gists_url":"https://api.github.com/users/hectorcorrea/gists{/gist_id}","starred_url":"https://api.github.com/users/hectorcorrea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectorcorrea/subscriptions","organizations_url":"https://api.github.com/users/hectorcorrea/orgs","repos_url":"https://api.github.com/users/hectorcorrea/repos","events_url":"https://api.github.com/users/hectorcorrea/events{/privacy}","received_events_url":"https://api.github.com/users/hectorcorrea/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T18:29:59Z","updated_at":"2015-04-02T18:29:59Z","body":"Looking into this I can easily replicate the issue when I upload a Folder with many small files (many small files very likely makes the race condition more likely to happen). \r\n\r\nThe log shows several errors. Below is what I got in a particular instance of this problem:\r\n\r\n```\r\n2015-04-02 13:59:21 -0400 (6982) GenericFilesController::create rescued RuntimeError \r\nCan't call create on an existing resource\r\n\r\n2015-04-02 13:59:21 -0400 (3143) GenericFilesController::create rescued RuntimeError \r\nCan't call create on an existing resource\r\n\r\n2015-04-02 13:59:21 -0400 (4035) GenericFilesController::create rescued RuntimeError \r\nCan't call create on an existing resource\r\n\r\n2015-04-02 13:59:21 -0400 (3156) GenericFilesController::create rescued Ldp::HttpError\r\n  STATUS: 409 Could not remove triple containing predicate http://fedora.info/definitions/v4/repository#primaryType to node /prod/n5/83/z0/50/n583z0508\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#created to node /prod/n5/83/z0/50/n583z0508\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#lastModified to node /prod/n5/83/z0/50/n583z0508\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#mixinTypes to node /prod/n5/83/z0/50/n583z0508\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#mixinTypes to node /prod/n5/83/z0/50/n583z0508\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#lastModifiedBy to node /prod/n5/83/z0/50/n583z0508\r\nCould not remove triple containing predicate http://fedora.info/definitions/v4/repository#uuid to node /prod/n5/83/z0/50/n583z0508\r\nCould not remove triple containing predicat...\r\n```\r\n\r\nThe first three errors are the \"expected\" ones. We tried to create a resource but another thread already created it. I believe this is what gets reported as `ActiveFedora::IllegalOperation` and that the code handles properly. The last error `Ldp::HttpError` is what is not handled and what caused the problem to the bubbled all the way up to the user. \r\n\r\nAt this point I don't know it is safe to ignore this `Ldp::HttpError HTTP 409` by just adding an extra `rescue` clause to the code. Some how that does not seem right. It might be OK but I am not sure yet. \r\n\r\n\r\n"}}