I'm having a problem starting up AEM 6.3 instance we haven't used for a while in order to restore some assets backups. It is possible the instance had been shut down improperly due to server sudden shutdown. After attempted startup I'm getting the familiar errors:
08.09.2021 16:33:04.039 *ERROR* [qtp541431543-6780] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
08.09.2021 16:33:04.039 *ERROR* [qtp541431543-6780] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.
After deleting the index folders in repository/index with no improvement I noticed the following startup error:
08.09.2021 12:26:04.967 *ERROR* [FelixStartLevel] ERROR: Bundle '18' Error starting slinginstall:F:\aem6.3\author\crx-quickstart\launchpad\startup\1\org.apache.sling.settings-1.3.8.jar (java.lang.RuntimeException: Unable to read from options data file.)
java.lang.RuntimeException: Unable to read from options data file.
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.StreamCorruptedException: invalid stream header: 00000000
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
... 10 more
My suspicion was an issue with the sling.properties file but modifying or replacing the file did not help. I'm also not able to login to the Felix console /system/console/ to check for any inactive bundles. I also have error with bundle acs-aem-commons-bundle-3.17.0 on startup.
Can you please help me identify possible reason for the failed startup or for the bundle error that might be the reason.
If you are able to access system/console/bundles please check if any of the bundles are in installed state. Was it working earlier and any recent deployment caused this issue?
If not, then I will suggest to go with a fresh install and see if it works or you are still facing the same issue.
@asutosh_jena Thanks again for the reply. I don't believe we've performed any java upgrades on the server where the instance is. When examining closer the error.log on startup separate from the startup logs I noticed the following error as well:
09.09.2021 11:20:36.691 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak-segment-tar [org.apache.jackrabbit.oak.segment.SegmentNode StoreService(619)] The activate method has thrown an exception (java.lang.IllegalStateException: Invalid store version)
java.lang.IllegalStateException: Invalid store version
I then attempted to run consistency check using oak-run-1.6.20 as that should be the correct oak version as it is on development server with the same AEM version, but still got "Invalid Store Version" exception. Same with oak-run-1.6.15 to 21.
Did you try stopping AEM instance and deleting Index files in crx-quickstart folder. and restarting Instance? This might have happened when your instance had shutdown abnormally.
You will be able to find the all the index files under crx-quickstart\repository\index.
@ManuMathew1994 thank you for the response. As mentioned it was the first thing I did but it did not help. The server indeed had been shut down abnormally, thought, after which the problem occurred I believe.