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,053