I wonder if anyone has any clues what's going wrong with my upgrade. I've taken an existing Cacti system, and moved it to a newer OS (FreeBSD 11.2) and upgraded from 0.8.8h to 1.1.38.
During the DB update I get these problems:
Code: Select all
root@localhost [cacti]> UPDATE external_links SET enabled="on" WHERE disabled="";
ERROR 1054 (42S22): Unknown column 'disabled' in 'where clause'
root@localhost [cacti]> UPDATE external_links SET enabled="" WHERE disabled="on";
ERROR 1054 (42S22): Unknown column 'disabled' in 'where clause'
root@localhost [cacti]> desc external_links;
+---------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| sortorder | int(11) | NO | | 0 | |
| enabled | char(2) | YES | | on | |
| contentfile | varchar(255) | NO | | | |
| title | varchar(20) | NO | | | |
| style | varchar(10) | NO | | | |
| extendedstyle | varchar(50) | NO | | | |
+---------------+--------------+------+-----+---------+----------------+
7 rows in set (0.00 sec)
root@localhost [cacti]> ALTER TABLE poller_reindex DROP PRIMARY KEY, ADD PRIMARY KEY (host_id, data_query_id);
ERROR 1062 (23000): Duplicate entry '19-13' for key 'PRIMARY'
And ignoring those errors, once updated and logged in I have some issues from the web interface. For example, when changing the RRD version in settings when I clock save I get an error 500 and in the Apache log I see:
Code: Select all
PHP Fatal error: Call to a member function qstr() on null in /usr/local/www/cacti/settings.php on line 66, referer: https://cacti.test.server/settings.php
thanks in advance! Andy.