Webpage will no longer load after updating PHP to 8.1

Running RHEL7; updated from PHP7.4 to PHP8.1 per notification from the application and webpage no longer loads. I get the following code showing up when loading the page:

make(Kernel::class); $response = tap($kernel->handle( $request = Request::capture() ))->send(); $kernel->terminate($request, $response);

Daily.sh and validate.php show no issues or errors:

bash-4.2$ ./validate.php

Component Version
LibreNMS 22.11.0 (2022-11-24T01:01:26-05:00)
DB Schema 2022_08_15_084507_add_rrd_type_to_wireless_sensors_table (248)
PHP 8.1.13
Python 3.6.8
Database MariaDB 10.2.41-MariaDB
RRDTool 1.7.1
SNMP 5.7.2

===========================================

[OK] Composer Version: 2.4.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK]
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached

bash-4.2$ ./daily.sh
Fetching new release information OK
Updating to latest release OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Caching Mac OUI data OK

What do you find in /opt/librenms/logs/librenms.log as well as the error logs for your web server (nginx or apache, probably)?

in the librenms.log file…these show up occasionally:

[2022-12-05T11:39:59.226763-05:00] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {“exception”:"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /nms/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:496)"}

[2022-12-05T11:40:03.652382-05:00] production.ERROR: Geocoding failed. {“response”:{“authenticationResultCode”:“DeniedCredentials”,“brandLogoUri”:“http://dev.virtualearth.net/Branding/logo_powered_by.png",“copyright”:"Copyright © 2022 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.”,“errorDetails”:[“The request was forbidden. Your credentials may be denied or suspended.”],“resourceSets”:[],“statusCode”:403,“statusDescription”:“Forbidden”,“traceId”:“edb7a5075b844862aaa6ae18fa535acb|BN00005040|0.0.0.1”}}

Are you out of memory? Please fix that, and if the issues continue, please also post your web server logs.

Polling and alerting are working fine; it’s just the web front-end which won’t load and gives that error:

make(Kernel::class); $response = tap($kernel->handle( $request = Request::capture() ))->send(); $kernel->terminate($request, $response);

top - 11:56:40 up 2 days, 18:34, 1 user, load average: 5.38, 8.28, 9.05
Tasks: 788 total, 3 running, 785 sleeping, 0 stopped, 0 zombie
%Cpu(s): 10.9 us, 12.4 sy, 0.0 ni, 75.7 id, 0.4 wa, 0.0 hi, 0.6 si, 0.0 st
KiB Mem : 16264976 total, 295908 free, 5617032 used, 10352036 buff/cache
KiB Swap: 2097148 total, 1849084 free, 248064 used. 8016020 avail Mem

[root]# more /etc/httpd/logs/error_log
[Sun Dec 04 03:14:02.207187 2022] [lbmethod_heartbeat:notice] [pid 2264:tid 140474608494720] AH02282: No slotmem from mod_heartmonitor
[Sun Dec 04 03:14:02.209991 2022] [mpm_event:notice] [pid 2264:tid 140474608494720] AH00489: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 con
figured – resuming normal operations
[Sun Dec 04 03:14:02.210026 2022] [core:notice] [pid 2264:tid 140474608494720] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’

[root@hqlx-prd-nms-01 log]# tail -f /etc/httpd/logs/access_log
10.254.147.25 - - [05/Dec/2022:12:14:36 -0500] “GET / HTTP/1.1” 304 - “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36”
10.254.147.25 - - [05/Dec/2022:12:14:42 -0500] “GET / HTTP/1.1” 304 - “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36”
10.254.147.25 - - [05/Dec/2022:12:14:42 -0500] “GET / HTTP/1.1” 304 - “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36”
^C
[root]# tail -f /etc/httpd/logs/access_log
10.254.147.25 - - [05/Dec/2022:12:14:36 -0500] “GET / HTTP/1.1” 304 - “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36”
10.254.147.25 - - [05/Dec/2022:12:14:42 -0500] “GET / HTTP/1.1” 304 - “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36”
10.254.147.25 - - [05/Dec/2022:12:14:42 -0500] “GET / HTTP/1.1” 304 - “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36”

You could have a look at Website error : $response = tap($kernel->handle( $request = Request::capture() ))->send() - #5 by hpenhp … there was also a recent post about someone having some updates also dealing with PHP-FPM from memory ?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.