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

proxy_cache_revalidate when downloading from jfrog artifactory #55

Open
peterhaaf opened this issue Oct 20, 2020 · 4 comments
Open

proxy_cache_revalidate when downloading from jfrog artifactory #55

peterhaaf opened this issue Oct 20, 2020 · 4 comments
Assignees

Comments

@peterhaaf
Copy link

Hi,

while working with with the new nginx.conf ( with manifest cache), i observed an issue when accessing JFrogs artifactory repo.

When having the nginx parameter proxy_cache_revalidate set to on, i get a 404 error, when trying to access an object a second time ( = when it is expired). So i needed to set this parameter to "off"

Unfortunately I did not know the reason for this, yet. Any idea where to look at ?

Thanx
Peter

@rpardini
Copy link
Owner

Interesting. If you could please post the docker command line (envs and such) for docker-registry-proxy, and also the docker logs for the container while doing the pulls...

@peterhaaf
Copy link
Author

can i send these files to you via email, they contain some data which should not be in public git ?

@rpardini
Copy link
Owner

rpardini commented Dec 2, 2020

@peterhaaf Nope, please redact the secrets and post it here with appropriate markdown, thanks

@tfreiling989
Copy link

We saw an issue with artifactory too like this where we got "unknown blob" errors / 404's when trying to push images with pre-existing layers.
I believe its a bug on their end. As I was able to reproduce this issue without this proxy by running:

curl -X GET -v -H "Authorization: Bearer $TOKEN" ${ARTIFACTORY_REPO}/new-image/blobs/sha256:<sha>
                       
curl -X GET -v -H "Authorization: Bearer $TOKEN" ${ARTIFACTORY_REPO}/source-image/blobs/sha256:<sha>

The first curl would return 404 Not Found for 3-5 minutes and the second curl always worked consistently (302 Found). After 3-5 mins they both returned 302 Found.

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

3 participants