Closed Bug 1720793 Opened 4 years ago Closed 7 months ago

mach bootstrap is failing because chain-of-trust.json 404s

Categories

(Firefox Build System :: Bootstrap Configuration, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1908324

People

(Reporter: evilpies, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Running mach bootstrap fails with

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Jrck4zWnTGO67Fig1fja1A/artifacts/public/chain-of-trust.json

  File "/home/tom/projects/mozilla/python/mozbuild/mozbuild/artifact_commands.py", line 476, in artifact_toolchain
    record = ArtifactRecord(task_id, artifact_name)
  File "/home/tom/projects/mozilla/python/mozbuild/mozbuild/artifact_commands.py", line 337, in __init__
    cot.raise_for_status()
  File "/home/tom/projects/mozilla/third_party/python/requests/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)

after doing some other work before.

Aryx: the task has still to run: https://firefox-ci-tc.services.mozilla.com/tasks/Jrck4zWnTGO67Fig1fja1A

This is a direct consequence of bug 1653050, and there's not much we can do, short of taskcluster providing a way to get older tasks for a given index.

Regressed by: 1653050
Has Regression Range: --- → yes

I updated to 2dd0d0b26390 and bootstrapping is working now.

Thanks for the report!
Unsure what the ideal solution is here - the new revision depends on artifacts built from that new revision, so there's going to be a window of unavailable artifacts either way.
However, the error message here can be improved to include the workarounds:

  • Wait a bit (an hour, tops, IIRC) then try to bootstrap.
  • Check out an older revision and bootstrap.
Priority: -- → P5

The problem is "an older revision" might be really old, because this will happen when a toolchain is rebuilt (with the same index) for some reason (like docker images being rebuilt), and that's when it's really a problem (because in the more normal case, it would only happen for people who check out autoland).

Status: NEW → RESOLVED
Closed: 7 months ago
Duplicate of bug: 1908324
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.