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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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



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.