I cannot get port statistics for any device

This morning I suddenly got the following error when I didn’t make any changes. Please help me to fix that.

Error page:

librenms.log:

Trying to access array offset on value of type null {“view”:{“view”:“/opt/librenms/resources/views/device/index.blade.php”,“data”:},“userId”:43,“exception”:“[object] (Spatie\LaravelIgnition\Exceptions\ViewException(code: 0): Trying to access array offset on value of type null at /opt/librenms/app/Http/Controllers/Device/Tabs/NetflowController.php:39)
[previous exception] [object] (ErrorException(code: 0): Trying to access array offset on value of type null at /opt/librenms/app/Http/Controllers/Device/Tabs/NetflowController.php:39)”}

validate.php:
$ ./validate.php

Component Version
LibreNMS 24.6.0-6-g592ea1c26 (2024-06-17T22:09:33+08:00)
DB Schema 2024_04_29_183605_custom_maps_drop_background_suffix_and_background_version (294)
PHP 8.1.11
Python 3.6.9
Database MySQL 5.7.42-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP 5.7.3
===========================================

[OK] Composer Version: 2.7.7
[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] Database and column collations are correct
[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] rrd_dir is writable
[OK] rrdtool version ok
$

Here we cant open the ports page:

Call to a member function displayName() on null {“view”:{“view”:“/opt/librenms/resources/views/components/port-link.blade.php”,“data”:},“userId”:46,“exception”:“[object] (Spatie\LaravelIgnition\Exceptions\ViewException(code: 0): Call to a member function displayName() on null at /opt/librenms/resources/views/components/port-link.blade.php:4)
[previous exception] [object] (Error(code: 0): Call to a member function displayName() on null at /opt/librenms/storage/framework/views/78eb6cfc8bfb5dadb61279e2703027c8.php:13)”}

$ ./validate.php

Component Version
LibreNMS 24.6.0-1294-gd837444e7 (2024-06-18T07:00:10-03:00)
DB Schema 2024_04_29_183605_custom_maps_drop_background_suffix_and_background_version (294)
PHP 8.2.0
Python 3.9.2
Database MariaDB 10.3.25-MariaDB-0+deb10u1
RRDTool 1.7.1
SNMP 5.7.3
===========================================

[OK] Composer Version: 2.7.7
[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] Database and column collations are correct
[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

update to latest codebase with ./daily.sh . this fixed it for me.

Sorry, It did not work. Is there any other solution?

Same problem here, update with daily.sh doesn’t help.

Hello. Same problem with ports

But link:

  • librenms/device/XX/ports isn’t work
  • librenms/device/XX/ports/basic - work

For different devices errors gone after updating port settings in the preference for the device librenms/device/XX/edit/section=ports by pressing “Save Toggles”
For juniper devices, it doesn’t help

Thanks

1 Like

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