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

manifest unknown errors during pulls (seemingly after GC) #20131

Closed
nmcostello opened this issue Mar 14, 2024 · 6 comments
Closed

manifest unknown errors during pulls (seemingly after GC) #20131

nmcostello opened this issue Mar 14, 2024 · 6 comments
Assignees

Comments

@nmcostello
Copy link

Problem

We turned GC on over this past weekend after having paused it for a bit due to other issues. When we returned to work this week, we began to see some images fail to pull with manifest or blob unknown errors.

$ podman pull myharbor.com/project/core/image:v3.2.231
WARN[0000] Failed, retrying in 1s ... (1/3). Error: parsing image configuration: fetching blob: blob unknown to registry 
WARN[0002] Failed, retrying in 1s ... (2/3). Error: parsing image configuration: fetching blob: blob unknown to registry 
WARN[0004] Failed, retrying in 1s ... (3/3). Error: parsing image configuration: fetching blob: blob unknown to registry 
Error: parsing image configuration: fetching blob: blob unknown to registry

After doing some debugging I can find the affected blob is: sha256:93f54f...0f. When I dive into the harbor UI this error pops up when I navigate into the previously mentioned artifact.

http status code: 404, body: {"errors":[{"code":"BLOB_UNKNOWN","message":"blob unknown to registry","detail":"sha256:93f54f02b5c84a9d626ad1d34fe8df11f50cde17c237e3c877e0a055b979550f"}]}

I went into the database and ran the query select * from artifact_blob where digest_blob like '%93f54f%', which returns:

id digest_af digest_blob creation_time
6051788 sha256:96e655...52 sha256:93f54f...0f 2024-01-12 22:52:33.087429

Then when I check the path in our S3 bucket, that sha is not found, which explains the blob unknown error.

Questions

  1. Could we go into our old s3 backups and copy the affected files and manually upload them back to the bucket?
  2. What could have caused legitimate blobs to be deleted? Can we prevent this in the future?
@stonezdj
Copy link
Contributor

  1. Yes
  2. Root cause is unknown, maybe related to the S3 storage, is it an AWS S3 or S3 compatible storage?

@nmcostello
Copy link
Author

nmcostello commented Mar 19, 2024

We are using AWS S3 for our blob storage. I am actively looking through our logs to see if there is anything that we can glean from them.

Copy link

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

@github-actions github-actions bot added the Stale label May 19, 2024
Copy link

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
@Vad1mo
Copy link
Member

Vad1mo commented Jun 19, 2024

@nmcostello, can you check if your issue is related to #20547?

@nmcostello
Copy link
Author

nmcostello commented Jun 19, 2024

@Vad1mo The issue appears connected. We observed the same behaviors. I can't confirm or deny that specific error code. We were running v2.7.x at the time.

edit: it happened long enough ago that I don't think we have logs from the event, but let me know if there is anything the team can provide you to help debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Completed
Development

No branches or pull requests

4 participants