Migrating servers while upgrading from 0.8.8 to 1.2.9.
MySQL server both at v5.7.
After restoring MySQL dump and restarting cacti, Installation Wizard fails at Database upgrade with following error:
RENAME TABLE `plugin_discover_hosts` TO `automation_devices` [Skipped]
ALTER TABLE `automation_devices` DROP `hash` [Skipped]
ALTER TABLE automation_devices ADD COLUMN id BIGINT unsigned auto_increment FIRST, ADD COLUMN network_id INT unsigned NOT NULL default '0' AFTER id, ADD COLUMN snmp_port int(10) unsigned NOT NULL DEFAULT '161' AFTER snmp_version, ADD COLUMN snmp_engine_id varchar(30) DEFAULT '' AFTER snmp_context, DROP PRIMARY KEY, ADD PRIMARY KEY(id), ADD UNIQUE INDEX ip(ip); ADD INDEX network_id(network_id), COMMENT='Table of Discovered Devices' [Fail]
Database Fails to Upgrade
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Database Fails to Upgrade
Did it fail because the columns were already there? What is the tables current struction:
SHOW CREATE TABLE automation_devices;
SHOW CREATE TABLE automation_devices;
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Database Fails to Upgrade
Please see attachment
- Attachments
-
- Cacti table.txt
- (1.88 KiB) Downloaded 42 times
Re: Database Fails to Upgrade
You were right. Table was already there. I was not dropping the cacti DB before restoring the dump.
Re: Database Fails to Upgrade
sorry, but I did not understand how this problem was solved, could you explain
Who is online
Users browsing this forum: No registered users and 5 guests