# Buildkite artifacts upload failure

**URL:** <https://forum.buildkite.community/t/buildkite-artifacts-upload-failure/4337>\
**Category:** Pipelines\
**Created:** [April 7, 2025, 12:12pm UTC](https://forum.buildkite.community/t/buildkite-artifacts-upload-failure/4337 "2025-04-07T12:12:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![iangmaia](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/iangmaia/32/1354_2.png) [@iangmaia](https://forum.buildkite.community/u/iangmaia)\
**Post date:** [April 7, 2025, 12:12pm UTC](https://forum.buildkite.community/t/buildkite-artifacts-upload-failure/4337/1 "2025-04-07T12:12:22Z")

</div>

Hi there,

I had a build job that completed successfully but failed during the artifact upload phase.  
The error occurs when attempting to upload some iOS build artifacts (IPA and dSYM files) to Buildkite’s artifact storage, when it runs `buildkite-agent artifact upload <files>`.

The command starts a multi-part upload and started failing with messages such as:

```auto
2025-04-04 18:49:54 WARN unsuccessful status 501 Not Implemented: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NotImplemented</Code><Message>A header you provided implies functionality that is not implemented</Message><Header>Content-Range</Header><RequestId>[...]</RequestId><HostId>[...]</HostId></Error> (Attempt 1/10 Retrying in 5s)

```

We’ve seen this issue repeat twice last Friday from different CI agents, but haven’t tried it running the same builds again (as the rest of the job was successful).  
Still, I’d appreciate some guidance or ideas on what to do if this issue persists, if this is a known issue, etc.

Thanks in advance,  
Ian

---

<div class="post-metadata">

**Author:** ![Micheal](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/micheal/32/1588_2.png) [@Micheal](https://forum.buildkite.community/u/Micheal)\
**Post date:** [April 7, 2025, 1:52pm UTC](https://forum.buildkite.community/t/buildkite-artifacts-upload-failure/4337/2 "2025-04-07T13:52:41Z")

</div>

Hi @iangmaia Welcome to the community!  
Please can you share the steps you used for that build. Also, has it ever worked during the artifact upload phase and if it did previously, can you let me know if any new configurational changes were made.

---

<div class="post-metadata">

**Author:** ![iangmaia](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/iangmaia/32/1354_2.png) [@iangmaia](https://forum.buildkite.community/u/iangmaia)\
**Post date:** [April 7, 2025, 2:52pm UTC](https://forum.buildkite.community/t/buildkite-artifacts-upload-failure/4337/3 "2025-04-07T14:52:22Z")

</div>

Hi, Michael!

Our pipeline is as simple as:

```auto
steps:
  - label: Build and Upload to TestFlight
    command: .buildkite/build_cmd.sh
    artifact_paths:
      - my_ip_file.ipa
      - '*.dSYM.zip'

```

One major recent change was upgrading the CI machine to use the Buildkite Agent `v3.95.1` – I believe it didn’t use multi-part upload before.

---

<div class="post-metadata">

**Author:** ![Micheal](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/micheal/32/1588_2.png) [@Micheal](https://forum.buildkite.community/u/Micheal)\
**Post date:** [April 7, 2025, 8:50pm UTC](https://forum.buildkite.community/t/buildkite-artifacts-upload-failure/4337/4 "2025-04-07T20:50:35Z")

</div>

Hi @iangmaia can you try using this simple test and see if you are able to get the upload working

```auto
steps:
 - label: "step 1"
   commands:
      - "mkdir file"
      - "touch file/text.txt"
      - "buildkite-agent artifact upload file/text.txt"

```

---

<div class="post-metadata">

**Author:** ![iangmaia](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/iangmaia/32/1354_2.png) [@iangmaia](https://forum.buildkite.community/u/iangmaia)\
**Post date:** [April 9, 2025, 10:19am UTC](https://forum.buildkite.community/t/buildkite-artifacts-upload-failure/4337/5 "2025-04-09T10:19:29Z")

</div>

Hi @Micheal,  
The upload in general does seem to work for smaller files, we have things like test reports being uploaded correctly.

Now we’ve tried to use the env var `BUILDKITE_NO_MULTIPART_ARTIFACT_UPLOAD` to prevent the multipart upload. The artifacts upload then worked fine for the .ipa / .DSYM.zip files I mentioned above, so perhaps there’s indeed an issue with the multipart upload.

---

<div class="post-metadata">

**Author:** ![Micheal](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/micheal/32/1588_2.png) [@Micheal](https://forum.buildkite.community/u/Micheal)\
**Post date:** [April 9, 2025, 5:48pm UTC](https://forum.buildkite.community/t/buildkite-artifacts-upload-failure/4337/6 "2025-04-09T17:48:20Z")

</div>

Hi @iangmaia glad this now works for you. I believe the multipart upload is on by default on at least agent version v3.84.0 and above.

---

<div class="post-metadata">

**Author:** ![iangmaia](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/iangmaia/32/1354_2.png) [@iangmaia](https://forum.buildkite.community/u/iangmaia)\
**Post date:** [April 9, 2025, 8:08pm UTC](https://forum.buildkite.community/t/buildkite-artifacts-upload-failure/4337/7 "2025-04-09T20:08:10Z")

</div>

It does work, but doesn’t it mean that perhaps there is a bug in the default option?

---

<div class="post-metadata">

**Author:** ![Micheal](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/micheal/32/1588_2.png) [@Micheal](https://forum.buildkite.community/u/Micheal)\
**Post date:** [April 9, 2025, 9:31pm UTC](https://forum.buildkite.community/t/buildkite-artifacts-upload-failure/4337/8 "2025-04-09T21:31:32Z")

</div>

Please can you reach out to [support@buildkite.com](mailto:support@buildkite.com) with links to the jobs so we can take a closer look at this for you
