Running gcpdiag
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
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
Hi Ebenezer, Thanks for your reply. That command did not find docker but the very fact that it pulled the docker image for gcpdiag makes me think there is no issue with docker.
Regards Dheeraj
On Tue, Jul 18, 2023 at 5:50 PM Ebenezer Graham @.***> wrote:
Can run cat /etc/group | grep docker to make user you 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
./gcpdiag lint --project PROJECT_ID -vv
— Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/gcpdiag/issues/76#issuecomment-1640108391, or unsubscribe https://github.com/notifications/unsubscribe-auth/APIISVFXDS3U5AD6CJNY7H3XQZ5SBANCNFSM6AAAAAA2N35CDE . You are receiving this because you authored the thread.Message ID: @.***>
-- Dheeraj Panyam Author of Definitive Guide to Modernizing Applications on Google Cloud https://www.amazon.com/Definitive-Guide-Modernizing-Applications-Google-ebook/dp/B09J1HWF8L/ Principal Cloud Architect D3V Technology Solutions https://www.d3vtech.com/ Linkedin https://www.linkedin.com/company/d3vtech/ | Clutch https://clutch.co/profile/d3v-technology-solutions#reviews | Book a Meeting https://calendar.app.google/fkGsfvbXwEN7EX9QA
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