Hello!
Just upgraded to LibreNMS 25.4.0 when i saw this error,
Is this something I need to act on, or does it have to do with the change to Laravel-permissions instead of Bouncer for permissions and roles?
librenms@server:~$ ./daily.sh
Fetching new release information OK
Updating to latest release OK
PHP Fatal error: Trait "Spatie\Permission\Traits\HasRoles" not found in /opt/librenms/app/Models/User.php on lin e 22
In User.php line 22:
Trait "Spatie\Permission\Traits\HasRoles" not found
PHP Fatal error: Trait "Spatie\Permission\Traits\HasRoles" not found in /opt/librenms/app/Models/User.php on lin e 22
In User.php line 22:
Trait "Spatie\Permission\Traits\HasRoles" not found
Updating Composer packages OK
Updated from 25.3.0 to 25.4.0 OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@server:~$ ./validate.php
Component | Version |
---|---|
LibreNMS | 25.4.0 (2025-04-14T14:11:19+02:00) |
DB Schema | 2025_03_22_134124_fix_ipv6_addresses_id_type (331) |
PHP | 8.3.6 |
Python | 3.12.3 |
Database | MariaDB 10.11.11-MariaDB-0ubuntu0.24.04.2 |
RRDTool | 1.7.2 |
SNMP | 5.9.4.pre2 |
=========================================== |
[OK] Composer Version: 2.8.8
[OK] Dependencies up-to-date.
[OK] Database Connected
[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