Corrupted docker images in Artifactory Pro

亡梦爱人 提交于 2019-12-24 15:26:14

问题


We use our on-prem Artifactory Pro ver 4.6.1 as a docker registry. Artifactory is configured to store metadata in mysql DB and binaries on the file system. Some binary content was deleted mistakenly by user ( under artifactory/data/filestore ) while trying to resolve space alerts. Among affected artifacts are a few docker images.

Now we get 500 error while pulling images from artifatory due to corrupted layer. I tried to recover artifacts from repository backups. However I get the same error while pulling recovered artifacts as well.

It looks like recovered docker images are using the same binaries as broken ones. Is this true? Any suggestions on how to recover?

Here is log error.

2018-06-02 16:46:53,772 [http-nio-8081-exec-8] [INFO ] (o.j.r.d.v.r.h.DockerV2LocalRepoHandler:90) - Fetching docker blob 'sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4' from repo 'docker-dev-local'
2018-06-02 16:46:53,788 [http-nio-8081-exec-8] [ERROR] (o.a.r.c.e.GlobalExceptionMapper:46) - Binary provider has no content for '96e379fb98bd1b401c6ee52230c11d38251572cf'
org.artifactory.storage.binstore.exceptions.BinaryNotFoundException: Binary provider has no content for '96e379fb98bd1b401c6ee52230c11d38251572cf'

Thanks in advance for any suggestions!

来源:https://stackoverflow.com/questions/50659511/corrupted-docker-images-in-artifactory-pro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!