Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot connect to MongoDB with Sitecore

I'm working on a Sitecore website (Sitecore 8 Update 2).

I installed MongoDB, and I can connect to localhost:27017 with Robomongo and MongoVUE, but this is all I get.

Robomongo UI

I hooked up Sitecore to MongoDB with these connection strings:

<add name="analytics" connectionString="mongodb://localhost:27017/kbs_analytics" />
<add name="tracking.live" connectionString="mongodb://localhost:27017/kbs_tracking_live" />
<add name="tracking.history" connectionString="mongodb://localhost:27017/kbs_tracking_history" />
<add name="tracking.contact" connectionString="mongodb://localhost:27017/kbs_tracking_contact" />

But it doesn't seem to link up.

As far as I can tell, once I have the connection string, Sitecore should at the very least start creating some collections in the database. But this doesn't happen, and I don't get any error messages.

Does anyone know what could cause this, or what I might have forgotten?

like image 858
Timon Avatar asked Sep 28 '22 06:09

Timon


1 Answers

In Sitecore 8 Update 5 there is support for MongoDB 3.0.

For older versions:

Sitecore is using MongoDB.Driver.dll version 1.8.3.9 in Sitecore 7.5 - 8.0 update 4, this is not working with MongoDB 3.

You can update the C# Mongo drivers in Sitecore. See sitecore-on-mongodb-3-0-what-should-you-know

Or use MongoDB 2.6.x sitecore experience platform/xdb overview/software recommendations

like image 61
Jan Bluemink Avatar answered Nov 14 '22 22:11

Jan Bluemink