Update 1.0.3 to 1.0.5 SQL Error

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
thomasw
Posts: 33
Joined: Thu Nov 10, 2005 6:11 am

Update 1.0.3 to 1.0.5 SQL Error

Post by thomasw »

Hello,

during upgrade of an 1.0.3 (which was successfully and easily upgraded from 0.8.7h btw) to the latest 1.0.5 I saw the following sql error:

DBCALL: ERROR: A DB Exec Failed!, Error:1062, SQL:"ALTER TABLE poller_reindex DROP PRIMARY KEY, ADD PRIMARY KEY (host_id, data_query_id)'
2017 Mar 13 16:08:32 hostname CMDPHP: ERROR: A DB Exec Failed!, Error: Duplicate entry '2096-1' for key 'PRIMARY'


I checked the table and her entries, removed the host referencing the id 2096 from the cacti, but the sql command now bails out another host. Any Ideas on howto proceed with this?

thanks in advance,

cheers,
Tom
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Update 1.0.3 to 1.0.5 SQL Error

Post by Osiris »

It's a corner case. Not sure it has any 'major' impact. How it happened is a mystery. It won't happen again though ;)
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest