question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After reinstalling gam tried to use "gam use project" but receving JWT signature error

See original GitHub issue

Full steps to reproduce the issue:

  1. Deleted old version by rm -rf ~/gam
  2. Installed new by bash <(curl -s -S -L https://git.io/install-gam)
  3. Tried to re-use previosly created project by gam use project

Expected outcome (what are you trying to do?): It will work as expected.

Actual outcome (what errors or bad behavior do you see instead?):

mrpsycho@DESKTOP-L6B9C6M:~/bin/gam$ gam user y.n check serviceaccount
Computer clock status:
 Your system time differs from admin.googleapis.com by less than 1 second   PASS
Service Account Private Key Authentication:
 Authenticating...invalid_grant: Invalid JWT Signature.                     FAIL

ERROR: Invalid private key in oauth2service.json. Please delete the file and then
recreate with "gam create project" or "gam use project"
mrpsycho@DESKTOP-L6B9C6M:~/bin/gam$ gam user y.n@domain.com check serviceaccount
Computer clock status:
 Your system time differs from admin.googleapis.com by less than 1 second   PASS
Service Account Private Key Authentication:
 Authenticating...invalid_grant: Invalid JWT Signature.                     FAIL

ERROR: Invalid private key in oauth2service.json. Please delete the file and then
recreate with "gam create project" or "gam use project"  

gam info domain works as expected.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lonix86commented, Nov 22, 2021

At the moment the only way is to regenerate a new JSON KEY from the project in GCP on the Service account, the key generated by the “create project” command is not working, if you make a diff with the old one you can see that a piece is missing

0reactions
lonix86commented, Nov 22, 2021

thanks to you @jay0lee for your excellent work, GAM for me and a lot of people like me is just fantastic (I speak to you as a Google Partner and Reseller, with thousands of customers)

Read more comments on GitHub >

github_iconTop Results From Across the Web

After reinstalling gam tried to use "gam use project" but ...
After reinstalling gam tried to use "gam use project" but receving JWT signature ... Authenticating...invalid_grant: Invalid JWT Signature.
Read more >
Existing Project Setup - Error 404: Unknown service account
I'm trying to setup GAM on a headless Debian cloud VM to use for some nightly automations. I'm trying to connect via this...
Read more >
JWT (JSON Web Tokens) Errors | Invalid JWT Signature
For Invalid JWT Signature, check if your service account key has expired. Go to your APIs & Services to add a new key...
Read more >
JWT Returns Invalid Signature Error Even When I enter the ...
I used the express-jwt module for the access token authentication and I got the invalid signature error. In my case I used a...
Read more >
Untitled
... milliseconds Call the reporter that you're trying to time, but ignore its ... ,now,could,after,even,because,us,said,good,way,two,should,work,use,through ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found