AEM 6.3 (SP2+CFP1+CFP2) Instance is not starting up throwing exceptions

Avatar

Avatar

DeepakJangra

Avatar

DeepakJangra

DeepakJangra

21-09-2018

Hi Experts,

We have AEM 6.3 with SP2+CFP1+CFP2 installed, Few days back some data was migrated using CRX2OAK tool but the system was working perfectly fine. Seems like the server got rebooted without AEM shutdown and when we are starting the AEM server back again, server is not starting properly. I am able to access system/console but crx/de or any other console is not accessible.

Below exception are the exceptions from error.log -

ERROR [FelixStartLevel] c.a.c.d.i.DeserializationFirewallImpl (DeserializationFirewallImpl.java:346) - Unable to load Attach API. Unable to dynamically load deserialization protection agent. This usually happens when running a JRE (instead of a JDK) or a JVM that doesn't provide the Attach API. Please review the AEM Java Deserialization Firewall documentation for how to load the deserialization agent via JVM command line arguments.

ERROR [Apache Sling Repository Startup Thread] o.a.j.o.s.SegmentNotFoundExceptionListener (SegmentNotFoundExceptionListener.java:48) - Segment not found: 559ffe71-f9f2-4771-a6d7-334b866f17ed. SegmentId age=233ms

  • org.apache.jackrabbit.oak.segment.SegmentNotFoundException: Segment 559ffe71-f9f2-4771-a6d7-334b866f17ed not found

at org.apache.sling.jcr.base.AbstractSlingRepositoryManager$4.run(AbstractSlingRepositoryManager.java:455)

ERROR [Apache Sling Repository Startup Thread] c.a.g.r.impl.SlingRepositoryManager (AbstractSlingRepositoryManager.java:499) - start: Uncaught Throwable trying to access Repository, calling stopRepository()

  • org.apache.jackrabbit.oak.segment.SegmentNotFoundException: Segment 559ffe71-f9f2-4771-a6d7-334b866f17ed not found

at org.apache.jackrabbit.oak.segment.file.FileStore$8.call(FileStore.java:602)

at org.apache.jackrabbit.oak.segment.file.FileStore$8.call(FileStore.java:542)

ERROR [qtp3107287-158] o.a.s.engine.impl.SlingHttpContext (SlingHttpContext.java:136) - handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.

Any pointer will be great help, thanks!

View Entire Topic

Avatar

Avatar

vaibhavs7024655

Avatar

vaibhavs7024655

vaibhavs7024655

21-09-2018

DeepakJanga The parameters "d1 -p" is no more a part of the code base of the latest oak run jar.

Below is the set of commands that you can use with AEM 6.3:

1) Download the oak-run-1.6.x.jar version matching the oak version of your instance.

2) Now run the consistency check,

java -jar oak-run-1.6.x.jar check /path/to/crx-quickstart/repository/segmentstore

which will search backwards through the revisions until it finds a consistent on

3) Revert the repository to this revision by editing ./crx-quickstart/repository/segmentstore/journal.log and deleting all lines after the line containing the latest good revision.

4) Remove all ./crx-quickstart/repository/segmentstore/*.bak files.

5) Run checkpoint clean-up to remove orphaned checkpoints: java -jar oak-run-1.6.x.jar checkpoints /path/to/crx-quickstart/repository/segmentstore rm-unreferenced

6) Finally compact the repository: java -Xmx6000m -jar oak-run-1.6.x.jar compact /path/to/crx-quickstart/repository/segmentstore