Bear with me as I step through this.  Perhaps someone can pinpoint exactly
what I mistakenly did.

A need arose to purge old artifacts from our Artifactory.  I wrote a script
to call the /artifactory/api/search/usage?notUsedSince operation to get back
artifacts not downloaded in 2 years. Then the returned uri is parsed out and
DELETEd using the same API.

Next, the GC was configured to run, and did so.  Afterwards, we were having
issues deploying artifacts with a 503.  I took action by giving Artifactory
(as a Windows service) a restart.  Restart failed, with relevant logs point
to:

Caused by: org.artifactory.sapi.common.RepositoryRuntimeException:
org.artifactory.sapi.common.RepositoryRuntimeException:
org.artifactory.jcr.jackrabbit.MissingOrInvalidDataStoreRecordException: No
such record: 'f375d415a40b467e8eb5b865072e9e74618762d0'.

Seeing JackRabbit, I did a re-index.  That didn't work.  Then I restarted
with consistency fix checks on.  This worked! However, a few of our repos
were completely gone.  A look into the request logs doesn't show anything
awry.

*Btw, a point to make is that the first go of the above script was used for
artifacts not used since 3 years and all was well.  This is for Artifactory
2.6.1*

Somewhere/something else I could check?  Anything in the above raise a flag?



--
View this message in context: 
http://forums.jfrog.org/Some-operation-completely-deleted-a-remote-repo-in-Artifactory-tp7580023.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to