INSERT into wp_wfHits causes error on MariaDB replication
-
I have 2 Ubuntu Servers (20.04.1) running mariadb. I have set them up to replicate. I have a main server online and its database is being replicated to my secondary server. I am able to get replication up and running fine. I have tested changes made to the main server database are replicated to the secondary server. Both are on a private network. The server is running several virtual hosts. All are WordPress sites and those files, as well as apache files for the virtual host are being kept up to date using rsync.
To test that my secondary server is serving up sites correctly, I have pointed a browser to the IP of my secondary server. I get a listing of the sites that are being hosted. When I select a site, morrowgallery.com, it comes up fine.
When I check the status of replication, it has stopped with this error:
Error ‘Duplicate entry ‘76358’ for key ‘PRIMARY” on query. Default database: ‘morrowgallery’. Query: ‘INSERT INTO
wp_wfhits
(ctime
,statusCode
,isGoogle
,IP
,userID
,URL
,referer
,UA
,jsRun
) VALUES (‘1654871899.272762’, ‘200’, ‘0’, ‘\0\0\0\0\0\0\0\0\0\0?????[‘, ‘0’, ‘https://morrowgallery.com/’, ‘https://morrowgallery.com’, ‘Mozilla/5.0+(compatible; UptimeRobot/2.0; https://www.uptimerobot.com/)’, ”)’It appears that Wordfence is trying to INSERT data into the secondary database.
Is there a way to stop Wordfence from doing this?
I have tried to set the database to read only (SET GLOBAL read_only = 1;) but it seems like that may not be working.
The page I need help with: [log in to see the link]
- The topic ‘INSERT into wp_wfHits causes error on MariaDB replication’ is closed to new replies.