Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Cloning AEM Instance from One Server to Another Server

Avatar

Level 4

Dear All,

We have AEM instance on one server with heavy DAM. In order to save time, we would like to clone AEM instance from this server (pre prod) to another server (prod) for example.

Could you please provide some inputs on best practices.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Yes, it will work without any issue. This is called offline backup in AEM.

The important thing to remember that make sure you change correct run mode before you start AEM at the new location.

Read here more about offline Backup and Restore

Offline Backup

You can always do an offline backup. This requires a downtime of AEM, but can be quite efficient in terms of required time compared to an online backup.

In most cases, you will use a filesystem snapshot to create a read-only copy of the storage at that time. To create a offline backup perform these steps:

  • stop the application
  • make a snapshot backup
  • start the application

View solution in original post

13 Replies

Avatar

Level 4

Will it work it i copy whole structure including crx-quickstart, cq jar and license file to another server? Or do i face any issue?

Avatar

Level 10

Read through the links provided here - they explain everything you need to know for this use case.

Avatar

Correct answer by
Community Advisor

Yes, it will work without any issue. This is called offline backup in AEM.

The important thing to remember that make sure you change correct run mode before you start AEM at the new location.

Read here more about offline Backup and Restore

Offline Backup

You can always do an offline backup. This requires a downtime of AEM, but can be quite efficient in terms of required time compared to an online backup.

In most cases, you will use a filesystem snapshot to create a read-only copy of the storage at that time. To create a offline backup perform these steps:

  • stop the application
  • make a snapshot backup
  • start the application

Avatar

Level 4

Thank you yadav,

I took the copy and moved to new server when instance is up. After restart the original server is giving error “authentication service dependencies missing” and cannot login to the server.

Does copying while isntance is up caused the issue? What should i do to resolve? Kindly help.

thanks

Avatar

Community Advisor

Please mention here if you make any other changes to any file to AEM repository after you moved to a new location?

Now try to login via crx/de and then go to http://host:port/system/console and ensure that the status of all bundles is Active, specifically check the status of Apache Sling Authentication Service bundle, it should have an active status.

Another possible reason could be that indexes get corrupted. You can recreate indexes by deleting or renaming /crx-quickstart/repository/version/index folder.

Avatar

Level 4

Hi Yadav,

Thanks for the reply. Am talking about the source instance. Accidentally i copied the source instance without stopping it. And now source instance is giving this error.

Thanks

Madhu

Avatar

Level 4

Also getting below error when i start the server from the new server with offline backup on it.

02.04.2019 09:25:49.395 *INFO* [FelixStartLevel] org.apache.sling.commons.log.logback.internal.Activator LogbackManager initialized at bundle startup

02.04.2019 09:25:49.398 *INFO* [FelixStartLevel] org.apache.sling.commons.log BundleEvent STARTED

02.04.2019 09:25:49.407 *INFO* [FelixStartLevel] org.apache.sling.javax.activation BundleEvent RESOLVED

02.04.2019 09:25:49.422 *INFO* [FelixStartLevel] org.apache.sling.javax.activation BundleEvent STARTING

02.04.2019 09:25:49.424 *INFO* [FelixStartLevel] org.apache.sling.javax.activation BundleEvent STARTED

02.04.2019 09:25:49.425 *INFO* [FelixStartLevel] org.apache.felix.configadmin BundleEvent STARTING

02.04.2019 09:25:49.429 *INFO* [FelixStartLevel] org.apache.felix.configadmin Service [Platform Filesystem Persistence Manager,20, [org.apache.felix.cm.PersistenceManager]] ServiceEvent REGISTERED

02.04.2019 09:25:49.440 *INFO* [FelixStartLevel] org.apache.felix.configadmin Service [org.apache.felix.cm.ConfigurationAdmin,21, [org.osgi.service.cm.ConfigurationAdmin]] ServiceEvent REGISTERED

02.04.2019 09:25:49.441 *INFO* [FelixStartLevel] org.apache.sling.settings Service [org.apache.sling.settings.impl.SlingSettingsServiceImpl,22, [org.osgi.service.cm.ManagedService]] ServiceEvent REGISTERED

02.04.2019 09:25:49.450 *INFO* [FelixStartLevel] org.apache.felix.configadmin BundleEvent STARTED

02.04.2019 09:25:49.458 *INFO* [FelixStartLevel] jcl.over.slf4j BundleEvent RESOLVED

02.04.2019 09:25:49.458 *INFO* [FelixStartLevel] jcl.over.slf4j BundleEvent STARTING

02.04.2019 09:25:49.458 *INFO* [FelixStartLevel] jcl.over.slf4j BundleEvent STARTED

02.04.2019 09:25:49.466 *INFO* [FelixStartLevel] org.apache.sling.installer.factory.configuration BundleEvent RESOLVED

02.04.2019 09:25:49.467 *INFO* [FelixStartLevel] org.apache.sling.installer.factory.configuration BundleEvent STARTING

02.04.2019 09:25:49.468 *INFO* [FelixStartLevel] org.apache.sling.installer.factory.configuration BundleEvent STARTED

02.04.2019 09:25:49.469 *INFO* [FelixStartLevel] org.apache.sling.installer.core BundleEvent STARTING

02.04.2019 09:25:52.480 *ERROR* [CM Configuration Updater (ManagedServiceFactory Update: factoryPid=[org.apache.felix.http])] org.apache.felix.http.jetty Failed to start Connector: ServerConnector@40fc84db{HTTP/1.1,[http/1.1]}{0.0.0.0:4503} (java.net.BindException: Address already in use)

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:433)

at sun.nio.ch.Net.bind(Net.java:425)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:339) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:307) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:235) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyService.startConnector(JettyService.java:695) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyService.initializeHttp(JettyService.java:546) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyService.initializeJetty(JettyService.java:444) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyService.startJetty(JettyService.java:305) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyService.start(JettyService.java:148) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyServiceStarter.<init>(JettyServiceStarter.java:37) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyManagedServiceFactory.updated(JettyManagedServiceFactory.java:68) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)

at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)

at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1232) [org.apache.felix.configadmin:1.9.0.B006]

at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1176) [org.apache.felix.configadmin:1.9.0.B006]

at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) [org.apache.felix.configadmin:1.9.0.B006]

at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) [org.apache.felix.configadmin:1.9.0.B006]

at java.lang.Thread.run(Thread.java:748)

02.04.2019 09:25:52.488 *ERROR* [CM Configuration Updater (ManagedServiceFactory Update: factoryPid=[org.apache.felix.http])] org.apache.felix.http.jetty Jetty stopped (no connectors available)

02.04.2019 09:25:52.488 *ERROR* [CM Configuration Updater (ManagedServiceFactory Update: factoryPid=[org.apache.felix.http])] org.apache.felix.http.jetty Exception while initializing Jetty. (java.lang.NullPointerException)

java.lang.NullPointerException: null

at org.apache.felix.http.jetty.internal.JettyService.initializeJetty(JettyService.java:489) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyService.startJetty(JettyService.java:305) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyService.start(JettyService.java:148) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyServiceStarter.<init>(JettyServiceStarter.java:37) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.http.jetty.internal.JettyManagedServiceFactory.updated(JettyManagedServiceFactory.java:68) [org.apache.felix.http.jetty:4.0.6]

at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)

at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)

at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1232) [org.apache.felix.configadmin:1.9.0.B006]

at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1176) [org.apache.felix.configadmin:1.9.0.B006]

at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) [org.apache.felix.configadmin:1.9.0.B006]

at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) [org.apache.felix.configadmin:1.9.0.B006]

at java.lang.Thread.run(Thread.java:748)

02.04.2019 09:25:59.671 *ERROR* [Apache Sling Repository Startup Thread] com.adobe.granite.repository.impl.SlingRepositoryManager Exception in a SlingRepositoryInitializer, SlingRepository service registration aborted

java.lang.RuntimeException: Failed to set ACL (java.lang.NullPointerException) AclLine ALLOW {paths=[/libs/sling/xss, /libs/cq/xssprotection, /apps/sling/xss, /apps/cq/xssprotection], privileges=[jcr:read]}

at org.apache.sling.jcr.repoinit.impl.AclVisitor.setAcl(AclVisitor.java:63) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.jcr.repoinit.impl.AclVisitor.visitSetAclPrincipal(AclVisitor.java:84) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.repoinit.parser.operations.SetAclPrincipals.accept(SetAclPrincipals.java:53) [org.apache.sling.repoinit.parser:1.2.2]

at org.apache.sling.jcr.repoinit.impl.JcrRepoInitOpsProcessorImpl.apply(JcrRepoInitOpsProcessorImpl.java:54) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.jcr.repoinit.impl.RepositoryInitializer.processRepository(RepositoryInitializer.java:99) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.executeRepositoryInitializers(AbstractSlingRepositoryManager.java:541) [org.apache.sling.jcr.base:3.0.4]

at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.initializeAndRegisterRepositoryService(AbstractSlingRepositoryManager.java:485) [org.apache.sling.jcr.base:3.0.4]

at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.access$300(AbstractSlingRepositoryManager.java:85) [org.apache.sling.jcr.base:3.0.4]

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

Caused by: java.lang.NullPointerException: null

at org.apache.sling.jcr.repoinit.impl.AclUtil.setAcl(AclUtil.java:125) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.jcr.repoinit.impl.AclUtil.setAcl(AclUtil.java:111) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.jcr.repoinit.impl.AclVisitor.setAcl(AclVisitor.java:61) [org.apache.sling.jcr.repoinit:1.1.8]

... 8 common frames omitted

02.04.2019 09:26:05.393 *ERROR* [Thread-60] org.apache.jackrabbit.oak.plugins.index.lucene.BadIndexTracker Could not access the Lucene index at [/oak:index/authorizables]

java.lang.RuntimeException: Error occurred while obtaining InputStream for blobId [c0831e587eb0bdeb01ebebd10a2c61c978fb63137052c83104188a8d6e7a78db#8929]

at org.apache.jackrabbit.oak.plugins.blob.BlobStoreBlob.getNewStream(BlobStoreBlob.java:49) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

at org.apache.jackrabbit.oak.segment.SegmentBlob.getNewStream(SegmentBlob.java:248) [org.apache.jackrabbit.oak-segment-tar:1.8.9]

at org.apache.jackrabbit.oak.segment.SegmentBlob.getNewStream(SegmentBlob.java:85) [org.apache.jackrabbit.oak-segment-tar:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.OakStreamingIndexFile.setupInputStream(OakStreamingIndexFile.java:138) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.OakStreamingIndexFile.readBytes(OakStreamingIndexFile.java:234) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.OakIndexInput.readBytes(OakIndexInput.java:65) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.lucene.store.DataOutput.copyBytes(DataOutput.java:254) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.lucene.store.Directory.copy(Directory.java:186) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory.copyFilesToLocal(CopyOnReadDirectory.java:202) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory.prefetchIndexFiles(CopyOnReadDirectory.java:173) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory.<init>(CopyOnReadDirectory.java:84) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier.wrapForRead(IndexCopier.java:122) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.reader.DefaultIndexReaderFactory.createReader(DefaultIndexReaderFactory.java:116) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.reader.DefaultIndexReaderFactory.createReaders(DefaultIndexReaderFactory.java:61) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.IndexNodeManager.open(IndexNodeManager.java:69) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.findIndexNode(IndexTracker.java:252) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.acquireIndexNode(IndexTracker.java:204) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex.getPlans(LucenePropertyIndex.java:249) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.query.QueryImpl.getBestSelectorExecutionPlan(QueryImpl.java:1005) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.QueryImpl.getBestSelectorExecutionPlan(QueryImpl.java:963) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.ast.SelectorImpl.prepare(SelectorImpl.java:283) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.QueryImpl.prepare(QueryImpl.java:624) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.UnionQueryImpl.prepare(UnionQueryImpl.java:130) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.QueryEngineImpl.prepareAndSelect(QueryEngineImpl.java:303) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.QueryEngineImpl.executeQuery(QueryEngineImpl.java:277) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.jcr.query.QueryManagerImpl.executeQuery(QueryManagerImpl.java:136) [org.apache.jackrabbit.oak-jcr:1.8.9]

at org.apache.jackrabbit.oak.jcr.query.QueryImpl$2.perform(QueryImpl.java:104) [org.apache.jackrabbit.oak-jcr:1.8.9]

at org.apache.jackrabbit.oak.jcr.query.QueryImpl$2.perform(QueryImpl.java:100) [org.apache.jackrabbit.oak-jcr:1.8.9]

at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:208) [org.apache.jackrabbit.oak-jcr:1.8.9]

at org.apache.jackrabbit.oak.jcr.query.QueryImpl.execute(QueryImpl.java:99) [org.apache.jackrabbit.oak-jcr:1.8.9]

at com.day.cq.wcm.core.impl.event.RepositoryChangeEventListener.run(RepositoryChangeEventListener.java:227) [com.day.cq.wcm.cq-wcm-core:5.11.250]

at java.lang.Thread.run(Thread.java:748)

Caused by: java.io.IOException: org.apache.jackrabbit.core.data.DataStoreException: Record c0831e587eb0bdeb01ebebd10a2c61c978fb63137052c83104188a8d6e7a78db does not exist

at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getStream(DataStoreBlobStore.java:590) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getInputStream(DataStoreBlobStore.java:343) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

at org.apache.jackrabbit.oak.plugins.blob.BlobStoreBlob.getNewStream(BlobStoreBlob.java:47) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

... 31 common frames omitted

Caused by: org.apache.jackrabbit.core.data.DataStoreException: Record c0831e587eb0bdeb01ebebd10a2c61c978fb63137052c83104188a8d6e7a78db does not exist

at org.apache.jackrabbit.core.data.AbstractDataStore.getRecord(AbstractDataStore.java:59) [org.apache.jackrabbit.jackrabbit-data:2.16.3]

at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getDataRecord(DataStoreBlobStore.java:599) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getStream(DataStoreBlobStore.java:584) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

... 33 common frames omitted

02.04.2019 09:26:10.130 *ERROR* [Thread-60] org.apache.jackrabbit.oak.plugins.index.lucene.BadIndexTracker Could not access the Lucene index at [/oak:index/cqPageLucene]

java.lang.RuntimeException: Error occurred while obtaining InputStream for blobId [bf025f8145eab4dd4fba9b054b7c49d73482137abc5fce25299bca962abe42ba#188894]

at org.apache.jackrabbit.oak.plugins.blob.BlobStoreBlob.getNewStream(BlobStoreBlob.java:49) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

at org.apache.jackrabbit.oak.segment.SegmentBlob.getNewStream(SegmentBlob.java:248) [org.apache.jackrabbit.oak-segment-tar:1.8.9]

at org.apache.jackrabbit.oak.segment.SegmentBlob.getNewStream(SegmentBlob.java:85) [org.apache.jackrabbit.oak-segment-tar:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.OakStreamingIndexFile.setupInputStream(OakStreamingIndexFile.java:138) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.OakStreamingIndexFile.readBytes(OakStreamingIndexFile.java:234) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.OakIndexInput.readBytes(OakIndexInput.java:65) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.lucene.store.DataOutput.copyBytes(DataOutput.java:254) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.lucene.store.Directory.copy(Directory.java:186) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory.copyFilesToLocal(CopyOnReadDirectory.java:202) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory.prefetchIndexFiles(CopyOnReadDirectory.java:173) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory.<init>(CopyOnReadDirectory.java:84) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier.wrapForRead(IndexCopier.java:122) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.reader.DefaultIndexReaderFactory.createReader(DefaultIndexReaderFactory.java:116) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.reader.DefaultIndexReaderFactory.createReaders(DefaultIndexReaderFactory.java:61) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.IndexNodeManager.open(IndexNodeManager.java:69) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.findIndexNode(IndexTracker.java:252) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.acquireIndexNode(IndexTracker.java:204) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex.getPlans(LucenePropertyIndex.java:249) [org.apache.jackrabbit.oak-lucene:1.8.9]

at org.apache.jackrabbit.oak.query.QueryImpl.getBestSelectorExecutionPlan(QueryImpl.java:1005) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.QueryImpl.getBestSelectorExecutionPlan(QueryImpl.java:963) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.ast.SelectorImpl.prepare(SelectorImpl.java:283) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.QueryImpl.prepare(QueryImpl.java:624) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.UnionQueryImpl.prepare(UnionQueryImpl.java:130) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.QueryEngineImpl.prepareAndSelect(QueryEngineImpl.java:303) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.query.QueryEngineImpl.executeQuery(QueryEngineImpl.java:277) [org.apache.jackrabbit.oak-core:1.8.9]

at org.apache.jackrabbit.oak.jcr.query.QueryManagerImpl.executeQuery(QueryManagerImpl.java:136) [org.apache.jackrabbit.oak-jcr:1.8.9]

at org.apache.jackrabbit.oak.jcr.query.QueryImpl$2.perform(QueryImpl.java:104) [org.apache.jackrabbit.oak-jcr:1.8.9]

at org.apache.jackrabbit.oak.jcr.query.QueryImpl$2.perform(QueryImpl.java:100) [org.apache.jackrabbit.oak-jcr:1.8.9]

at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:208) [org.apache.jackrabbit.oak-jcr:1.8.9]

at org.apache.jackrabbit.oak.jcr.query.QueryImpl.execute(QueryImpl.java:99) [org.apache.jackrabbit.oak-jcr:1.8.9]

at com.day.cq.wcm.core.impl.event.RepositoryChangeEventListener.run(RepositoryChangeEventListener.java:227) [com.day.cq.wcm.cq-wcm-core:5.11.250]

at java.lang.Thread.run(Thread.java:748)

Caused by: java.io.IOException: org.apache.jackrabbit.core.data.DataStoreException: Record bf025f8145eab4dd4fba9b054b7c49d73482137abc5fce25299bca962abe42ba does not exist

at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getStream(DataStoreBlobStore.java:590) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getInputStream(DataStoreBlobStore.java:343) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

at org.apache.jackrabbit.oak.plugins.blob.BlobStoreBlob.getNewStream(BlobStoreBlob.java:47) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

... 31 common frames omitted

Caused by: org.apache.jackrabbit.core.data.DataStoreException: Record bf025f8145eab4dd4fba9b054b7c49d73482137abc5fce25299bca962abe42ba does not exist

at org.apache.jackrabbit.core.data.AbstractDataStore.getRecord(AbstractDataStore.java:59) [org.apache.jackrabbit.jackrabbit-data:2.16.3]

at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getDataRecord(DataStoreBlobStore.java:599) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.getStream(DataStoreBlobStore.java:584) [org.apache.jackrabbit.oak-blob-plugins:1.8.9]

... 33 common frames omitted

Avatar

Community Advisor

Strange, I have never seen that coping repository on running aem can break the existing instance.


Did you try same on existing aem instance?

Try to login via crx/de and then go to http://host:port/system/console and ensure that the status of all bundles is Active, specifically check the status of Apache Sling Authentication Service bundle, it should have an active status.

Another possible reason could be that indexes get corrupted. You can recreate indexes by deleting or renaming /crx-quickstart/repository/version/index folder.

Avatar

Level 4

On Existing environment error is different. As i said it throws "Authenticate service missing, cannot authenticate request". Currenly am running the consistency check which is taking long time. (Repo is around 1 TB).

Tried with below command

java -Dtar.memoryMapped=true -Xmx16g -jar oak-run-1.8.9.jar check ./AEM64/crx-quickstart/repository/segmentstore

Avatar

Level 4

Consistency check did not show any issue related to repository corruption. However, below is the first error i see before instance show Authentication service missing error. Any one come across this error?

01.04.2019 16:41:25.679 *ERROR* [Apache Sling Repository Startup Thread] com.adobe.granite.repository.impl.SlingRepositoryManager Exception in a SlingRepositoryInitializer, SlingRepository service registration aborted

java.lang.RuntimeException: Failed to set ACL (java.lang.NullPointerException) AclLine ALLOW {paths=[/libs/sling/xss, /libs/cq/xssprotection, /apps/sling/xss, /apps/cq/xssprotection], privileges=[jcr:read]}

at org.apache.sling.jcr.repoinit.impl.AclVisitor.setAcl(AclVisitor.java:63) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.jcr.repoinit.impl.AclVisitor.visitSetAclPrincipal(AclVisitor.java:84) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.repoinit.parser.operations.SetAclPrincipals.accept(SetAclPrincipals.java:53) [org.apache.sling.repoinit.parser:1.2.2]

at org.apache.sling.jcr.repoinit.impl.JcrRepoInitOpsProcessorImpl.apply(JcrRepoInitOpsProcessorImpl.java:54) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.jcr.repoinit.impl.RepositoryInitializer.processRepository(RepositoryInitializer.java:99) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.executeRepositoryInitializers(AbstractSlingRepositoryManager.java:541) [org.apache.sling.jcr.base:3.0.4]

at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.initializeAndRegisterRepositoryService(AbstractSlingRepositoryManager.java:485) [org.apache.sling.jcr.base:3.0.4]

at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.access$300(AbstractSlingRepositoryManager.java:85) [org.apache.sling.jcr.base:3.0.4]

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

Caused by: java.lang.NullPointerException: null

at org.apache.sling.jcr.repoinit.impl.AclUtil.setAcl(AclUtil.java:125) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.jcr.repoinit.impl.AclUtil.setAcl(AclUtil.java:111) [org.apache.sling.jcr.repoinit:1.1.8]

at org.apache.sling.jcr.repoinit.impl.AclVisitor.setAcl(AclVisitor.java:61) [org.apache.sling.jcr.repoinit:1.1.8]

... 8 common frames omitted