Questions tagged [mongodb]

All questions related to the use of MongoDB in a Sitecore environment - xDB, sessions, ...

Filter by
Sorted by
Tagged with
20
votes
2answers
2k views

Mongo vs SQL Server with Sitecore 9 Update 2

Sitecore recently launched the version 9.0.2 which supports the MongoDB for xConnect. Now, for a greenfield project which needs to kickoff on Sitecore 9.0.2, we have a choice between MS SQL Server or ...
17
votes
2answers
746 views

What are options for archiving xDB data?

I've ran into a number of different scenarios lately around xDB and data retention and archiving. What is the best practice for archiving data in xDB in general? For example, is there a best practice ...
15
votes
3answers
9k views

ERROR: Cannot create tracker (Message:session is not initialized) Sitecore 8.1 update 2

I am getting below error in logs and none of the interaction data is collected in mongoDB also. Verified with Post looks everything Ok in my solution. ERROR Cannot create tracker. Exception: ...
14
votes
0answers
1k views

Submit queue is not working [closed]

I was looking for a fallback for Analytics when MongoDB was not available anymore and the "Submit queue" was exactly what I needed on paper. My Issue It seems that the "Sitecore.Analytics....
13
votes
2answers
2k views

MongoDB historical data and data truncation

We have noticed that our MongoDB's are growing steadily. Which is an obvious result of just capturing all kinds of user interactions. However, we can't have the xDB grow infinitely... I can't seem ...
13
votes
3answers
1k views

Contact (guid) could not be locked in the xDB

I've got a site where I'm invoking Tracker.Current.Session.Identify(), passing in the authenticated user's email address. It works fine locally, but when deployed the identify call often - but not ...
12
votes
2answers
1k views

How can I create a custom report in Experience Analytics?

I'm pretty new at Sitecore, so I don't know if this is possible. I am able to log some custom page events (click on an anchor on the client side) in xDB. I can then query this with Robomongo. But ...
12
votes
1answer
395 views

How to handle xDB during a Sitecore upgrade?

This may be a vague question or too broad for Stack Exchange, but I will try it anyway. We are doing an upgrade from v7.5 to v8.1-3. We are using a hosted instance of Mongo called ObjectRocket from ...
12
votes
2answers
4k views

MongoDB and Disaster Recovery

What are peoples best practices for MongoDB and disaster recovery? What I'm interested in is less around resilience (we have replica sets - and are looking at SaaS solutions too) but more around ...
12
votes
1answer
656 views

Sitecore XDB cleanup to limit size

On our current system XDB is grown very large, the interactions DB is around 80% of the total database size, followed by KeyBehaviourCache at 5% then GeoIps and Contacts at 4%. We need to reduce the ...
11
votes
2answers
3k views

MongoDB disk IOPS

I was reading that Sitecore recommends SSD disks for MongoDB Servers, and I am wondering if What are the recommended performance values? Will I have any performance lost if not use SSD? Best ...
10
votes
4answers
3k views

What happens when MongoDB is down?

We are building an infrastructure for xDB internally and our internal network team asked us what would happen if the MongoDB instances were down. We, of course are deploying MongoDB with Replica set ...
10
votes
5answers
847 views

Sizing MongoDB Servers for xDB

Is there guidance on sizing the Mongo DB servers when running xDB on premises? I've found some guidance on sizing MongoDB for session state (link) but can't find anything on the analytics side. To be ...
10
votes
1answer
128 views

Is it possible to distribute my xDB MongoDB databases over 3 locations?

So I've been reading up on geographically distributed MongoDB setups. I am juggling around an architectural approach/concept for a project. This is roughly what I am looking at. A centralised ...
9
votes
2answers
619 views

What happens if i remove Mongo server from a Sitecore 8 site

A client wants to cut down on servers and since they do not use the Experience Platform I am wondering if i could just eliminate the Mongo server. There is as of now absolutely no data in the Mongo ...
9
votes
3answers
1k views

Sitecore xDB cannot connect to a MongoDB replica set

On our Sitecore 8 production instance, we are getting the below error messages. This client site we have recently inherited from another partner and on preliminary investigation from our end, we see ...
9
votes
2answers
403 views

Any Guidelines to choose between SQL or Mongo for xDB on Sitecore 9?

Want to check if we have any guidelines (metrics) helpful to decide either Mongo or SQL will be good fit while Upgrading to Sitecore 9, especially if the current version in below 7.5 (No Mongo). ...
7
votes
3answers
984 views

How do I run MongoDB and SOLR Docker images that work with Windows Server 2016?

I'm trying to configure my Sitecore 8.2 instance in a Docker container using Windows Server 2016. I've been able to successfully setup IIS in a Docker container, but am unable to find any containers/...
7
votes
1answer
1k views

Sitecore 9 xDB Support for MongoDB

We are working on migrating our Sitecore instances to Sitecore 9 and we are using xDB for analytics. We read new version of Sitecore does not support MongoDB. Can we still use xDB and analytics?
7
votes
3answers
1k views

Can I use the in-memory storage engine for my MongoDB based sessions?

MongoDB 3.2+ offers the option of putting some or all of the structures into an in-memory engine. I was thinking to try out this capability for discardable data such as Sitecore sessions - for which ...
7
votes
2answers
679 views

How can I utilise MongoDB for non-xDB related things in my Sitecore solution?

Assuming we have a sparking new Sitecore installation running, and have already invested in the relevant MongoDB infrastructure to keep the solution running 24x7 and so on - how can I make further use ...
6
votes
3answers
878 views

Is MongoDB a prerequisite to install EXM?

I'm installing the EXM 3.5 initial release in a recent upgraded Sitecore 8.2 update 5 (from update 2), and I am mentioning that because I had to set Xdb.Enabled and Xdb.Tracking.Enabled to false in ...
6
votes
2answers
5k views

What are the best practices for MongoDB replica set latency?

I'm looking to setup a environment with 3 MongoDB (1 x Primary and 2 x Secondary nodes) in different regions and wondering if: Is there any recommendations on latency (in ms) limitations for the ...
6
votes
1answer
414 views

Sitecore 8.1 update 2 production health check

Sitecore healthcheck.aspx checks connection to all DBs mentioned in connectionString.config. I want to test If analytics data being captured or not in MongoDB replication set Processing Server ...
6
votes
1answer
376 views

WFFM: How multisite FormData get saved in MongoDB?

I am using Sitecore 8.1 with WFFM. Can anyone please explain me how the multi-site information get saved in FormData?. As per my understanding FormData will get saved with FormID and its Fields in ...
5
votes
4answers
1k views

No contact created in MongoDB when session is closed

8.2 update 0. I have changed session to be 1 minute instead of the default 20 minutes. When I log into the site, in incognito, surf around and close the browser. No contact is ever created in the ...
5
votes
3answers
145 views

What weighs in when migrating lots of external content to MongoDB and/or SOLR?

I am tasked with importing a large bulk of transaction data and make it available to my Sitecore solution. We're talking roughly 10 million transaction records that we need to be able to utilise real-...
5
votes
2answers
719 views

Sitecore MongoDB Compatibility Version

As per the Sitecore recommendation from the below link Mongo DB 3.2.1 is recommended, but when we look at the Mongo DB we are having 3.2.15 patch update as the latest. Sitecore Recommendation : ...
5
votes
3answers
360 views

Custom Report from xDB (MongoDB) based in Geo Ips

We are on Sitecore 8.2 rev. 170614 (8.2 Update-4) using MongoDB On-Premise mode with custom SSL Setup. Need to submit a custom report to business based on various logins (and related data) ...
5
votes
1answer
532 views

Where can I find the NuGet package(s) for MongoDB required by Sitecore 8.1 (update 3)

I've done an upgrade of Sitecore 8 to 8.1 update 3. I notice that this version of Sitecore references version 1.10.0.62 of MongoDB.Bson and MongoDB.Driver. Where can I find these NuGet packages? I've ...
5
votes
1answer
303 views

Sitecore connecting to MongoDB using SSL

I'm using Sitecore 8.2 update 5 and just setup a MongoDB using SSL, and it works fine but when Sitecore tries to communicate with it, does not work at all. In my ConnectionStrings.config, I've set as ...
5
votes
1answer
267 views

Contact Not Found Exception thrown with valid contact IDs

In the following code... var contactManager = GetContactManager(); var contact = contactManager.LoadContactReadOnly(contactId); if (contact == null) { Log.Info("MySite.Presentation.Controllers....
5
votes
2answers
1k views

How can I create a custom Page Events report in Sitecore 8?

I wanted to create a report on particular page events. In Sitecore 7.2 we had a PageEvents table; in Sitecore 8 xDB, this table seems to be missing from the Reporting DB. I checked the Interactions ...
5
votes
0answers
827 views

Sitecore Analytics Exceptions with mongoDB Failure

Overview During a disaster recovery test of our environment we make mongoDB unavailable to Sitecore with the expectation that Sitecore will continue to function normally due to the Configuration ...
4
votes
1answer
1k views

How to Join MongoDb Collections Using Sitecore Mongo Db Report Data Source

Am using sitecore 8.0, below code gets the analytics from the mongo db. I have two collections "ineractions" and "ContactId", I want to join both the collections using common field "contact" from ...
4
votes
2answers
667 views

"Method not found" error with MongoDB.MongoCursor

I have problem with MongoDB.Driver.MongoCursor. When I want to set tracking I get an error: Method not found: 'MongoDB.Driver.MongoCursor`1 Sitecore.Analytics.Data.DataAccess.MongoDb....
4
votes
1answer
300 views

WFFM: What happens when we delete a wffm form?

I am using Sitecore 8.1 with WFFM. And i am new to WFFM. I found that when user enters data to WFFM forms it will get stored in MongoDB formdata collection. What will happen if the WFFM form will get ...
4
votes
1answer
107 views

What Sitecore understands about Mongo from its ConnectionStrings?

Here's my scenario Sitecore 8.1 update 1 in Datacenter X Sitecore 8.1 update 1 in Datacenter Z (stand-by failover) MongoDB Replica Set (rs0) Primary and Secondary in Datacenter X MongoDB Replica Set (...
4
votes
1answer
142 views

Analytics Stops upon Code Deployment

I am not sure if anyone ran into this issue before: We have an in house built tool to deploy code from the build server to specified destinations. Mongo reports/Custom Analytics is not working ...
4
votes
0answers
97 views

Blank Reports for Sitecore Analytics [duplicate]

We have empty reports in Sitecore Experience Dashboard on one of the environments where we have 1 CM and 2 CD servers and we have tried out various things but nothing worked. Reports look something ...
4
votes
0answers
303 views

Sitecore Analytics Channel Detection

Sitecore has a bunch of Channels defined in /sitecore/system/Marketing Control Panel/Taxonomies/Channel.The config Sitecore.Analytics.Channel specify the different channels that are assigned for ...
3
votes
2answers
304 views

Is there a reason xDb contact data is saved on session end vs immediately saving the data

So from my understanding it's better to use the tracker to update custom facets (or default facets) from a contact in xDb and then wait till SessionEnd to have that data saved to MongoDb. But my ...
3
votes
1answer
194 views

How do I get access to my Contact Card information

I'm running Sitecore 8.1 Original Release, and I'm trying to run this code: var repository = new ContactRepository(); var contact = repository.LoadContactReadOnly(contactId); where contactId is ...
3
votes
2answers
212 views

500 error page for Sitecore Start Up with no Solr or mongo connected

I'm trying to configure a 500 error page.h I have successfully done this for handling exceptions once the application is already up and running. However I'm having an issue where if Solr Or MongoDB ...
3
votes
1answer
2k views

How do I anonymize contact data in MongoDB?

I need to send a copy of my MongoDB to Sitecore Support for investigation. For security reasons I want all sensitive data to be anonymized. Fields I'm talking about are: FirstName, LastName, ...
3
votes
1answer
270 views

Periodically cleanup Sitecore Analytics data

We want to clean up Sitecore Analytics data (MongoDB + SQL) that are old (say 3 months). I already looked at Sitecore ADM and this question However, it seems that Sitecore ADM does not support ...
3
votes
1answer
293 views

Speed up fetching data from interactions table of Mongo db

We have a requirement in which we must get values from mongo db faster than the current scenario. We have few articles in our project and there is an option to fetch recent articles which are most ...
3
votes
1answer
119 views

xDB Data Migration tool and vanila Sitecore instance

Is it possible to migrate xDB data from existing Sitecore 8.2 to a fresh Sitecore 9.x instance using the xDB Data Migration tool? I mean if I install a fresh Sitecore 9.x instance (not upgraded one), ...
3
votes
1answer
733 views

Mongo db Interactions table not getting updated

In my dev machine I am not getting any interactions added in interaction table of mongo db. My session state entry in web.config is as follows: <sessionState mode="InProc" cookieless="false" ...
2
votes
2answers
43 views

Mongo 4.0.5 version isn't available in Mongo Site

Sitecore 9.3 recommends to use mongo 4.0.5 version. But I cannot find the exact version on the mongo website (https://www.mongodb.com/try/download/community) Appreciate any help on this .