Bug 2180500 - ganglia-web not working due to changes in PHP 8
Summary: ganglia-web not working due to changes in PHP 8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: ganglia
Version: epel9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nick
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-21 15:09 UTC by Dr. Stephan Wonczak
Modified: 2024-03-23 00:32 UTC (History)
3 users (show)

Fixed In Version: ganglia-3.7.2-46.el9 ganglia-3.7.2-46.el8 ganglia-3.7.2-46.fc39 ganglia-3.7.2-46.fc38 ganglia-3.7.2-48.el9 ganglia-3.7.2-48.fc39 ganglia-3.7.2-48.el8 ganglia-3.7.2-48.fc40
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-03-04 00:40:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Local patch (12.11 KB, patch)
2024-03-20 12:03 UTC, Dr. Stephan Wonczak
no flags Details | Diff

Description Dr. Stephan Wonczak 2023-03-21 15:09:31 UTC
Description of problem:
The ganglia web interface does not work due to changes in PHP-8. 

Version-Release number of selected component (if applicable):

ganglia-3.7.2-40.el9.x86_64
ganglia-gmetad-3.7.2-40.el9.x86_64
ganglia-web-3.7.5-40.el9.x86_64

How reproducible:

Always

Steps to Reproduce:

1. Install ganglia (the packages mentioned above, plus dependencies)
2. start httpd 
3. call http://localhost/ganglia

Actual results:

nothing is displayed

Expected results:

ganglia web interface being displayed

Additional info:

PHP-8.0 seems to do stricter checking of arguments for functions than PHP-7.x 
Looking at the error log in /var/log/php-fpm/www-error.log :

[21-Mar-2023 14:51:24 UTC] PHP Warning:  "continue" targeting switch is equivalent to "break" in /usr/share/ganglia/functions.php on line 732
[21-Mar-2023 14:51:24 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function ganglia_api_error_handler(), 4 passed and exactly 5 expected in /usr/share/ganglia/lib/common_api.php:18
Stack trace:
#0 /usr/share/ganglia/ganglia.php(353): ganglia_api_error_handler()
#1 /usr/share/ganglia/get_ganglia.php(11): Gmetad()
#2 /usr/share/ganglia/index.php(7): include_once('...')
#3 {main}
  thrown in /usr/share/ganglia/lib/common_api.php on line 18

Comment 1 Fedora Update System 2024-02-24 18:59:04 UTC
FEDORA-EPEL-2024-fce897bfa8 (ganglia-3.7.2-46.el8) has been submitted as an update to Fedora EPEL 8.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-fce897bfa8

Comment 2 Fedora Update System 2024-02-24 18:59:04 UTC
FEDORA-EPEL-2024-3ff8291512 (ganglia-3.7.2-46.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-3ff8291512

Comment 3 Fedora Update System 2024-02-24 18:59:05 UTC
FEDORA-2024-11b9a6237d (ganglia-3.7.2-46.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-11b9a6237d

Comment 4 Fedora Update System 2024-02-24 18:59:05 UTC
FEDORA-2024-3e5447d01d (ganglia-3.7.2-46.fc38) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-3e5447d01d

Comment 5 Fedora Update System 2024-02-25 01:46:46 UTC
FEDORA-2024-3e5447d01d has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-3e5447d01d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-3e5447d01d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-02-25 01:58:53 UTC
FEDORA-EPEL-2024-3ff8291512 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-3ff8291512

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-02-25 02:02:50 UTC
FEDORA-EPEL-2024-fce897bfa8 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-fce897bfa8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-02-25 02:30:16 UTC
FEDORA-2024-11b9a6237d has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-11b9a6237d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-11b9a6237d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 mx 2024-02-26 12:36:58 UTC
I have tested the epel-testing inside el8 and el9, all works fine.

PS. may one want to run, may need change:

# fix error in browser page:  fsockopen error: Permission denied
setsebool -P httpd_can_network_connect 1

# fix error inside /var/log/php-fpm/www-error.log:
# PHP Fatal error:  Uncaught Exception: Unable to chmod /var/lib/ganglia-web/dwoo/compiled/./ to 493:
ausearch -c 'php-fpm' --raw | audit2allow -M my-phpfpm
semodule -X 300 -i my-phpfpm.pp

# fix 'zores CPUs and Hosts', ie., allow read the status date from gmond-hosts.
firewall-cmd --add-port=8649/udp --permanent
firewall-cmd --reload

Comment 10 Fedora Update System 2024-03-03 20:17:31 UTC
FEDORA-EPEL-2024-e14c8b1f37 (ganglia-3.7.2-47.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-e14c8b1f37

Comment 11 Fedora Update System 2024-03-03 20:17:32 UTC
FEDORA-2024-5730abe173 (ganglia-3.7.2-47.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-5730abe173

Comment 12 Fedora Update System 2024-03-03 20:17:33 UTC
FEDORA-2024-2e1c18277b (ganglia-3.7.2-47.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2e1c18277b

Comment 13 Fedora Update System 2024-03-03 20:17:33 UTC
FEDORA-EPEL-2024-56cf846e2b (ganglia-3.7.2-47.el8) has been submitted as an update to Fedora EPEL 8.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-56cf846e2b

Comment 14 Fedora Update System 2024-03-04 00:40:42 UTC
FEDORA-EPEL-2024-3ff8291512 (ganglia-3.7.2-46.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2024-03-04 01:05:55 UTC
FEDORA-EPEL-2024-fce897bfa8 (ganglia-3.7.2-46.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-03-04 01:11:49 UTC
FEDORA-2024-11b9a6237d (ganglia-3.7.2-46.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2024-03-04 01:24:36 UTC
FEDORA-EPEL-2024-56cf846e2b has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-56cf846e2b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2024-03-04 01:27:09 UTC
FEDORA-2024-3e5447d01d (ganglia-3.7.2-46.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2024-03-04 01:58:21 UTC
FEDORA-2024-5730abe173 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5730abe173`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5730abe173

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2024-03-04 02:05:58 UTC
FEDORA-EPEL-2024-e14c8b1f37 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-e14c8b1f37

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2024-03-04 02:07:11 UTC
FEDORA-2024-2e1c18277b has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2e1c18277b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2e1c18277b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 22 Fedora Update System 2024-03-11 00:22:18 UTC
FEDORA-EPEL-2024-817acb9184 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-817acb9184

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 23 Fedora Update System 2024-03-11 01:27:50 UTC
FEDORA-EPEL-2024-0b14f47805 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-0b14f47805

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 24 Fedora Update System 2024-03-11 01:39:40 UTC
FEDORA-2024-24a11df87a has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-24a11df87a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-24a11df87a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 25 Fedora Update System 2024-03-19 00:38:25 UTC
FEDORA-EPEL-2024-817acb9184 (ganglia-3.7.2-48.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 26 Fedora Update System 2024-03-19 01:10:15 UTC
FEDORA-2024-24a11df87a (ganglia-3.7.2-48.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 27 Fedora Update System 2024-03-19 01:21:38 UTC
FEDORA-EPEL-2024-0b14f47805 (ganglia-3.7.2-48.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 28 Dr. Stephan Wonczak 2024-03-20 12:03:23 UTC
Created attachment 2022698 [details]
Local patch

This is the patch we created locally to get ganglia-web working

Comment 29 Dr. Stephan Wonczak 2024-03-20 12:08:23 UTC
Hi!
I admit I am a bit late commenting again, after new packages are available already.
When no immediate reaction followed on my original bug report, we tried to get the web interface working by (quite literally) hacking the code without really understanding what we were doing. Magician's Apprentice method :-) 
We actually succeeded cobbling something together that allowed it to work correctly, as far as we could see and test.
I attached our local patch for your reference. Maybe it will provide an additional hint or two for you. If not, simply disregard out amateur attempts :-)

Comment 30 mx 2024-03-20 12:27:44 UTC
@Dr. Stephan Wonczak

Feel free to submit pull requests to the up-stream source code. https://github.com/ganglia/ganglia-web

Comment 31 Fedora Update System 2024-03-23 00:32:52 UTC
FEDORA-2024-318c03a4ce (ganglia-3.7.2-48.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.