DB Errors SQL Assoc Failed!, Error:'2006'

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

Moderators: Developers, Moderators

Post Reply
vrturbo
Posts: 9
Joined: Thu Apr 22, 2010 8:24 pm

DB Errors SQL Assoc Failed!, Error:'2006'

Post by vrturbo »

HI,

We have been using cacti for a long time now, a recent kernel panic on the host server (cacti is a vm) has given use all these poller db errors

Code: Select all

01/19/2015 02:54:24 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'2006', SQL:"select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name) LIMIT 10000"
01/19/2015 02:54:24 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'2006', SQL:"SELECT count(*) FROM poller_time WHERE poller_id=0 AND end_time>'0000-00-00 00:00:00'" 
These errors just repeat 100's of times and currently nothing is graphing

DB is up and running and I can login to the web ui

techsupport page shows no tables are corrupt

Cacti details below:

General Information
Date Mon, 19 Jan 2015 14:56:36 +1100
Cacti Version 0.8.7g
Cacti OS unix
SNMP Version NET-SNMP version: 5.4.3
RRDTool Version RRDTool 1.4.x
Hosts 216
Graphs 8667
Data Sources Script/Command: 88
SNMP: 3772
SNMP Query: 7181
Script Query: 2
Total: 11043
Poller Information
Interval 300
Type cmd.php
Items Action[0]: 18654
Action[1]: 92
Total: 18746

Loaded plugins

Monitor 1.2
Settings 0.5
Weathermap 0.97a
Thold 0.4.3
cigamit
Developer
Posts: 3375
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: DB Errors SQL Assoc Failed!, Error:'2006'

Post by cigamit »

I would run
cli/repair_database.php
from the command line.


Seems like a few of your tables are corrupt.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests