Closed Bug 1736052 Opened 5 years ago Closed 4 years ago

Re-triggering jobs fails with scope exception

Categories

(Release Engineering :: Firefox-CI Administration, defect)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: deian, Unassigned)

Details

I've been getting scope expression errors when I try to cancel and re-trigger jobs. Canceling seems to now work even though I get an error when I click on the cancel button. Retrying, as far as I can tell doesn't.

Example failure:

Retrigger failed with Decision task: K0WWP73ySca5QfF9puJeXA: Error: Client ID mozilla-auth0/google-oauth2|108787989323599130281/treeherder-production-client-Rz2efx does not have sufficient scopes and is missing the following scopes: hooks:trigger-hook:project-gecko/in-tree-action-1-generic/73b81e92a6 This request requires the client to satisfy the following scope expression: hooks:trigger-hook:project-gecko/in-tree-action-1-generic/73b81e92a6

Sorry if I'm missing something obvious

My username: deian

Thanks!

Are you logged in to treeherder? Do you have level 1 commit privs, and have you used those commit privs in the past few months?

Flags: needinfo?(deian)

Yes to all of the above.

As another example, I just tried cancelling this try but got the two dialogs green for okay and red with:

Taskcluster: Client ID mozilla-auth0/google-oauth2|108787989323599130281/treeherder-production-client-KipGhX does not have sufficient scopes and is missing the following scopes: ``` hooks:trigger-hook:project-gecko/in-tree-action-1-generic/73b81e92a6 ``` This request requires the client to satisfy the following scope expression: ``` hooks:trigger-hook:project-gecko/in-tree-action-1-generic/73b81e92a6 ``` --- * method: triggerHook * errorCode: InsufficientScopes * statusCode: 403 * time: 2021-10-30T19:39:09.448Z
Flags: needinfo?(deian)

Ok. I was able to both add-new a task and cancel it on that push, so we've ruled out an issue with that hook and with treeherder, and likely narrowed it down to something with your account.

I'm not able to find you in phonebook: https://people.mozilla.org/s?query=deian&who=contributors

google-oauth2|108787989323599130281 seems like a strange username for an ldap account; you should sign in with the same account that has your level 1 commit privs.

Hm. I think I have an idea of what might be causing the issue.

My ldap account is under deian@cs.ucsd.edu. This email is an alias to deian@eng.ucsd.edu, which is actually the Google login I'm using. My guess is the two are not really associated?

I think you have to log into the same account as your ldap.
If you're able to log into your ldap account email address in taskcluster, please do so.
If you're not able to log into your ldap account because it's an alias, I imagine you need to rename your ldap account to match your real email.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.