June 26, 2025
Try removing the jcr node, we found a git repo with groovy script that does the job.
The Oak version should match with your AEM Oak.
java -jar oak-run-<version>.jar console crx-quickstart/repository/segmentstore
:load https://gist.githubusercontent.com/stillalex/e7067bcb86c89bef66c8/raw/d7a5a9b839c3bb0ae5840252022f871fd38374d3/childCount.groovy
countNodes(session.workingNode, true)Remove the jcr node of one of the existing path in your repo
java -jar oak-run-<version>.jar console crx-quickstart/repository/segmentstore:load https://gist.githubusercontent.com/stillalex/43c49af065e3dd1fd5bf/raw/9e726a59f75b46e7b474f7ac763b0888d5a3f0c3/rmNode.groovy
rmNode(session, "/content/dam/…/jcr:content")
Now start your AEM, and your http://localhost:4502/system/console/repositorycheck, should show inconsistency.
Thanks,
Kind regards,
Kiran Buthpur
