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
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
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
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
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
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.
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.
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.
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.
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
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
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
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
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Created attachment 2022698 [details] Local patch This is the patch we created locally to get ganglia-web working
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 :-)
@Dr. Stephan Wonczak Feel free to submit pull requests to the up-stream source code. https://github.com/ganglia/ganglia-web
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.