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

Keys sometimes not delivered from Minio #46

Open
almereyda opened this issue Apr 7, 2021 · 0 comments
Open

Keys sometimes not delivered from Minio #46

almereyda opened this issue Apr 7, 2021 · 0 comments

Comments

@almereyda
Copy link

almereyda commented Apr 7, 2021

I am running into a case where I am hosting static webpages with S3 proxy and they don't load completely when revisited, because Minio remembers that the file didn't change since last lookup (by the proxy), and doesn't serve it.

Apr 07 04:05:01 geogale docker-compose[2140543]: caddy_1  | {"level":"error","ts":1617761101.037653,"logger":"http.handlers.s3proxy","msg":"failed to get object","bucket":"libre","key":"gartenkarte.de/images/20130530__georilla__gartenplane.jpg","err":"{id=168tm4dqz} caddy-s3-proxy.convertToCaddyError (errors.go:113): HTTP 304: NotModified: Not Modified\n\tstatus code: 304, request id: 167371266EBAF83A, host id:"}

Interestingly, exactly every second refresh to https://gartenkarte.de works, while every other fails with

Apr 07 04:13:21 geogale docker-compose[2262171]: caddy_1  | {"level":"warn","ts":1617761601.2035916,"logger":"http.handlers.s3proxy","msg":"error when looking for index","bucket":"libre","key":"gartenkarte.de/","err":"NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: 1673719AE2F16B68, host id: "}

The site is configured with

:80 {

  log
  respond /health-check "OK" 200

  route * { # before I had /*, but same effect

    s3proxy {
      region "eu-central-1"
      bucket "libre"
      endpoint "http://10.14.208.2:9000"
      root "gartenkarte.de"
      force_path_style
    }

  }

}

and terminated by Traefik. This is what it looks like from the client:

Bildschirmfoto von 2021-04-07 04-19-41

Bildschirmfoto von 2021-04-07 04-20-02

You can see there's also something funny going on with the favicons, which seem to work when the site isn't.

Would #33 be able to help here in any case, e.g. by deactivating cache?

Note we can already mingle headers with

but no experiments seem to have worked out.

The strange thing here is for me, that exactly every second request fails, tested with multiple clients.

What else can I do to investigate this more thoroughly, and to stabilise delivery?

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

1 participant