SunilG
SunilG

Reputation: 13

Sitecore MongoDB not creating all database/collections

We are working on Sitecore deployment in Azure.

We installed MongoDB, and we can connect to localhost using Robomongo. We can only see “Analytics” database/collections. Our connection strings setup are:

Connectionstring.config

But the other 3 databases and collections are not created.

In Sitecore.Analytics.config file – the setting “Analytics.Enabled” is set to true.

Sitecore.Analytics.config

In log we found some references to xDB cloud initialization failed issues, therefore we disabled it.

Are we missing any configurations? Any help or suggestions are appreciated.

Thank you

Upvotes: 1

Views: 619

Answers (1)

Dmytro Shevchenko
Dmytro Shevchenko

Reputation: 34591

Keep in mind that MongoDB is schemaless. Of course, in a production environment you would probably have to create these databases manually - to ensure that access rights are assigned correctly. But in a development environment, any database can be created on the fly.

The only reason the analytics database was created for you is because Sitecore creates indexes for the Interactions collection. Otherwise, you wouldn't see this database until xDB wrote some data into it. Same goes for any MongoDB collection - those won't appear until there's either data being written or an index created.

The other three databases will be created once the aggregation/processing logic is executed. I.e. when your instance starts to actually collect and process visit data.

As a conclusion, don't worry about these databases missing (for now). Just verify that xDB functionality is working properly.

Upvotes: 0

Related Questions