Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running gcpdiag #76

Open
dheerajd3v opened this issue Jul 18, 2023 · 3 comments
Open

Running gcpdiag #76

dheerajd3v opened this issue Jul 18, 2023 · 3 comments

Comments

@dheerajd3v
Copy link

I am trying to run gcpdiag on my local mac and i used the docker option to download the shell script. I have docker daemon running on my local machine but i am not able to execute any of the commands from the mac terminal.

./gcpdiag lint --project
ERROR: ('invalid_grant: Bad Request', {'error': 'invalid_grant', 'error_description': 'Bad Request'})

@ebenezergraham
Copy link
Collaborator

ebenezergraham commented Jul 18, 2023

Run cat /etc/group | grep docker to make user your user is part of the docker group. Docker is usually expected to be executed with sudo privileges.

If you are present in the group. execute the command below and send the output. Ensure to remove any sensitive details in the error log

./gcpdiag lint --project PROJECT_ID -vv

@dheerajd3v
Copy link
Author

dheerajd3v commented Jul 18, 2023 via email

@ropeck
Copy link
Collaborator

ropeck commented Jul 24, 2023

Hello Dheeraj,
Can you share more about how you are running the command and the error message shown?
If you use a project name that you know doesn't exist, it should give an authentication error from the IAM API endpoint when the command starts. The output would look like this:

$ gcpdiag lint --project foo
WARNING:googleapiclient.http:Encountered 403 Forbidden with reason "PERMISSION_DENIED"
...traceback follows...

Do you see that same error, or something different?

--Rodney

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants