cloudfoundry/cloud_controller_ng

[FIPS] CF-StagerError: 170011: Stager error: Digest initialization failed: initialization error

rkoster opened this issue · 1 comments

With the follwing PRs applied:

I'm getting:

cf push cf-env --stack cflinuxfs4 --buildpack ruby_buildpack
Pushing app cf-env to org system / space dev as admin...
Applying manifest file /Users/rubenk/workspace/cf-env/manifest.yml...
Manifest applied
Packaging files to upload...
Uploading files...
 186.20 KiB / 186.20 KiB [=============================================================] 100.00% 2s

Waiting for API to complete processing files...

Staging app and tracing logs...
Unexpected Response
Response Code: 500
Request ID:    58eaa0f9-60a0-4e8f-4576-552bca391abe::e81b4d24-449b-4667-8c61-0aa9d20ef8c0
Code: 0, Title: , Detail: {"errors":[{"detail":"Stager error: Digest initialization failed: initialization error","title":"CF-StagerError","code":170011}]}

WIth CC stack trace:

{
  "errors": [
    {
      "detail": "Stager error: Digest initialization failed: initialization error",
      "title": "CF-StagerError",
      "code": 170011,
      "test_mode_info": {
        "detail": "Stager error: Digest initialization failed: initialization error",
        "title": "CF-StagerError",
        "backtrace": [
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/lib/cloud_controller/diego/stager.rb:36:in `rescue in send_stage_package_request'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/lib/cloud_controller/diego/stager.rb:31:in `send_stage_package_request'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/lib/cloud_controller/diego/stager.rb:9:in `stage'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/app/actions/build_create.rb:87:in `create_and_stage'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/app/controllers/v3/builds_controller.rb:51:in `create'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/abstract_controller/base.rb:228:in `process_action'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_controller/metal/rendering.rb:30:in `process_action'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/abstract_controller/callbacks.rb:42:in `block in process_action'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:106:in `run_callbacks'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/abstract_controller/callbacks.rb:41:in `process_action'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_controller/metal/rescue.rb:22:in `process_action'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:203:in `block in instrument'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/notifications/instrumenter.rb:24:in `instrument'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:203:in `instrument'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:33:in `process_action'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/abstract_controller/base.rb:165:in `process'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionview-6.1.7.6/lib/action_view/rendering.rb:39:in `process'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_controller/metal.rb:190:in `dispatch'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_controller/metal.rb:254:in `dispatch'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/route_set.rb:33:in `serve'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:50:in `block in serve'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:32:in `each'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:32:in `serve'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/route_set.rb:842:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/rack-2.2.8/lib/rack/tempfile_reaper.rb:15:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/http/permissions_policy.rb:22:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/http/content_security_policy.rb:19:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:98:in `run_callbacks'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/callbacks.rb:26:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/rack-2.2.8/lib/rack/runtime.rb:22:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/activesupport-6.1.7.6/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/executor.rb:14:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/rack-2.2.8/lib/rack/sendfile.rb:110:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/rack-2.2.8/lib/rack/urlmap.rb:74:in `block in call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `each'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/middleware/cef_logs.rb:18:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/middleware/request_logs.rb:13:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/middleware/zipkin.rb:22:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/middleware/security_context_setter.rb:41:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/middleware/vcap_request_id.rb:16:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/middleware/cors.rb:49:in `call_app'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/middleware/cors.rb:14:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/cloud_controller_ng/middleware/request_metrics.rb:12:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:244:in `call'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/thin-1.8.2/lib/thin/connection.rb:86:in `block in pre_process'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/thin-1.8.2/lib/thin/connection.rb:84:in `catch'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/thin-1.8.2/lib/thin/connection.rb:84:in `pre_process'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/thin-1.8.2/lib/thin/connection.rb:50:in `block in process'",
          "/var/vcap/data/packages/cloud_controller_ng/2de9ff7be298a52784f0ab031db749f2a7d01ee5/gem_home/ruby/3.2.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:1077:in `block in spawn_threadpool'"
        ]
      }
    }
  ]
}

Fixed by using xxhash64 for temporary paths instead.