[solved] Upgrade from 0.8.7f to 0.8.7g - Errors

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

Moderators: Developers, Moderators

Post Reply
User avatar
MrBr
Posts: 44
Joined: Thu Sep 24, 2009 10:13 am

[solved] Upgrade from 0.8.7f to 0.8.7g - Errors

Post by MrBr »

Hi all
I've successfully upgraded my cacti from 0.8.7f to 0.8.7g however there are some issues appeared:

1) While installing html_output.patch patch I've received an error message
patching file lib/html_form.php
patching file lib/data_query.php
patching file data_sources.php
Hunk #1 succeeded at 911 (offset 12 lines).
Hunk #2 FAILED at 1322.
1 out of 2 hunks FAILED -- saving rejects to file data_sources.php.rej
patching file graphs.php
Hunk #1 succeeded at 1327 (offset 10 lines).
2) While importing pa.sql following error appeared
ERROR 1050 (42S01) at line 5: Table 'plugin_config' already exists
3) Following SQL errors started to appear in log file
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'0', SQL:"SELECT 1 AS id, ph.name, ph.file, ph.function FROM plugin_hooks AS ph LEFT JOIN plugin_config AS pc ON pc.directory=ph.name WHERE ph.status = 1 AND hook = 'poller_bottom' AND ph.name IN ('settings', 'boost', 'dsstats') UNION SELECT pc.id, ph.name, ph.file, ph.function FROM plugin_hooks AS ph LEFT JOIN plugin_config AS pc ON pc.directory=ph.name WHERE ph.status = 1 AND hook = 'poller_bottom' AND ph.name NOT IN ('settings', 'boost', 'dsstats') ORDER BY id ASC"
08/09/2010 05:49:33 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/cacti/poller_export.php"]
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'0', SQL:"REPLACE INTO settings (name,value) VALUES ('stats_recache','RecacheTime:0.0 HostsRecached:0')'
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'0', SQL:"SELECT COUNT(*) FROM poller_command"
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'0', SQL:"REPLACE INTO settings (name,value) VALUES ('stats_poller','Time:0.0034 Method:cmd.php Processes:40 Threads:N/A Hosts:0 HostsPerProcess:0 DataSources:296 RRDsProcessed:0')'
08/09/2010 05:49:33 PM - SYSTEM STATS: Time:0.0034 Method:cmd.php Processes:40 Threads:N/A Hosts:0 HostsPerProcess:0 DataSources:296 RRDsProcessed:0
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'0', 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) "
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'0', SQL:"SELECT count(*) FROM poller_time WHERE poller_id=0 AND end_time>'0000-00-00 00:00:00'"
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'0', SQL:"REPLACE INTO settings (name,value) VALUES ('date',NOW())'
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'0', SQL:"SELECT 1 AS id, ph.name, ph.file, ph.function FROM plugin_hooks AS ph LEFT JOIN plugin_config AS pc ON pc.directory=ph.name WHERE ph.status = 1 AND hook = 'poller_command_args' AND ph.name IN ('settings', 'boost', 'dsstats') UNION SELECT pc.id, ph.name, ph.file, ph.function FROM plugin_hooks AS ph LEFT JOIN plugin_config AS pc ON pc.directory=ph.name WHERE ph.status = 1 AND hook = 'poller_command_args' AND ph.name NOT IN ('settings', 'boost', 'dsstats') ORDER BY id ASC"
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'0', SQL:"SELECT local_data_id, rrd_name FROM poller_output"
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'0', SQL:"TRUNCATE TABLE poller_time'
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'0', SQL:"SELECT count(*) FROM poller_time WHERE end_time='0000-00-00 00:00:00'"
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'0', SQL:"REPLACE INTO settings (name,value) VALUES ('path_webroot','/var/www/cacti')'
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'0', SQL:"SELECT id FROM host WHERE disabled = '' ORDER BY id"
08/09/2010 05:49:33 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'0', SQL:"SELECT 1 AS id, ph.name, ph.file, ph.function FROM plugin_hooks AS ph LEFT JOIN plugin_config AS pc ON pc.directory=ph.name WHERE ph.status = 1 AND hook = 'poller_top' AND ph.name IN ('settings', 'boost', 'dsstats') UNION SELECT pc.id, ph.name, ph.file, ph.function FROM plugin_hooks AS ph LEFT JOIN plugin_config AS pc ON pc.directory=ph.name WHERE ph.status = 1 AND hook = 'poller_top' AND ph.name NOT IN ('settings', 'boost', 'dsstats') ORDER BY id ASC"

Most disturbing is the SQL error, what does it means? How will it effect the graphs if any?

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) How was your cacti installed... manually or via a package? IF the latter, it's possible the package maintainer borked up the files. I'd recommend manually downloading/installing the cacti files.

2) You don't reinstall pa.sql once it's already installed.

3) cacti technical support page show any errors? Looks like your mysql tables are missing/broken.
User avatar
MrBr
Posts: 44
Joined: Thu Sep 24, 2009 10:13 am

Post by MrBr »

1) Cacti been installed manually
2) Thanks, good to know. There is no mentioning of this fact in any manual
3) No errors on tech support page, in MySQL Table Information "Check Status" is OK for all tables
venquessa
Posts: 10
Joined: Wed Jun 15, 2005 3:30 pm

Post by venquessa »

Same here.

Installed CentOS today.
Installed Cacti.
Verified Cacti was running.
Added a host.
Added some graphs.
WOOHOO, pretty graphs working.

Went to lunch, came back
Graphs have stopped logging any thing and 100s of the exact same errors as the OP.

I modified nothing over lunch I was no where near the box.

"Error: '0'" Is 0 not success?

EDIT: Further, if I log into the DB the queries it is complaining about execute fine.

Paul
venquessa
Posts: 10
Joined: Wed Jun 15, 2005 3:30 pm

Post by venquessa »

Well, it started working again, on it's own.

At least it has the decency to fix itself after it broke itself.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The SQL Errors were related to a glibc issue on RHEL5. It was seen in many other OS' as well and has been patched across the globe by many distro maintainers.

TheWitness
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?
User avatar
MrBr
Posts: 44
Joined: Thu Sep 24, 2009 10:13 am

Post by MrBr »

The SQL Errors were related to a glibc issue on RHEL5
Can you be a little more specific? Is there any way to overcome this? System upgrade?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

We have a new lib/database.php that was being tracked by Gandalf that is a workaround for the issue. Please PM him this ticket. Don't recall if he committed it yet.

TheWitness
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?
User avatar
MrBr
Posts: 44
Joined: Thu Sep 24, 2009 10:13 am

Post by MrBr »

Thanks. Sent him PM.
Does this issue causes any problems beside error messages in the log file?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes but another workaround is to backoff the lib/database.php to the e version.

ThrWitness
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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

MrBr wrote:Thanks. Sent him PM.
Does this issue causes any problems beside error messages in the log file?
As pm'ed back, please download from SVN/branches/087
R.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I just confirmed the wonky behavior of Cacti on RHEL4. The most up-to-date lib/database.php will correct the behavior (confirmed that too).

TheWitness
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?
User avatar
MrBr
Posts: 44
Joined: Thu Sep 24, 2009 10:13 am

Post by MrBr »

Problem solved by using latest version of lib/database.php Revision 6095
OS: CentOS release 5.5
Thanks guys

And what about the first problem I've mentioned, the html_output.patch issue?
Last edited by MrBr on Tue Aug 17, 2010 4:25 am, edited 2 times in total.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That looks more PIA related. There will be a PIA 2.9 released likely this weekend and the PIA 2.9beta1 is already published.
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests