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

could not find default credentials #23

Open
skorphil opened this issue Aug 25, 2023 · 3 comments
Open

could not find default credentials #23

skorphil opened this issue Aug 25, 2023 · 3 comments

Comments

@skorphil
Copy link

How to specify path to application_default_credentials.json ? I just downloaded em to my PC, but still got error when launching docker image with gcsproxy

@skorphil
Copy link
Author

Well i mounted em PC:~/.config/gcloud -> Container:/root/.config/gcloud

But seems like proxy not working. i got an error

This site can’t be reached127.0.0.1 refused to connect.
Try:

Checking the connection
[Checking the proxy and the firewall](chrome-error://chromewebdata/#buttons)
ERR_CONNECTION_REFUSED 

while trying to open file http://127.0.0.1:8080/bucket/pathtofile

@daichirata
Copy link
Owner

Have you tried setting up Application Default Credentials?

https://cloud.google.com/docs/authentication/provide-credentials-adc

@skorphil
Copy link
Author

Have you tried setting up Application Default Credentials?

https://cloud.google.com/docs/authentication/provide-credentials-adc

Yes, I generated .json with a command gcloud auth application-default login
Then I mount ~/.config/gcloud to /root/.config/gcloud in docker container.
Docker container has launched, but I got error in browser ERR_CONNECTION_REFUSED either I connect to localhost:8080 or any existing path to file i.e. http://127.0.0.1:8080/bucket/file

IDK how can I diagnose the problem. var/logs/ in the container does not contain any error logs

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