data.nemar.org 503: signed S3 HEAD refused on existing objects

Open
#2,656 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
aws, typescript
Domain
backend, cloud

Research direction

Start by checking whether commit 0319bf5b, which changes shared S3 endpoint configuration, affects the signed HEAD failures when it reaches production. Then inspect the Worker’s S3 HEAD request and log the S3 request ID and error code beside the 403 reason; reproducing or diagnosing the cause requires the backend’s AWS credential. Done means identifying why existing objects are refused and confirming a fix against the affected .gz files.

Written by the indexing model from the issue text.

Description

Found by the cf-cost investigation (step S4 of #2633); full findings: https://github.com/nemarOrg/nemar-cli/issues/2636#issuecomment-7362308753

data.nemar.org answers 503 [data] annex delivery unavailable ... plain object HEAD returned HTTP 403 for files that exist. The Worker's own signed S3 HEAD is refused; an anonymous HEAD of the same object answers 200 with the manifest's exact size. This is not data loss.

Measured on 2026-12-02 (production 0.10.67, main 9db9fdda):

  • nm000254 v1.0.0: 63 of 101 probes answered 503. It tracks file type: 63 of 66 .gz files, 0 of 35 .set/.vhdr files. nm000254's remote.log has no chunk=, so the chunk fallback is not involved.
  • The same 503 in a five-minute tail on on003825 (85 of 325 sampled requests), on004587, on006923 and on005810.
  • Intermittent: 79 on003825 paths answered both 503 and 302 within five minutes. 503s came from 25 colos, all one script version.

First diagnostic steps:

  1. Read the S3 error code for one failing key with the Worker's own principal: a signed GET returns XML naming AccessDenied, SignatureDoesNotMatch or RequestTimeTooSkewed; CloudTrail data events show the same. This needs the backend's AWS credential, so it is an owner step.
  2. Check whether 0319bf5b (#2627, shared s3OptionsFromEnv honoring S3_ENDPOINT_URL) changes the behavior: it is on dev, not in production; the next release carries it.
  3. Log the S3 request id (x-amz-request-id) and the error code beside the 403 reason, so the next occurrence can be traced.

The .gz correlation suggests looking at what differs in the signed request for those keys (for example a header the runtime adds or rewrites, such as Accept-Encoding, after signing), but that is a hypothesis to test with step 1.

Dominant language
TypeScript
Stars
0
Forks
1
Avg merge
4h 48m
Merged PRs (30d)
468

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nemarOrg/nemar-cli

All issues in nemarOrg/nemar-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.