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
BedrockMission!

Learn More

View all

Sign in to view all badges

mongodb org.apache.jackrabbit.oak.plugins.document.Document.config proper syntax on AEM 6.5

Avatar

Avatar
Validate 1
Level 1
AndreaB69
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
AndreaB69
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
AndreaB69
Level 1

30-03-2021

Hello,

we have issues with aem not recognising db name and url from config file on aem 6.5

I saw in this url

https://experienceleague.adobe.com/docs/experience-manager-64/deploying/introduction/aem-with-mongod...

this syntax

 

mongodburi=mongodb://aem:aempassword@mongodbserver1.customer.com:27000,mongodbserver2.customer.com:27000
#Name of MongoDB database to use
db=aem
#Store binaries in custom BlobStore e.g. FileDataStore
customBlobStore=true
 
while this
 
is suggesting this syntax with mongouri (instead of mongodburi ) boolean type and quotes:
 
#Mongo server details
mongouri="mongodb://localhost:27017"

#Name of Mongo database to use
db="aem-author"

#Store binaries in custom BlobStore
customBlobStore=B"false"
 
which is the right one on the latest AEM 6.5 ?
any idea why the config file might not be applied?
 
Thanks
 
 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

30-03-2021

First, Make sure you are using .config and not .cfg for configuration files, and the syntax was also changed from :

 

 

# org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.cfg

#MongoDB server details
mongodburi=mongodb://aem:aempassword@mongodbserver1.customer.com:27000],mongodbserver2.customer.com:27000#Name of MongoDB database to use
db=aem
#Store binaries in custom BlobStore e.g. FileDataStore
customBlobStore=true
cache=2048
blobCacheSize=1024

 To

#org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.config

#Mongo server details mongouri="mongodb://aem:aempassword@mongodbserver1.customer.com:27000],mongodbserver2.customer.com:27000" #Name of Mongo database to use 
db="aem"  
#Store binaries in custom BlobStore 
customBlobStore=B"true"
cache=I"2048" 
blobCacheSize=I"1024"

Answers (3)

Answers (3)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

30-03-2021

"mongodburi" was the old synatax as per my last update and a docbug needs to be logged for :

 

https://experienceleague.adobe.com/docs/experience-manager-65/deploying/introduction/aem-with-mongod...

 

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

30-03-2021

You can check [1] for more details on the connection string options

 

[1] https://docs.mongodb.com/manual/reference/connection-string/

 

Avatar

Avatar
Validate 1
Level 1
AndreaB69
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
AndreaB69
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
AndreaB69
Level 1

30-03-2021

Thanks !
do you have a mongouri sample with repilicaset and authentication with authSource?