gcsproxy icon indicating copy to clipboard operation
gcsproxy copied to clipboard

could not find default credentials

Open skorphil opened this issue 2 years ago • 3 comments

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 avatar Aug 25 '23 14:08 skorphil

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

skorphil avatar Aug 25 '23 15:08 skorphil

Have you tried setting up Application Default Credentials?

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

daichirata avatar Aug 25 '23 18:08 daichirata

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

skorphil avatar Aug 25 '23 18:08 skorphil