Skip to content

Error on helm init: error executing access token command "/google/google-cloud-sdk/bin/gcloud ": exit status 2 #2277

Closed

Description

@gorozcoh

Hi, helm init fails with error:

Error: error installing: Post https://104.197.49.162/apis/extensions/v1beta1/namespaces/kube-system/deployments: error executing access token command "/google/google-cloud-sdk/bin/gcloud ": exit status 2

Patform: Google Cloud Platform, Cluster version is 1.6.0, Environment is Google Cloud Shell, Helm version is 2.3.1.
After manual tiller installation helm version shows: Error: cannot connect to Tiller.
kubectl version shows:

Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.0", GitCommit:"fff5156092b56e6bd60fff75aad4dc9de6b6ef37", GitTreeState:"clean", BuildDate:"2017-03-28T16:36:33Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.0", GitCommit:"fff5156092b56e6bd60fff75aad4dc9de6b6ef37", GitTreeState:"clean", BuildDate:"2017-03-28T16:24:30Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"linux/amd64"}

Thanks in advance

Gus

Activity

  1. technosophos commented on Apr 17, 2017

    @technosophos
    Member

    Is this a duplicated of #2249?

    It seems that GKE recently switched to expiring tokens. See that issue for details.

  2. jackzampolin commented on Apr 20, 2017

    @jackzampolin
    Contributor

    This is preventing me from upgrading to the bugfix release. I'm unable to connect to tiller.

  3. bacongobbler commented on Apr 25, 2017

    @bacongobbler
    Member

    did you both try the instructions in #2249 (comment) like @technosophos pointed out, or is there something else going on?

  4. jackzampolin commented on Apr 25, 2017

    @jackzampolin
    Contributor

    @bacongobbler I've tried both of those with no success. Haven't really had the time to dig and and get any debugging tho...

  5. Draiken commented on Apr 25, 2017

    @Draiken

    I believe you need to run gcloud container clusters get-credentials <cluster_name> again after setting the env variable or setting.

  6. jackzampolin commented on Apr 25, 2017

    @jackzampolin
    Contributor

    @Draiken 🙈 Oh wow. Thank you for that. Figured I had tried doing that already. Works for me now! 🙊

  7. devops1337 commented on Apr 30, 2017

    @devops1337

    @Draiken's instructions worked, but in my case I had to exit kubectl proxy first before it worked.

  8. bacongobbler commented on Oct 31, 2017

    @bacongobbler
    Member

    closing as resolved.

  9. Davidrjx commented on May 23, 2019

    @Davidrjx

    @Draiken env or setup you referred to resembles the following screenshot, doesn't it?
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions