problems after upgrading to php 5.0.5

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

Moderators: Developers, Moderators

Post Reply
Jeppe
Posts: 47
Joined: Sun Feb 09, 2003 4:48 am
Contact:

problems after upgrading to php 5.0.5

Post by Jeppe »

Upgraded to php 5.0.5 - can't see graphs or data sources anymore.
If I click eg. data sources, I get a header "Showing Rows 1 to 30 of 39 [1,2]"
but then the list is empty with only "No Data Sources".
Same thing for graphs. both on the console and graph view. Everything else seems to work.

-J
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Interesting, what happens when you goto "Graph Management", select a Graph and Hit the Debug link?

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?
Jeppe
Posts: 47
Joined: Sun Feb 09, 2003 4:48 am
Contact:

Post by Jeppe »

Well, not much really since I can't see any graphs there either.
Only 'showing rows 1 to 30' and then 'no graphs found'.

Of course I've done some other upgrades without visiting cacti so I can't be sure if it's PHP 505 but that's the most logical thing anyway..

-J
Jeppe
Posts: 47
Joined: Sun Feb 09, 2003 4:48 am
Contact:

Post by Jeppe »

Well, this turned out to be MySQL 5.0.12 actually.

There's a bug in 5.0.12 regarding joins and it's fixed in 5.0.13.

Sorry about the trouble.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

No worries, good info to know. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
knyaz
Posts: 1
Joined: Thu Sep 29, 2005 8:57 am
Contact:

Post by knyaz »

hm, i have similar problem:
If I click eg. data sources, I get a header "Showing Rows 1 to 30 of 39 [1,2]"
but then the list is empty with only "No Data Sources".
Same thing for graphs
as described by Jeppe
This remains even after uprgade from MySQL 5.0.12 to MySQL 5.0.13 and dropping & creating cacti database.

Code: Select all

[localhost]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 12 to server version: 5.0.13-rc-standard-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use cacti;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select
    ->                 graph_templates_graph.id,
    ->                 graph_templates_graph.local_graph_id,
    ->                 graph_templates_graph.height,
    ->                 graph_templates_graph.width,
    ->                 graph_templates_graph.title_cache,
    ->                 graph_templates.name,
    ->                 graph_local.host_id
    ->                 from graph_local,graph_templates_graph
    ->                 left join graph_templates on graph_local.graph_template_id=graph_templates.id
    ->                 where graph_local.id=graph_templates_graph.local_graph_id
    ->                 and graph_templates_graph.title_cache like '%%%%'
    ->                 order by graph_templates_graph.title_cache,graph_local.host_id
    ->                 limit 0,30;
ERROR 1054 (42S22): Unknown column 'graph_local.graph_template_id' in 'on clause'
mysql> describe graph_local;
+-------------------+-----------------------+------+-----+---------+----------------+
| Field             | Type                  | Null | Key | Default | Extra          |
+-------------------+-----------------------+------+-----+---------+----------------+
| id                | mediumint(8) unsigned | NO   | PRI | NULL    | auto_increment |
| graph_template_id | mediumint(8) unsigned | NO   | MUL | 0       |                |
| host_id           | mediumint(8) unsigned | NO   | MUL | 0       |                |
| snmp_query_id     | mediumint(8)          | NO   |     | 0       |                |
| snmp_index        | varchar(100)          | NO   | MUL |         |                |
+-------------------+-----------------------+------+-----+---------+----------------+
5 rows in set (0.04 sec)
how can i fix this?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

We are currently not supporting mySQL 5.0, as it's not a full release.

When it is, we will have a patch or release to support it.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
rkramer
Cacti User
Posts: 54
Joined: Fri Jun 03, 2005 12:25 pm

Post by rkramer »

oops, should have read this thread 30 minutes ago! ;-) I have mysql 5.0.13-rc freshly installed and see the same issue. If you bypass the security in graph_image.php you can see the graphs if you go to them directly, but I still have the problem of it not showing up everywhere else.

btw, mysql5 seems FAST! a noticeable difference at least for polling and just moving around the system) I'm going to dig around a little more to figure out an easy way to at least remove enough of the security checks to get it operational again, I don't really want to go down in mysql versions. I'll post what else I find here.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

The fix is simple... Check out the bug database.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests