PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 8388616 bytes) in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php on line 632
In HasRelationships.php line 632:
Allowed memory size of 536870912 bytes exhausted (tried to allocate 8388616 bytes)
Php memory limit was sert to 128MB by default, I never changed this value but I am still getting this error changing this value to 512MB.
I have updated to the latest version and still getting this error.
–Validate Output:
./validate.php
Component
Version
LibreNMS
22.7.0-68-ga40e1d5
DB Schema
2022_07_19_081224_plugins_unique_index (244)
PHP
7.3.33
Python
3.6.8
Database
MariaDB 10.5.13-MariaDB
RRDTool
1.4.8
SNMP
5.7.2
====================================
[OK] Composer Version: 2.3.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]
[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
Any clue? Could be related to some data missing in the database about this devices?
Does anyone knows how to remove this devices manually from the database?