Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Can not restore AEM instance.

chaud81156861
Level 1
Level 1

Hi guys,

Recently, I usually found an issue with AEM 6.4 instances. Sometimes I can not start the instances because of the error as below:

*ERROR* [qtp1120022051-69] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.

We checked in the host:port/system/console/jmx and found that com.adobe.granite repository didn't appear.

I tried to delete the index folder in repository/ and start again but AEM instance still appear same error.

I tried these steps in below links, but I can not find out any information about latest good revision. So that I can not delete any row in journal.log file.

Fix Inconsistencies in the repository when SegmentNotFound Issue is reported in AEM 6.x

Please tell me is there any way to check and restore the instance again.

In case that if I can not restore it, could you please tell me there is any way how to copy the configuration files and content from the dead instance to the new one.

Thanks,

Any answer is highly appreciated.

1 Accepted Solution
Gaurav-Behl
Correct answer by
Community Advisor
Community Advisor

It is recommended to use the same version of oak:jar as your existing crx's oak version. If you're able to bring it up, then you should be able to create packages to export your content/configs. I'm not aware of any other way to restore it.

View solution in original post

5 Replies
Gaurav-Behl
Community Advisor
Community Advisor

Are you able to start the instance and check if any bundles are not 'Active' and either in 'Installed' or 'Resolved' state? Otherwise you may have to perform the same task via scripts while the server is offline.

chaud81156861
Level 1
Level 1

Hi gauravb41175071

Thank you for your response.

I checked bundles that all of them are activated.

Then I tried to use a higher version of oak run package (oak-run v1.10 for AEM 6.4) to fix Inconsistence again, and found out the last good revision again. I removed some records in journal.log file and run compact command again. Finally the AEM instance can run back.

I have more than ten instances need to restore from this same error. Some instances were retored but they don't save any data or configuration. It look like the new AEM instance but some functions didn't work well. Is there any other way to restore the data and configuration settings of AEM instance?

Gaurav-Behl
Correct answer by
Community Advisor
Community Advisor

It is recommended to use the same version of oak:jar as your existing crx's oak version. If you're able to bring it up, then you should be able to create packages to export your content/configs. I'm not aware of any other way to restore it.

View solution in original post

smacdonald2008
Level 10
Level 10

If you are unable to start with the input given here - I suggest opening a support ticket so they can look into what is happening.

chaud81156861
Level 1
Level 1

Hi gauravb41175071,

Thanks for your response. If I run oak-run 1.8.2 to check good revision. I could not find out the lastest good revision. So I tried with oak-run 1.10 and found it. For some instances lost the data, finally I had to build the new ones. There is no way to restore the data for them.

Thanks for your response smacdonald2008, I found that this error usually happened with AEM instances.