Introducing you to my problem I have to say that I'm nooby at mysql and php - just isn't my thing. I have a task to migrate cacti and other monitoring systems which are running on Slackware 10. Also the mysql version installed there isn't the newest:
Code: Select all
mysql Ver 12.22 Distrib 4.0.27, for slackware-linux-gnu (i486)
1. Installation the new OS (Debian 10) and the newest version of MariaDB.
2. Copied the rra, script and resource folders to new machine.
3. Copied the old database to newly created (with amounts of problems but finally I've made that).
4. Installed cacti and turned it on.
I've seen the updating process so I said "ok". But this process ended by errors like that (pointing at failure during that):
Code: Select all
UPDATE `settings` SET name = 'user_template' WHERE name = 'ldap_template';
UPDATE settings SET name='path_spine' WHERE name='path_cactid';
Code: Select all
ERROR 1062 (23000): Duplicate entry 'user_template' for key 'PRIMARY'
Code: Select all
2019/12/07 13:25:57 - INSTALL: always: Installation was started at 2019-12-07 12:24:01, completed at 2019-12-07 12:25:57
2019/12/07 13:25:57 - INSTALL: always: WARNING: One or more upgrades failed to install correctly
2019/12/07 13:25:57 - INSTALL: always: Finished UPGRADE Process for v1.2.7
2019/12/07 13:24:03 - INSTALL: always: Upgrading from v0.8.6j (DB 1.2.7 (DB: 0.8.6j)) to v0.8.7
2019/12/07 13:24:03 - INSTALL: always: NOTE: Using temporary file for db cache: /tmp/cdu22wuDq
2019/12/07 13:24:02 - INSTALL: always: Switched from to /tmp/cdu22wuDq
2019/12/07 13:24:02 - INSTALL: always: No tables where found or selected for conversion
2019/12/07 13:24:02 - INSTALL: always: Starting UPGRADE Process for v1.2.7
2019/12/07 13:24:01 - INSTALL: always: Setting PHP Option memory_limit = -1
2019/12/07 13:24:01 - INSTALL: always: Setting PHP Option max_execution_time = 0
2019/12/07 13:24:01 - INSTALL: Checking arguments
2019/12/07 13:24:00 - INSTALL: always: Spawning background process: /usr/bin/php '/opt/cacti/install/background.php' 1575721440.8931