Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Replicated site database duplication issue


Reply

502 Views

Avatar
Rod

11 October 2011 at 9:19am Community Member, 12 Posts

Hi there,

We have just set up a site that replicates to a different server every hour or so. And now we have this error:

SLAVE FAILURE: Last_SQL_Error: Error 'Duplicate entry '139895' for key 'PRIMARY'' on query. Default database: 'SS_mysite'. Query: 'INSERT INTO "SiteTree_ImageTracking" ("SiteTreeID","FileID" , "FieldName") VALUES (103, 198 , 'Content')'

Both the master and slave versions of the site still work fine on the front-end, but the replication won't work with this error occurring.

The table name and nature of this error seems to suggest that website visitor activity is saving to the slave database in the form of tracking information - is this correct?

Is there a safe and easy way to turn off this tracking? Or is there some other way around this?

Thanks in advance.