Support

Akeeba Backup for Joomla!

#14566 restore DB error

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Monday, 07 January 2013 01:36 CST

user6558

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the tickets before posting? No
Have I read the documentation before posting (which pages?)? No
Joomla! version: (2.5)
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Akeeba Backup version: (latest)

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:

when I restore the backup site to another server, files restore is fine, but DB restore finish 60%, then show error like this:

http://screencast.com/t/vtqIgXZOq

Error at the line 10: INSERT INTO `#__rokuserstats` VALUES ('1199466', '0', '66.249.77.175', '5ipuk70q9c026j1soda5o50g76', '/en/index.php?option=com_jreviews&Itemid=59&cat=50&url=search-results_m59&jr_latitude=22.205236115 ... MySQL: MySQL query failed with error 1062 (Duplicate entry '1199466' for key 'PRIMARY'). The query was:INSERT INTO `jos_rokuserstats` VALUES ('1199466', '0', '66.249.77.175', '5ipuk70q9c026j1soda5o50g76', '/en/index.php?option=com_jreviews&Itemid=59&cat=50&url=search-results_m59&jr_latitude=22.2052361157&jr_longitude=113.5458254814&jr_radius=0.5&order=distance&query=all', '', '2013-01-05 10:32:46'), ('1199467', '0', '66.249.77.173', 'ncuvc2mv04ergn2ouq8opvb906', '/en/index.php?option=com_jreviews&Itemid=59&cat=50&url=search-results_m59&jr_latitude=22.1878421045&jr_longitude=113.5351395607&jr_radius=0.5&order=distance&query=all', '', '2013-01-05 10:32:47'), ('1199464', '0', '180.149.252.8', '7dhk8o00u3vf3d4qs3h35j55s6', '/', '', '2013-01-05 10:32:44'), ('1199465', '0', '66.249.77.178', '1f9dn2me23r22jmnui2ib9gp42', '/en/index.php?option=com_jreviews&Itemid=59&cat=50&url=search-results_m59&jr_latitude=22.2138578191&jr_longitude=113.5452783108&jr_radius=0.5&order=distance&query=all', '', '2013-01-05 10:32:45'), ('1199461', '0', '157.55.35.47', 's2kjg7rliki9raqmrf5ia2quu4', '/advance- 

 

nicholas
Akeeba Staff
Manager

In the database restoration page please check the "Use REPLACE instead of INSERT" checkbox and retry. This should work; the checkbox is there to work around issues like that. Please let me know of the result.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user6558

yes, it works. what caused the error? is there anything wrong with my DB that I need to fix? thanks

nicholas
Akeeba Staff
Manager

Most likely it has to do with the way RocketTheme extensions store their data in the database. I've seen that on a site of my own, that's how I got to implement the REPLACE instead of INSERTs restoration feature. Just remember using the checkbox when you restore your site.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!