cluster report not displayed

Bug #1822048 reported by Paul Jähne on 2019-03-28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ganglia-web (Ubuntu)

Bug Description

When you open the ganglia webfrontend in a browser there is nothing displayed in the cluster report. The host views work. There should be an overview of the cluster.

PHP Fatal error: Uncaught Error: [] operator not supported for strings in /usr/share/ganglia-webfrontend/cluster_view.php:34\nStack trace:\n#0 /usr/share/ganglia-webfrontend/cluster_view.php(757): get_picker_metrics(Array, Array, '/usr/share/gang...', 'rrdtool')\n#1 /usr/share/ganglia-webfrontend/index.php(51): include_once('/usr/share/gang...')\n#2 {main}\n thrown in /usr/share/ganglia-webfrontend/cluster_view.php on line 34, referer: https://monitoring/ganglia/

Description: Ubuntu 18.04.2 LTS
Release: 18.04
  Installed: 3.6.1-3
  Candidate: 3.6.1-3
  Version table:
 *** 3.6.1-3 500
        500 bionic/universe amd64 Packages
        500 bionic/universe i386 Packages
        100 /var/lib/dpkg/status

Paul Jähne (sethosii) wrote :

Removing the array operator seems to fix the problem.

The attachment "cluster_view.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Paul Jähne (sethosii) wrote :

The previous patch had a problem on updating (and probably for multiple clusters). This one doesn't and this is what is in the upstream repo:

Martin Gabelmann (m-gabelmann) wrote :

Can confirm, applying the upstream patch fixes it. So, updating to the latest ganglia-web version would be nice.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ganglia-web (Ubuntu):
status: New → Confirmed
Rene Meier (meier.rene) wrote :

I have the same issue and the upstream patch fixes it.

trautenberg (trautenberg) wrote :

I had the same problem. The upstream patch fixes it just partially. The view is not the way it should be.

trautenberg (trautenberg) wrote :

The problem was finally easy to be fixed. As stated above, the problem is in cluster_view.php, line34. Just going to line 26 and substituting

  $context_metrics = "";


  $context_metrics = array();

fixes the whole problem! The solution was found at

Sam Morrison (sorrison) wrote :

The affects Ubuntu 20.04 too

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.