Timeout when Connecting to Cloud Storage Bucket from VM Instance

1,900 views
Skip to first unread message

Sergio Banguero

unread,
Nov 9, 2016, 2:53:59 PM11/9/16
to gce-discussion
Hi

I cant connect to a GS Bucket from a VM instance (Linux or Windows) in GCE.

When I run the gsutil command to copy or even to list the GS files using the command:

gsutil ls gs://%bucket-name


I get a message that says:

INFO 1109 %DATE% util.py] Retrying request, attempt #1....
INFO 1109 %DATE% util.py] Retrying request, attempt #2...
... 
Until it times out

What am I missing?
I am able to see the bucket from the web interface and even upload files to it.

Thanks for the help!
Sergio

Carlos (Cloud Platform Support)

unread,
Nov 9, 2016, 5:08:49 PM11/9/16
to gce-dis...@googlegroups.com

Hi Sergio, 

I have seen permissions errors but not timeouts. I would try to isolate the issue as follow:

1- Create a new VM using one of the public images provided by Google, make sure that you keep ¨Allow default access¨ so that the instance has reading permissions on Cloud Storage. Create a new bucket using the WUI. Log in the new VM and run ¨gsutil ls¨. That should list the buckets in your project. Try to display the files in the bucket using ¨gsutil ls gs://bucket-name

2- Are you running a firewall in your VMs that could be blocking connections?

3- Make sure that you have the latest component versions by running ¨gcloud components update¨. 

4- If you allow ICMP traffic, are you able to ¨ping api.google.com¨?

5- Are you able to list the bucket (gsutil ls) but not the content (gsutil ls gs://bucket)? 

6-  Make sure that the tool is correctly authenticated running

a) gcloud auth list (This output should show the account used)

b) gcloud config list (This output should display your project) 


Reply all
Reply to author
Forward
0 new messages