Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truenas SCALE 25.x fails to discover storage module #499

Open
3 tasks done
hugalafutro opened this issue Mar 6, 2025 · 0 comments
Open
3 tasks done

Truenas SCALE 25.x fails to discover storage module #499

hugalafutro opened this issue Mar 6, 2025 · 0 comments

Comments

@hugalafutro
Copy link

Support guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

After updating TrueNAS to latest beta 25 I see this in ui:

Error discovering storage module. Check log file for more details.

Expected behaviour

no error

Actual behaviour

error on each discovery

Steps to reproduce

1 update truenas to 25 branch
2 rediscover
3 see error

Docker info

Client: Docker Engine - Community
 Version:    28.0.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.21.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.33.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 45
  Running: 45
  Paused: 0
  Stopped: 0
 Images: 42
 Server Version: 28.0.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc version: v1.2.4-0-g6c52b3f
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.1.0-31-amd64
 Operating System: Debian GNU/Linux 12 (bookworm)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 15.62GiB
 Name: docker-vm
 ID: 18ef6d12-9b3a-4cb9-9d1a-5986495872b1
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

Docker Compose config

not relevant

Logs

[2025-03-06T12:00:17][ERROR] %rError discovering storage module for turbofreenas.lan.%n TypeError: LibreNMS\Util\Number::fillMissingRatio(): Argument #6 ($multiplier) must be of type int|float, string given, called in /opt/librenms/app/Models/Storage.php on line 41 and defined in /opt/librenms/LibreNMS/Util/Number.php:265
Stack trace:
#0 /opt/librenms/app/Models/Storage.php(41): LibreNMS\Util\Number::fillMissingRatio()
#1 /opt/librenms/LibreNMS/OS/Traits/YamlStorageDiscovery.php(61): App\Models\Storage->fillUsage()
#2 [internal function]: LibreNMS\OS->LibreNMS\OS\Traits\{closure}()
#3 /opt/librenms/LibreNMS/Discovery/YamlDiscoveryDefinition.php(163): call_user_func()
#4 /opt/librenms/LibreNMS/OS/Traits/YamlStorageDiscovery.php(69): LibreNMS\Discovery\YamlDiscoveryDefinition->discover()
#5 /opt/librenms/LibreNMS/OS/Truenas.php(13): LibreNMS\OS->discoverYamlStorage()
#6 /opt/librenms/LibreNMS/Modules/Storage.php(61): LibreNMS\OS\Truenas->discoverStorage()
#7 /opt/librenms/includes/discovery/storage.inc.php(9): LibreNMS\Modules\Storage->discover()
#8 /opt/librenms/includes/discovery/functions.inc.php(172): include('...')
#9 /opt/librenms/discovery.php(108): discover_device()
#10 {main} {"color":true} 
[2025-03-06T12:00:17][ERROR] LibreNMS\Util\Number::fillMissingRatio(): Argument #6 ($multiplier) must be of type int|float, string given, called in /opt/librenms/app/Models/Storage.php on line 41 {"exception":"[object] (TypeError(code: 0): LibreNMS\\Util\\Number::fillMissingRatio(): Argument #6 ($multiplier) must be of type int|float, string given, called in /opt/librenms/app/Models/Storage.php on line 41 at /opt/librenms/LibreNMS/Util/Number.php:265)"}

Additional info

validate:

===========================================
Component | Version
--------- | -------
LibreNMS  | 25.2.0 (2025-02-23T13:02:21+00:00)
DB Schema | 2025_01_30_000121_add_ifindex_index_to_ports_table (315)
PHP       | 8.3.17
Python    | 3.12.9
Database  | MariaDB 10.5.28-MariaDB-ubu2004
RRDTool   | 1.9.0
SNMP      | 5.9.4
===========================================

[OK]    Installed from the official Docker image; no Composer required
[OK]    Database connection successful
[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 is enabled
[OK]    Locks are functional
[OK]    No python wrapper pollers found
[OK]    Redis is functional
[OK]    rrd_dir is writable
[OK]    rrdtool version ok
[WARN]  Updates are managed through the official Docker image

full discovery log:

LibreNMS Discovery
turbofreenas.lan 50 truenas 
#### Load disco module core ####
OS: TrueNAS (truenas)
  

>> Runtime for discovery module 'core': 0.0690 seconds with 82240 bytes
>> SNMP: [1/0.04s] MySQL: [0/0.00s] RRD: [0/0.00s]  
#### Unload disco module core ####


#### Load disco module os ####
Location: kitchen  
Hardware: x86_64 Intel(R) Atom(TM) CPU C3558R @ 2.40GHz  
OS Version: 25.04-BETA.1  
OS Features:   
Serial:   

>> Runtime for discovery module 'os': 0.0850 seconds with 212432 bytes
>> SNMP: [4/0.06s] MySQL: [1/0.01s] RRD: [0/0.00s]  
#### Unload disco module os ####


#### Load disco module ports ####
.........

>> Runtime for discovery module 'ports': 0.1310 seconds with 30112 bytes
>> SNMP: [5/0.12s] MySQL: [10/0.07s] RRD: [0/0.00s]  
#### Unload disco module ports ####


#### Load disco module ports-stack ####

>> Runtime for discovery module 'ports-stack': 0.0270 seconds with 1104 bytes
>> SNMP: [1/0.03s] MySQL: [0/0.00s] RRD: [0/0.00s]  
#### Unload disco module ports-stack ####

Module [ xdsl ] disabled globally.


#### Load disco module entity-physical ####

>> Runtime for discovery module 'entity-physical': 0.0320 seconds with 71848 bytes
>> SNMP: [1/0.03s] MySQL: [1/0.01s] RRD: [0/0.00s]  
#### Unload disco module entity-physical ####

Module [ entity-state ] disabled globally.

Module [ isis ] disabled globally.


#### Load disco module processors ####
Host Resources:   
....

>> Runtime for discovery module 'processors': 0.0560 seconds with 13024 bytes
>> SNMP: [2/0.05s] MySQL: [6/0.04s] RRD: [0/0.00s]  
#### Unload disco module processors ####


#### Load disco module mempools ####
x  
UU.U.  
Physical memory (system): 66%  20.72 GiB / 31.32 GiB  
Virtual memory (virtual): 81%  25.39 GiB / 31.32 GiB  
Memory buffers (buffers): 0%  5.12 MiB / 31.32 GiB  
Cached memory (cached): 15%  4.67 GiB / 31.32 GiB  
Shared memory (shared): 0%  22.36 MiB / 31.32 GiB  

>> Runtime for discovery module 'mempools': 0.1280 seconds with 94800 bytes
>> SNMP: [2/0.11s] MySQL: [4/0.07s] RRD: [0/0.00s]  
#### Unload disco module mempools ####


#### Load disco module cisco-vrf-lite ####

>> Runtime for discovery module 'cisco-vrf-lite': 0.0010 seconds with 88 bytes
>> SNMP: [0/0.00s] MySQL: [1/0.01s] RRD: [0/0.00s]  
#### Unload disco module cisco-vrf-lite ####

Module [ cisco-mac-accounting ] disabled globally.

Module [ cisco-pw ] disabled globally.

Module [ vrf ] disabled globally.

Module [ cisco-cef ] disabled globally.

Module [ slas ] disabled globally.

Module [ cisco-otv ] disabled globally.

Module [ cisco-qfp ] disabled globally.


#### Load disco module ipv4-addresses ####


>> Runtime for discovery module 'ipv4-addresses': 0.3650 seconds with 97832 bytes
>> SNMP: [13/0.35s] MySQL: [9/0.07s] RRD: [0/0.00s]  
#### Unload disco module ipv4-addresses ####


#### Load disco module ipv6-addresses ####


>> Runtime for discovery module 'ipv6-addresses': 0.1270 seconds with 3592 bytes
>> SNMP: [4/0.12s] MySQL: [1/0.01s] RRD: [0/0.00s]  
#### Unload disco module ipv6-addresses ####


#### Load disco module qos ####

>> Runtime for discovery module 'qos': 0.0000 seconds with 144 bytes
>> SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]  
#### Unload disco module qos ####

Module [ route ] disabled globally.


#### Load disco module transceivers ####

>> Runtime for discovery module 'transceivers': 0.0000 seconds with 160 bytes
>> SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]  
#### Unload disco module transceivers ####


#### Load disco module sensors ####
Caching data: os storage sensors 
 ENTITY-SENSOR: Caching OIDs: entPhysicalDescr
Airflow: 
Current: 
Charge: 
Dbm: 
Fanspeed: 
Frequency: 
Humidity: 
Load: 
Loss: 
Power: 
Power_consumed: 
Power_factor: 
Runtime: 
Signal: 
State: ~  
~  
~  

Count: ........
Temperature: LM-SENSORS-MIB: 
UUU
Tv_signal: 
Bitrate: 
Voltage: 
Snr: 
Pressure: 
Cooling: 
Delay: 
Quality_factor: 
Chromatic_dispersion: 
Ber: 
Eer: 
Waterflow: 
Percent: 

>> Runtime for discovery module 'sensors': 1.0340 seconds with 290576 bytes
>> SNMP: [36/0.99s] MySQL: [4/0.08s] RRD: [0/0.00s]  
#### Unload disco module sensors ####


#### Load disco module storage ####
Error discovering storage module for turbofreenas.lan. TypeError: LibreNMS\Util\Number::fillMissingRatio(): Argument #6 ($multiplier) must be of type int|float, string given, called in /opt/librenms/app/Models/Storage.php on line 41 and defined in /opt/librenms/LibreNMS/Util/Number.php:265
Stack trace:
#0 /opt/librenms/app/Models/Storage.php(41): LibreNMS\Util\Number::fillMissingRatio()
#1 /opt/librenms/LibreNMS/OS/Traits/YamlStorageDiscovery.php(61): App\Models\Storage->fillUsage()
#2 [internal function]: LibreNMS\OS->LibreNMS\OS\Traits\{closure}()
#3 /opt/librenms/LibreNMS/Discovery/YamlDiscoveryDefinition.php(163): call_user_func()
#4 /opt/librenms/LibreNMS/OS/Traits/YamlStorageDiscovery.php(69): LibreNMS\Discovery\YamlDiscoveryDefinition->discover()
#5 /opt/librenms/LibreNMS/OS/Truenas.php(13): LibreNMS\OS->discoverYamlStorage()
#6 /opt/librenms/LibreNMS/Modules/Storage.php(61): LibreNMS\OS\Truenas->discoverStorage()
#7 /opt/librenms/includes/discovery/storage.inc.php(9): LibreNMS\Modules\Storage->discover()
#8 /opt/librenms/includes/discovery/functions.inc.php(172): include('...')
#9 /opt/librenms/discovery.php(108): discover_device()
#10 {main}  
LibreNMS\Util\Number::fillMissingRatio(): Argument #6 ($multiplier) must be of type int|float, string given, called in /opt/librenms/app/Models/Storage.php on line 41 {"exception":"[object] (TypeError(code: 0): LibreNMS\\Util\\Number::fillMissingRatio(): Argument #6 ($multiplier) must be of type int|float, string given, called in /opt/librenms/app/Models/Storage.php on line 41 at /opt/librenms/LibreNMS/Util/Number.php:265)"} 

>> Runtime for discovery module 'storage': 0.0870 seconds with 419072 bytes
>> SNMP: [1/0.04s] MySQL: [3/0.04s] RRD: [0/0.00s]  
#### Unload disco module storage ####


#### Load disco module hr-device ####
...............................

>> Runtime for discovery module 'hr-device': 0.1330 seconds with 44696 bytes
>> SNMP: [2/0.07s] MySQL: [63/0.54s] RRD: [0/0.00s]  
#### Unload disco module hr-device ####


#### Load disco module discovery-protocols ####
 LLDP-MIB:  LLDP-V2-MIB: 
 OSPF Discovery: 

>> Runtime for discovery module 'discovery-protocols': 0.0810 seconds with -320 bytes
>> SNMP: [2/0.08s] MySQL: [3/0.03s] RRD: [0/0.00s]  
#### Unload disco module discovery-protocols ####


#### Load disco module arp-table ####
br1: 
.........
: 

: 

: 

incusbr0: 

: 

: 

-

>> Runtime for discovery module 'arp-table': 0.0750 seconds with 92296 bytes
>> SNMP: [2/0.06s] MySQL: [10/0.09s] RRD: [0/0.00s]  
#### Unload disco module arp-table ####

Module [ discovery-arp ] disabled globally.

Module [ junose-atm-vp ] disabled globally.

Module [ bgp-peers ] disabled on os.


#### Load disco module vlans ####
IEEE8021-Q-BRIDGE-MIB VLANs: 

>> Runtime for discovery module 'vlans': 0.0660 seconds with 912 bytes
>> SNMP: [2/0.06s] MySQL: [1/0.01s] RRD: [0/0.00s]  
#### Unload disco module vlans ####

Module [ vminfo ] disabled globally.

Module [ printer-supplies ] disabled globally.


#### Load disco module ucd-diskio ####
...................................

>> Runtime for discovery module 'ucd-diskio': 0.1020 seconds with 103392 bytes
>> SNMP: [1/0.07s] MySQL: [36/0.24s] RRD: [0/0.00s]  
#### Unload disco module ucd-diskio ####

Module [ applications ] disabled globally.


#### Load disco module services ####

>> Runtime for discovery module 'services': 0.0000 seconds with 80 bytes
>> SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]  
#### Unload disco module services ####

Module [ stp ] disabled on os.


#### Load disco module ntp ####

>> Runtime for discovery module 'ntp': 0.0000 seconds with 80 bytes
>> SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]  
#### Unload disco module ntp ####

Module [ loadbalancers ] disabled globally.

Module [ mef ] disabled globally.

Module [ wireless ] disabled on os.


#### Load disco module fdb-table ####


>> Runtime for discovery module 'fdb-table': 0.0670 seconds with -304 bytes
>> SNMP: [0/0.00s] MySQL: [2/0.02s] RRD: [0/0.00s]  
#### Unload disco module fdb-table ####

Module [ mpls ] disabled on os.

Discovered in 3.785 seconds


SNMP [80/2.29s]: Snmpget[20/0.52s] Snmpwalk[48/1.49s] Snmptranslate[12/0.28s]  
SQL [160/1.45s]: Select[108/0.94s] Update[47/0.45s] Delete[4/0.04s] Insert[1/0.02s]  
RRD [0/0.00s]:   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant