payload: {"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/1433","repository_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng","labels_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/1433/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/1433/comments","events_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/1433/events","html_url":"https://github.com/cloudfoundry/cloud_controller_ng/issues/1433","id":492126580,"node_id":"MDU6SXNzdWU0OTIxMjY1ODA=","number":1433,"title":"cf create-buildpack dotnet failed sometimes and return 422 buildpack zipfile is not valid","user":{"login":"zhanggbj","id":4181847,"node_id":"MDQ6VXNlcjQxODE4NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/4181847?v=4","gravatar_id":"","url":"https://api.github.com/users/zhanggbj","html_url":"https://github.com/zhanggbj","followers_url":"https://api.github.com/users/zhanggbj/followers","following_url":"https://api.github.com/users/zhanggbj/following{/other_user}","gists_url":"https://api.github.com/users/zhanggbj/gists{/gist_id}","starred_url":"https://api.github.com/users/zhanggbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhanggbj/subscriptions","organizations_url":"https://api.github.com/users/zhanggbj/orgs","repos_url":"https://api.github.com/users/zhanggbj/repos","events_url":"https://api.github.com/users/zhanggbj/events{/privacy}","received_events_url":"https://api.github.com/users/zhanggbj/received_events","type":"User","site_admin":false},"labels":[{"id":240264792,"node_id":"MDU6TGFiZWwyNDAyNjQ3OTI=","url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/labels/unscheduled","name":"unscheduled","color":"D9D9D9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-09-11T09:39:18Z","updated_at":"2019-09-18T08:04:34Z","closed_at":null,"author_association":"MEMBER","body":"Thanks for submitting an issue to `cloud_controller_ng`. We are always trying to improve! To help us, please fill out the following template.\r\n\r\n## Issue\r\n\r\nThis doesn't happen 100%, usually after 1 successful uploading, others will fail with 422 buildpack zipfile is not valid. \r\n\r\n\r\n## Context\r\n\r\n\r\nWhen I go to CC log, it shows\r\n```\r\n{\"timestamp\":1568193421.7206903,\"message\":\"Completed 200 vcap-request-id: 40ad4f76-46cb-4697-ab9e-2467ed419a5d\",\"log_level\":\"info\",\"source\":\"cc.api\",\"data\":{\"request_guid\":\"40ad4f76-46cb-4697-ab9e-2467ed419a5d\"},\"thread_id\":47061667806960,\"fiber_id\":47061690817440,\"process_id\":6,\"file\":\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/middleware/request_logs.rb\",\"lineno\":24,\"method\":\"call\"}\r\n{\"timestamp\":1568193421.7210639,\"message\":\"blobstore.cp-finish\",\"log_level\":\"info\",\"source\":\"cc.blobstore\",\"data\":{\"request_guid\":\"894a322a-4dc4-439b-9da7-b83fb181f695\",\"destination_key\":\"9dad3ee3-14d7-47e6-92ca-96ece7a2a30b_8efbaca7d0aba2668077b6e4190a0a79a900bf10ae6749f42c259eba3211f25d\",\"duration_seconds\":32.837274565,\"size\":1192108822},\"thread_id\":47061692750960,\"fiber_id\":47061690539020,\"process_id\":6,\"file\":\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/lib/cloud_controller/blobstore/fog/fog_client.rb\",\"lineno\":78,\"method\":\"cp_to_blobstore\"}\r\n{\"timestamp\":1568193421.7239208,\"message\":\"Request failed: 422: {\\\"description\\\"=>\\\"Buildpack zip error: buildpack zipfile is not valid\\\", \\\"error_code\\\"=>\\\"CF-BuildpackZipError\\\", \\\"code\\\"=>390013, \\\"test_mode_info\\\"=>{\\\"description\\\"=>\\\"Buildpack zip error: buildpack zipfile is not valid\\\", \\\"error_code\\\"=>\\\"CF-BuildpackZipError\\\", \\\"backtrace\\\"=>[\\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/lib/cloud_controller/upload_buildpack.rb:74:in `rescue in determine_new_stack'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/lib/cloud_controller/upload_buildpack.rb:70:in `determine_new_stack'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/lib/cloud_controller/upload_buildpack.rb:28:in `upload_buildpack'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/app/controllers/runtime/buildpack_bits_controller.rb:33:in `upload'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/app/controllers/base/base_controller.rb:86:in `dispatch'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/lib/cloud_controller/rest_controller/routes.rb:16:in `block in define_route'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1634:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1634:in `block in compile!'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:992:in `block (3 levels) in route!'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1011:in `route_eval'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:992:in `block (2 levels) in route!'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1040:in `block in process_route'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1038:in `catch'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1038:in `process_route'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:990:in `block in route!'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:989:in `each'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:989:in `route!'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1097:in `block in dispatch!'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1076:in `block in invoke'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1076:in `catch'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1076:in `invoke'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1094:in `dispatch!'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:924:in `block in call!'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1076:in `block in invoke'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1076:in `catch'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1076:in `invoke'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:924:in `call!'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:913:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-protection-2.0.5/lib/rack/protection/xss_header.rb:18:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-protection-2.0.5/lib/rack/protection/path_traversal.rb:16:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-protection-2.0.5/lib/rack/protection/json_csrf.rb:26:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-protection-2.0.5/lib/rack/protection/base.rb:50:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-protection-2.0.5/lib/rack/protection/base.rb:50:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-protection-2.0.5/lib/rack/protection/frame_options.rb:31:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-2.0.7/lib/rack/null_logger.rb:9:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-2.0.7/lib/rack/head.rb:12:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:194:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/sinatra-2.0.5/lib/sinatra/base.rb:1957:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:68:in `block in call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `each'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/middleware/request_logs.rb:22:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/middleware/security_context_setter.rb:19:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/middleware/vcap_request_id.rb:15:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/middleware/cors.rb:49:in `call_app'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/middleware/cors.rb:14:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/middleware/request_metrics.rb:12:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:153:in `call'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:86:in `block in pre_process'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:84:in `catch'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:84:in `pre_process'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:50:in `block in process'\\\", \\\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/gem_home/ruby/2.5.0/gems/eventmachine-1.0.9.1/lib/eventmachine.rb:1067:in `block in spawn_threadpool'\\\"]}}\",\"log_level\":\"info\",\"source\":\"cc.api\",\"data\":{\"request_guid\":\"894a322a-4dc4-439b-9da7-b83fb181f695\"},\"thread_id\":47061692750960,\"fiber_id\":47061690539020,\"process_id\":6,\"file\":\"/var/vcap/packages/.src/523ebc2180cae1e4555359313bbdf35175ba2fc0/cloud_controller_ng/lib/sinatra/vcap.rb\",\"lineno\":44,\"method\":\"block in registered\"}\r\n```\r\n\r\nThere's a cli known issue here https://github.com/cloudfoundry/cli/issues/1544, but the error in CC is also weird.\r\n\r\n## Steps to Reproduce\r\n\r\n```\r\n$ cf version\r\ncf version 6.41.0+dd4c76cdd.2018-11-28\r\n```\r\n```\r\nCF_TRACE=true cf create-buildpack test buildpack_dotnet-core_v2.3-20190609-2145.zip 9999\r\n\r\nPUT /v2/buildpacks/12620daf-cd0c-4133-a37a-86fc87a4349d/bits HTTP/1.1\r\nHost: api.bcfd-vpc-szr-440802.us-south.containers.appdomain.cloud\r\nAccept: application/json\r\nAuthorization: [PRIVATE DATA HIDDEN]\r\nContent-Type: multipart/form-data; boundary=0803e4d9a686869df748781456e4b847611cdac42d1babefd42c37de1007\r\nUser-Agent: cf/6.41.0+dd4c76cdd.2018-11-28 (go1.11.2; amd64 linux)\r\n[multipart/form-data Content Hidden]\r\n\r\n 1.11 GiB / 1.11 GiB [=============================================================================================================================================================================================================] 100.00%\r\n\r\nerror seeking a stream on retry: Put https://api.bcfd-vpc-szr-440802.us-south.containers.appdomain.cloud/v2/buildpacks/12620daf-cd0c-4133-a37a-86fc87a4349d/bits: EOF\r\nFAILED\r\n\r\n## Expected result\r\n\r\n[describe what you would expect to have resulted from this process]\r\n\r\n## Current result\r\n\r\n[describe what you are currently experiencing from this process, and thereby explain the bug]\r\n\r\n[include relevant logs]\r\n\r\n\r\n## Possible Fix\r\n\r\n[not obligatory, but suggest fixes or reasons for the bug]\r\n\r\n## `name of issue` screenshot\r\n\r\n[if relevant, include a screenshot]\r\n"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/comments/532570605","html_url":"https://github.com/cloudfoundry/cloud_controller_ng/issues/1433#issuecomment-532570605","issue_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/1433","id":532570605,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMjU3MDYwNQ==","user":{"login":"zhanggbj","id":4181847,"node_id":"MDQ6VXNlcjQxODE4NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/4181847?v=4","gravatar_id":"","url":"https://api.github.com/users/zhanggbj","html_url":"https://github.com/zhanggbj","followers_url":"https://api.github.com/users/zhanggbj/followers","following_url":"https://api.github.com/users/zhanggbj/following{/other_user}","gists_url":"https://api.github.com/users/zhanggbj/gists{/gist_id}","starred_url":"https://api.github.com/users/zhanggbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhanggbj/subscriptions","organizations_url":"https://api.github.com/users/zhanggbj/orgs","repos_url":"https://api.github.com/users/zhanggbj/repos","events_url":"https://api.github.com/users/zhanggbj/events{/privacy}","received_events_url":"https://api.github.com/users/zhanggbj/received_events","type":"User","site_admin":false},"created_at":"2019-09-18T08:04:34Z","updated_at":"2019-09-18T08:04:34Z","author_association":"MEMBER","body":"Using **cf7** resolved this issue."}}
other: {"actor":{"display_login":"zhanggbj"}}