Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Storage access problems

Hi, we use google storage to store the images on our website.

For some time now we have noticed the following error in the logs:

 

[error] 1938060#1938060: *8762569 connect() to [2607:f8b0:400c:c0f::80]:443 failed (101: Network is unreachable) while connecting to upstream

 

Googling around, I found a solution that would force upstream to access google storage using IPV4. This causes errors to stop appearing in the logs, however, at random times and without a defined pattern, some images cannot be accessed.

The solution was:

 

    resolver 8.8.8.8 ipv6=off valid=30s;
    set $empty "";
    proxy_pass https://storage.googleapis.com/[bucket]$empty;

 

The error below is returned:

 

<Error> <Code>NoSuchKey</Code> <Message>The specified key does not exist.</Message> <Details>No such object: [bucket name, removed in post]</Details> </error>

 

However, if you keep trying to reload the page, it loads again. Has anyone ever experienced this?

0 2 1,050
2 REPLIES 2

Hi @mateusrovedaa,

Welcome to the Google Cloud Community!

You can try the following options:

  1. It seems that when reloading the page, you can access it again. Google services are exposed via DNS names that map to a large number of IP addresses that can change over time. Configuring your proxy based on a one-time lookup may lead to failures in connecting to Cloud Storage. You can read more about Proxy Servers here.
  2. You can also get in touch with Google Cloud Support if the above option doesn't work.

Let me know if it helped, thanks!

i am also facing this problem