Skip to content

Instantly share code, notes, and snippets.

@hardyoyo
Created March 29, 2018 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hardyoyo/6de9f994c6e67ad0171aece1c312d41b to your computer and use it in GitHub Desktop.
Save hardyoyo/6de9f994c6e67ad0171aece1c312d41b to your computer and use it in GitHub Desktop.
Failure of the final task in the first_deploy role in the ansible-samveral collection of roles
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "RAILS_ENV=production bundle exec rake hyrax:default_admin_set:create", "delta": "0:00:15.960132", "end": "2018-03-29 15:59:33.357757", "msg": "non-zero return code", "rc": 1, "start": "2018-03-29 15:59:17.397625", "stderr": "rake aborted!\nLdp::NotFound: <html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=ISO-8859-1\"/>\n<title>Error 404 </title>\n</head>\n<body>\n<h2>HTTP ERROR: 404</h2>\n<p>Problem accessing /fedora/rest/prod. Reason:\n<pre> Not Found</pre></p>\n<hr />\n</body>\n</html>\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:119:in `block in check_for_errors'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:117:in `tap'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:117:in `check_for_errors'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:96:in `block in put'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:88:in `put'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/caching_connection.rb:24:in `put'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/initializing_connection.rb:61:in `rescue in init_base_path'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/initializing_connection.rb:54:in `init_base_path'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/initializing_connection.rb:41:in `put'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/resource.rb:84:in `create'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/resource/rdf_source.rb:20:in `create'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:180:in `_create_record'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/indexing.rb:64:in `_create_record'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:240:in `block in _create_record'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:131:in `run_callbacks'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:827:in `_run_create_callbacks'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:240:in `_create_record'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:172:in `create_or_update'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:236:in `block in create_or_update'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:131:in `run_callbacks'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:827:in `_run_save_callbacks'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:236:in `create_or_update'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:33:in `save'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/validations.rb:50:in `save'\n/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/services/hyrax/admin_set_create_service.rb:57:in `create'\n/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/services/hyrax/admin_set_create_service.rb:21:in `create_default_admin_set'\n/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/models/admin_set.rb:59:in `find_or_create_default_admin_set_id'\n/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/lib/tasks/default_admin_set.rake:5:in `block (3 levels) in <top (required)>'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'\n/usr/local/bin/bundle:30:in `block in <main>'\n/usr/local/bin/bundle:22:in `<main>'\n\nCaused by:\nLdp::NotFound: \n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:119:in `block in check_for_errors'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:117:in `tap'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:117:in `check_for_errors'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:25:in `block in head'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:17:in `head'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/initializing_connection.rb:56:in `init_base_path'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/initializing_connection.rb:41:in `put'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/resource.rb:84:in `create'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/resource/rdf_source.rb:20:in `create'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:180:in `_create_record'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/indexing.rb:64:in `_create_record'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:240:in `block in _create_record'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:131:in `run_callbacks'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:827:in `_run_create_callbacks'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:240:in `_create_record'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:172:in `create_or_update'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:236:in `block in create_or_update'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:131:in `run_callbacks'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:827:in `_run_save_callbacks'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:236:in `create_or_update'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:33:in `save'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/validations.rb:50:in `save'\n/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/services/hyrax/admin_set_create_service.rb:57:in `create'\n/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/services/hyrax/admin_set_create_service.rb:21:in `create_default_admin_set'\n/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/models/admin_set.rb:59:in `find_or_create_default_admin_set_id'\n/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/lib/tasks/default_admin_set.rake:5:in `block (3 levels) in <top (required)>'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'\n/usr/local/bin/bundle:30:in `block in <main>'\n/usr/local/bin/bundle:22:in `<main>'\nTasks: TOP => hyrax:default_admin_set:create\n(See full trace by running task with --trace)", "stderr_lines": ["rake aborted!", "Ldp::NotFound: <html>", "<head>", "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=ISO-8859-1\"/>", "<title>Error 404 </title>", "</head>", "<body>", "<h2>HTTP ERROR: 404</h2>", "<p>Problem accessing /fedora/rest/prod. Reason:", "<pre> Not Found</pre></p>", "<hr />", "</body>", "</html>", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:119:in `block in check_for_errors'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:117:in `tap'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:117:in `check_for_errors'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:96:in `block in put'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:88:in `put'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/caching_connection.rb:24:in `put'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/initializing_connection.rb:61:in `rescue in init_base_path'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/initializing_connection.rb:54:in `init_base_path'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/initializing_connection.rb:41:in `put'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/resource.rb:84:in `create'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/resource/rdf_source.rb:20:in `create'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:180:in `_create_record'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/indexing.rb:64:in `_create_record'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:240:in `block in _create_record'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:131:in `run_callbacks'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:827:in `_run_create_callbacks'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:240:in `_create_record'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:172:in `create_or_update'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:236:in `block in create_or_update'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:131:in `run_callbacks'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:827:in `_run_save_callbacks'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:236:in `create_or_update'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:33:in `save'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/validations.rb:50:in `save'", "/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/services/hyrax/admin_set_create_service.rb:57:in `create'", "/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/services/hyrax/admin_set_create_service.rb:21:in `create_default_admin_set'", "/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/models/admin_set.rb:59:in `find_or_create_default_admin_set_id'", "/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/lib/tasks/default_admin_set.rake:5:in `block (3 levels) in <top (required)>'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'", "/usr/local/bin/bundle:30:in `block in <main>'", "/usr/local/bin/bundle:22:in `<main>'", "", "Caused by:", "Ldp::NotFound: ", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:119:in `block in check_for_errors'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:117:in `tap'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:117:in `check_for_errors'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:25:in `block in head'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:17:in `head'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/initializing_connection.rb:56:in `init_base_path'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/initializing_connection.rb:41:in `put'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/resource.rb:84:in `create'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/resource/rdf_source.rb:20:in `create'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:180:in `_create_record'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/indexing.rb:64:in `_create_record'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:240:in `block in _create_record'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:131:in `run_callbacks'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:827:in `_run_create_callbacks'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:240:in `_create_record'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:172:in `create_or_update'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:236:in `block in create_or_update'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:131:in `run_callbacks'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/activesupport-5.1.5/lib/active_support/callbacks.rb:827:in `_run_save_callbacks'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/callbacks.rb:236:in `create_or_update'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/persistence.rb:33:in `save'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/active-fedora-11.5.2/lib/active_fedora/validations.rb:50:in `save'", "/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/services/hyrax/admin_set_create_service.rb:57:in `create'", "/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/services/hyrax/admin_set_create_service.rb:21:in `create_default_admin_set'", "/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/app/models/admin_set.rb:59:in `find_or_create_default_admin_set_id'", "/opt/nurax/shared/bundle/ruby/2.4.0/bundler/gems/hyrax-5dd570b0afb7/lib/tasks/default_admin_set.rake:5:in `block (3 levels) in <top (required)>'", "/opt/nurax/shared/bundle/ruby/2.4.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'", "/usr/local/bin/bundle:30:in `block in <main>'", "/usr/local/bin/bundle:22:in `<main>'", "Tasks: TOP => hyrax:default_admin_set:create", "(See full trace by running task with --trace)"], "stdout": "", "stdout_lines": []}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment