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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Replicated site database duplication issue


Go to End


1058 Views

Avatar
Rod

Community Member, 12 Posts

11 October 2011 at 9:19am

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.