Bug: Intermittent requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: http://taskcluster/queue/v1/task/aL51zXD1QlWfVEHhXRN09Q for source-test-clang-civet tasks
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2020-08-27 16:16:36+00:00
Resolved: 2020-08-31 06:28:27+00:00

**Filed by:** btara [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer.html#?job_id=314189492&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ZbRoIUapSi-v3KXzI_q1bA/runs/0/artifacts/public/logs/live_backing.log

---

```
[task 2020-08-27T15:05:51.452Z] Replaced 44 tasks by existing_tasks during optimization.
[task 2020-08-27T15:05:51.452Z] writing artifact file `task-graph-0.json`
[task 2020-08-27T15:05:51.453Z] writing artifact file `label-to-taskid-0.json`
[task 2020-08-27T15:05:51.453Z] writing artifact file `to-run-0.json`
[task 2020-08-27T15:05:51.454Z] Creating task with taskId aL51zXD1QlWfVEHhXRN09Q for source-test-clang-civet
[task 2020-08-27T15:05:51.528Z] Client ID task-client/ZbRoIUapSi-v3KXzI_q1bA/0/on/us-east-1/i-07ecca0b2ca6d7bfe/until/1598541924.428 does not have sufficient scopes and is missing the following scopes:
[task 2020-08-27T15:05:51.528Z] 
[task 2020-08-27T15:05:51.528Z] ```
[task 2020-08-27T15:05:51.528Z] queue:get-artifact:project/civet/*
[task 2020-08-27T15:05:51.528Z] ```
[task 2020-08-27T15:05:51.528Z] 
[task 2020-08-27T15:05:51.528Z] This request requires the client to satisfy the following scope expression:
[task 2020-08-27T15:05:51.528Z] 
[task 2020-08-27T15:05:51.528Z] ```
[task 2020-08-27T15:05:51.528Z] {
[task 2020-08-27T15:05:51.528Z]   "AllOf": [
[task 2020-08-27T15:05:51.528Z]     "queue:get-artifact:project/civet/*",
[task 2020-08-27T15:05:51.528Z]     "secrets:get:project/taskcluster/gecko/hgfingerprint",
[task 2020-08-27T15:05:51.528Z]     "secrets:get:project/taskcluster/gecko/hgmointernal",
[task 2020-08-27T15:05:51.528Z]     "project:releng:services/tooltool/api/download/public",
[task 2020-08-27T15:05:51.528Z]     "docker-worker:feature:allowPtrace",
[task 2020-08-27T15:05:51.528Z]     "docker-worker:cache:gecko-level-3-checkouts-v3-826d7cf339abd7b732b6",
[task 2020-08-27T15:05:51.529Z]     "docker-worker:cache:gecko-level-3-tooltool-cache-v3-826d7cf339abd7b732b6",
[task 2020-08-27T15:05:51.529Z]     "queue:route:tc-treeherder.v2.autoland.ad7c35ab2a4097cf1099e7a0cd64c1ce0c99b88b",
[task 2020-08-27T15:05:51.529Z]     "queue:scheduler-id:gecko-level-3",
[task 2020-08-27T15:05:51.529Z]     {
[task 2020-08-27T15:05:51.529Z]       "AnyOf": [
[task 2020-08-27T15:05:51.529Z]         "queue:create-task:highest:gecko-t/t-linux-xlarge-source",
[task 2020-08-27T15:05:51.529Z]         "queue:create-task:very-high:gecko-t/t-linux-xlarge-source",
[task 2020-08-27T15:05:51.529Z]         "queue:create-task:high:gecko-t/t-linux-xlarge-source",
[task 2020-08-27T15:05:51.529Z]         "queue:create-task:medium:gecko-t/t-linux-xlarge-source",
[task 2020-08-27T15:05:51.529Z]         "queue:create-task:low:gecko-t/t-linux-xlarge-source"
[task 2020-08-27T15:05:51.529Z]       ]
[task 2020-08-27T15:05:51.529Z]     }
[task 2020-08-27T15:05:51.529Z]   ]
[task 2020-08-27T15:05:51.529Z] }
[task 2020-08-27T15:05:51.529Z] ```
[task 2020-08-27T15:05:51.529Z] 
[task 2020-08-27T15:05:51.529Z] ---
[task 2020-08-27T15:05:51.529Z] 
[task 2020-08-27T15:05:51.529Z] * method:     createTask
[task 2020-08-27T15:05:51.529Z] * errorCode:  InsufficientScopes
[task 2020-08-27T15:05:51.529Z] * statusCode: 403
[task 2020-08-27T15:05:51.529Z] * time:       2020-08-27T15:05:51.514
[task 2020-08-27T15:05:51.531Z] Traceback (most recent call last):
[task 2020-08-27T15:05:51.531Z]   File "/builds/worker/checkouts/gecko/taskcluster/mach_commands.py", line 247, in action_callback
[task 2020-08-27T15:05:51.531Z]     test=False)
[task 2020-08-27T15:05:51.531Z]   File "/builds/worker/checkouts/gecko/taskcluster/taskgraph/actions/registry.py", line 317, in trigger_action_callback
[task 2020-08-27T15:05:51.531Z]     cb(Parameters(**parameters), graph_config, input, task_group_id, task_id)
[task 2020-08-27T15:05:51.531Z]   File "/builds/worker/checkouts/gecko/taskcluster/taskgraph/actions/add_new_jobs.py", line 66, in add_new_jobs_action
[task 2020-08-27T15:05:51.531Z]     i,
[task 2020-08-27T15:05:51.531Z]   File "/builds/worker/checkouts/gecko/taskcluster/taskgraph/actions/util.py", line 294, in create_tasks
[task 2020-08-27T15:05:51.531Z]     decision_task_id,
[task 2020-08-27T15:05:51.531Z]   File "/builds/worker/checkouts/gecko/taskcluster/taskgraph/create.py", line 104, in create_tasks
[task 2020-08-27T15:05:51.531Z]     f.result()
[task 2020-08-27T15:05:51.531Z]   File "/usr/lib/python3.5/concurrent/futures/_base.py", line 398, in result
[task 2020-08-27T15:05:51.531Z]     return self.__get_result()
[task 2020-08-27T15:05:51.531Z]   File "/usr/lib/python3.5/concurrent/futures/_base.py", line 357, in __get_result
[task 2020-08-27T15:05:51.531Z]     raise self._exception
[task 2020-08-27T15:05:51.531Z]   File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
[task 2020-08-27T15:05:51.531Z]     result = self.fn(*self.args, **self.kwargs)
[task 2020-08-27T15:05:51.531Z]   File "/builds/worker/checkouts/gecko/taskcluster/taskgraph/create.py", line 130, in create_task
[task 2020-08-27T15:05:51.531Z]     res.raise_for_status()
[task 2020-08-27T15:05:51.531Z]   File "/builds/worker/checkouts/gecko/third_party/python/requests/requests/models.py", line 840, in raise_for_status
[task 2020-08-27T15:05:51.531Z]     raise HTTPError(http_error_msg, response=self)
[task 2020-08-27T15:05:51.531Z] requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: http://taskcluster/queue/v1/task/aL51zXD1QlWfVEHhXRN09Q
[taskcluster 2020-08-27 15:05:53.723Z] === Task Finished ===
[taskcluster 2020-08-27 15:05:53.899Z] Artifact "public/docker-contexts" not found at "/builds/worker/checkouts/gecko/docker-contexts"
[taskcluster 2020-08-27 15:05:55.178Z] Unsuccessful task run with exit code: 1 completed in 30.614 seconds
```