actions / upload-artifact

MIT License
3.03k stars 686 forks source link

[bug] sometimes fails to upload chunk due to unexpected response - Bad Request (400) #440

Closed Vincinator closed 10 months ago

Vincinator commented 10 months ago

What happened?

The actions/upload-artifact@v3 sometimes fails to upload a chunk with an unexpected response.

Please find below the error message:

Error: Unexpected response. Unable to upload chunk to https://pipelinesghubeus21.actions.githubusercontent.com/TfcYC3BqMqY8308W0V8xqyq97O0wVKAB4TuvG7qATwa49nDNVh/_apis/resources/Containers/54930782?itemPath=kvm-gardener_persistence_prod_readonly_secureboot-amd64-1266.0-a764ccb0%2Fkvm-gardener_persistence_prod_readonly_secureboot-amd64-1266.0-a764ccb0.tar.gz
##### Begin Diagnostic HTTP information #####
Status Code: 400
Status Message: Bad Request
Header Information: {
  "content-type": "application/json; charset=utf-8",
  "date": "Mon, 18 Sep 2023 06:16:44 GMT",
  "server": "Kestrel",
  "cache-control": "no-store,no-cache",
  "pragma": "no-cache",
  "transfer-encoding": "chunked",
  "strict-transport-security": "max-age=2592000",
  "x-tfs-processid": "7236f70b-57a8-4372-bed8-b87e643b11e2",
  "activityid": "9d47ec70-0ba1-4e8b-8cdb-2171c0316fd7",
  "x-tfs-session": "9d47ec70-0ba1-4e8b-8cdb-2171c0316fd7",
  "x-vss-e2eid": "9d47ec70-0ba1-4e8b-8cdb-2171c0316fd7",
  "x-vss-senderdeploymentid": "193695a0-0dcd-ade4-f810-b10ad24a9829",
  "x-frame-options": "SAMEORIGIN"
}
###### End Diagnostic HTTP information ######

What did you expect to happen?

If the upload fails, we would expect a more details error message helping us to investigate the issue.

How can we reproduce it?

Example run: https://github.com/gardenlinux/gardenlinux/actions/runs/6218762909

GitHub Action definition (call to upload-artifact):
https://github.com/gardenlinux/gardenlinux/blob/14d93b75ef5e3f1e6cff0b86b9b9bfe2f889abcf/.github/workflows/build.yml#L207

Anything else we need to know?

No response

What version of the action are you using?

actions/upload-artifact@v3

What are your runner environments?

linux

Are you on GitHub Enterprise Server? If so, what version?

No response

Vincinator commented 10 months ago

Issue resolved. This was caused due to multiple jobs trying to upload an artifact with the same name.