Statement: Segment Not found exceptions in AEM 6.3
ERROR [Apache Sling Repository Startup Thread] o.a.j.o.s.SegmentNotFoundExceptionListener (SegmentNotFoundExceptionListener.java:48) - Segment not found: 559ffeq2weq71-f9f2-4771-a6d7-334b86623f17ed. SegmentId age=2345ms
o org.apache.jackrabbit.oak.segment.SegmentNotFoundException: Segment 559f43fe71-f9f2-4771-a6d7-334b866234f17ed not found
ERROR [Apache Sling Repository Startup Thread]
o org.apache.jackrabbit.oak.segment.SegmentNotFoundException: Segment 559ffe7112-f9f2-4771-a6d7-334b866f1127ed not found
at org.apache.jackrabbit.oak.segment.file.FileStore$8.call(FileStore.java:6022)
at org.apache.jackrabbit.oak.segment.file.FileStore$8.call(FileStore.java:5342)
Solution:
- Download the oak-run-1.x.x.jar version matching with your running instance.
- Stop the instance and navigate to the path of the downloaded jar file
- Preform the consistency check with below command java -jar oak-run-1.6.x.x.jar check /path/to/crx- quickstart/repository/segmentstore
- It will traverse backward to find the good state of the segments.
- Revert the repository to this revision by editing ./crx-quickstart/repository/segmentstore/journal.log and Remove all lines after the line containing the latest good revision.
- Delete all ./crx-quickstart/repository/segmentstore/*.bak files.
- Run checkpoint clean-up to remove orphaned checkpoints: java -jar oak-run-1.6.x.x.jar checkpoints /path/to/crx- quickstart/repository/segmentstore rm-unreferenced
- Finally run the compaction command to compact the repository java -Xmx6000m -jar oak-run-1.6.x.x.jar compact /path/to/crx- quickstart/repository/segmentstore
No comments:
Post a Comment
If you have any doubts or questions, please let us know.