'Cannot Display Webpage' adding node

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
pwstrain
Posts: 11
Joined: Tue Nov 27, 2007 10:18 am

'Cannot Display Webpage' adding node

Post by pwstrain »

Successfully loaded Cacti with base debian install and configured all the plugins I needed. Everything going great until Weathermap.

I can add a map, the files show up in /configs. I can _look_ at a map in the edit screen. When I try to add a node, I immediately get a "Cannot Display Webpage" error and the following appears on the apache2 error log:
[Thu Jan 31 10:52:52 2008] [notice] child pid 2798 exit signal Segmentation fault (11)
[Thu Jan 31 10:52:52 2008] [notice] child pid 2894 exit signal Segmentation fault (11)

I can change the background, position the legend, etc. It's as soon as I add a node that the problem occurs. It also occurs if I select a map from the main 'wheathermaps' screen. I con only edit them if I go to "add" and then "view". Even then adding the node crashes it.

I've attached the 'tech_support" log if that helps.
Attachments
tech_spprt.txt
(19.51 KiB) Downloaded 516 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Did you run check.php? ( http://yourserver/cacti/plugins/weathermap/check.php )

This sounds like a GD fault to me. The node-drawing code uses a few transparency/alpha-related functions that have bugs in older versions of standalone GD. Debian (and Ubuntu too, for anyone searching) use the standalone GD library rather than the one that PHP comes with.

If that *is* what it is, and you have a GD version older than (I think) 2.0.33, then you need to upgrade GD. I believe this is in the stable branch of Debian now, but it may still be in testing/unstable.

(This is in the Weathermap FAQ, in a slightly different form, incidentally)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
pwstrain
Posts: 11
Joined: Tue Nov 27, 2007 10:18 am

Post by pwstrain »

I did have a gd problem early on that checkphp caught, but I was able to remedy via apt. i'll take a closer look at versions tomorrow... snowed in today!
pwstrain
Posts: 11
Joined: Tue Nov 27, 2007 10:18 am

Post by pwstrain »

So after running check.php from the command line, it indicated PEAR was not installed. I took care of that and both the web and command line checks in check.php ran clean.
However, I did notice that the web check.php indicates PHP5 installed, but the command line indicates php4. Could that be the root of the issue?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Well, you would need to be sure that you have both php4-gd and php5-gd installed... but check.php would complain there.

I don't think it's possible to have php4-gd and php5-gd using different GD versions, but this is Debian, so who knows how much 'flexibility' they have added in.

I'll try and produce some kind of test script today, to prove that this really is the issue.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
pwstrain
Posts: 11
Joined: Tue Nov 27, 2007 10:18 am

Post by pwstrain »

I have verified that gd for both versions of php have been installed.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Actually, what happens if you just use either of the demo maps?
(docs/example/example.conf or weathermap.conf)

Just add one into the Weathermap management screen and wait 10 minutes. Does that produce a map? or any cacti.log messages?

If it's a GD issue, it will affect those two maps too, even if you don't touch the editor.

Alternatively, if you don't want to wait 10 minutes, go to the plugins/weathermap directory in a shell window, and then just type 'php weathermap' - that should produce a weathermap.png from the default weathermap.conf file. If it segfaults, then we know it's not an editor bug specifically.

I'll still try and get a little test suite together though.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest