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

berglas initialization failure with -daemon #6

Open
icecrime opened this issue Sep 23, 2020 · 2 comments
Open

berglas initialization failure with -daemon #6

icecrime opened this issue Sep 23, 2020 · 2 comments

Comments

@icecrime
Copy link

I want to use goodbye in daemon mode (therefore without dependency on external storage), however on a clean state startup fails here:

panic: failed to initialize berglas client: failed to create kms client: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

goroutine 1 [running]:
github.com/GoogleCloudPlatform/berglas/pkg/auto.handleError(...)
	/go/pkg/mod/github.com/!google!cloud!platform/[email protected]/pkg/auto/importer.go:76

I worked around the issue by commenting out the github.com/GoogleCloudPlatform/berglas/pkg/auto import.

@ahmetb
Copy link
Owner

ahmetb commented Sep 24, 2020

Hey Arnaud 👋🏼
Where were you running this on?

@icecrime
Copy link
Author

icecrime commented Oct 9, 2020

That was inside a container using the project's Dockerfile. There's nothing fancy in my command line:

docker run -d --restart=always \
    -e CONSUMER_KEY=$API_KEY \
    -e CONSUMER_SECRET=$API_KEY_SECRET \
    -e ACCESS_TOKEN=$ACCESS_TOKEN \
    -e ACCESS_TOKEN_SECRET=$ACCESS_TOKEN_SECRET \
    -e GOODBYE_POLLING_INTERVAL="10m" \
    --name goodbye-agent ahmetb/goodbye -daemon

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

2 participants