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

Server Bug: Newer version temporarily marked as outdated due to caching #104

Open
AlexGustafsson opened this issue Jan 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@AlexGustafsson
Copy link
Owner

What happened?

When running a newer version of an image, such as

ghcr.io/alexgustafsson/cupdate:latest@sha256:20fc275bf88734a37d205f817f7d1f15312325d97655a84ff41a4ab8074d6be6

It can be incorrectly assumed to be outdated if there is a cache hit for requesting the latest manifest.

ghcr.io/alexgustafsson/cupdate:latest@sha256:fa7ad0ffd8025949fb3c1ed4283b768d3713aa186bdab0566628d09c3517f843

There's no commonly available mechanism to identify the time a tag was pushed.

Image

What version of Cupdate are you using?

v0.15.0-41-g02ef402

What platform are you using?

None

What version of the platform are you using?

No response

Relevant log output

{"time":"2025-01-26T17:11:53.802324119Z","level":"DEBUG","msg":"HTTP response successfully read from cache","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/manifests/sha256:20fc275bf88734a37d205f817f7d1f15312325d97655a84ff41a4ab8074d6be6","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:53.92854652Z","level":"DEBUG","msg":"HTTP response cache hit","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/manifests/latest","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:53.928604767Z","level":"DEBUG","msg":"HTTP response successfully read from cache","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/manifests/latest","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:53.928986299Z","level":"DEBUG","msg":"Step ran successfully","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","workflow":"Process image","job":"Get OCI information","step":"Get latest reference","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:53.929065361Z","level":"DEBUG","msg":"Running step","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","workflow":"Process image","job":"Get OCI information","step":"Get manifest","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.062774964Z","level":"DEBUG","msg":"HTTP response cache hit","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/manifests/sha256:fa7ad0ffd8025949fb3c1ed4283b768d3713aa186bdab0566628d09c3517f843","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.06284938Z","level":"DEBUG","msg":"HTTP response successfully read from cache","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/manifests/sha256:fa7ad0ffd8025949fb3c1ed4283b768d3713aa186bdab0566628d09c3517f843","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.063162455Z","level":"DEBUG","msg":"Step ran successfully","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","workflow":"Process image","job":"Get OCI information","step":"Get manifest","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.063247437Z","level":"DEBUG","msg":"Running step","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","workflow":"Process image","job":"Get OCI information","step":"Get annotations","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.185982679Z","level":"DEBUG","msg":"HTTP response cache hit","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/manifests/sha256:fa7ad0ffd8025949fb3c1ed4283b768d3713aa186bdab0566628d09c3517f843","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.186045478Z","level":"DEBUG","msg":"HTTP response successfully read from cache","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/manifests/sha256:fa7ad0ffd8025949fb3c1ed4283b768d3713aa186bdab0566628d09c3517f843","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.310417369Z","level":"DEBUG","msg":"HTTP response cache hit","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/manifests/sha256:72a71454463edff224fb250143b11bab3542a78c7c50713187f932af37d18c4f","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.310472792Z","level":"DEBUG","msg":"HTTP response successfully read from cache","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/manifests/sha256:72a71454463edff224fb250143b11bab3542a78c7c50713187f932af37d18c4f","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.435180987Z","level":"DEBUG","msg":"HTTP response cache hit","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/blobs/sha256:0a335e1c7084cae300323ece272a32b84888951170f24bd745f696978c9b2a0a","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.435304988Z","level":"DEBUG","msg":"HTTP response successfully read from cache","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","url":"https://ghcr.io/v2/alexgustafsson/cupdate/blobs/sha256:0a335e1c7084cae300323ece272a32b84888951170f24bd745f696978c9b2a0a","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.435590221Z","level":"DEBUG","msg":"Step ran successfully","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","workflow":"Process image","job":"Get OCI information","step":"Get annotations","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.435675606Z","level":"DEBUG","msg":"Running step","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","workflow":"Process image","job":"Get OCI information","step":"","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
{"time":"2025-01-26T17:11:54.43573276Z","level":"DEBUG","msg":"Step ran successfully","service.version":"v0.15.0-41-g02ef402","service.name":"cupdate","workflow":"Process image","job":"Get OCI information","step":"","traceId":"bb588e6b3f9f33fefd0da945524982f4"}
@AlexGustafsson AlexGustafsson added the bug Something isn't working label Jan 26, 2025
@AlexGustafsson AlexGustafsson changed the title Server Bug: Newer version marked as outdated due to caching Server Bug: Newer version temporarily marked as outdated due to caching Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant