Expand my Community achievements bar.

AEM6.0 with Mongo DB doesn't start

Avatar

Level 6

Hi All,

I am getting error when starting CQ(AEM6.0) with mongo DB. 

Below is my mongod.cfg 

bind_ip = 127.0.0.1
port = 27017
quiet = false
dbpath = C:\data\db
logpath = C:\data\db\log\mongod.log
logappend = true
journal = true
directoryperdb = false
rest=true
httpinterface=true
profile=2

And run modes in start.bat is author,crx3mongo and JVM options if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Doak.mongo.uri=mongodb://localhost:27017

CQ i am starting through start.bat file.

I am getting below error

12.01.2017 15:58:46.944 *ERROR* [qtp2057579857-35] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
12.01.2017 15:58:46.944 *ERROR* [qtp2057579857-35] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies

 

Thanks,

Pradeep

1 Reply

Avatar

Level 2

are you using org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.cfg?  if so did you specify which DB to use? Have you created a Replicaset? if so have you created a keyfile that will be used by mongo? If you have done everything correctly and its still not working then try dropping the tables created when you initially start your AEM startup script and try again.