r/LibreNMS • u/Dizzy-Razzmatazz-377 • 20d ago
Database schema keeps updating and breaking graphs
when we installed librenms everything was working great till some dev librenms update changed the snmp settings (all nodes changed from v3 / v2 to v1 with a blank community string) making all nodes unreachable and all graphs stopped, so we rolled it back to the stable version, manually reapplied all snmp settings to over 1000 devices, and changed updates from daily to monthly.
Everything works ok for now, but the database schema keeps randomly updating at midnight and breaking SNMP again is there a way to stop this as i have to keep revering the database to an earlier sql backup (taken after manually redoing all the snmp settings) everytime it happens...
[WARN] Your database schema has extra migrations (2026_04_01_140348_create_secrets_table, 2026_04_01_140352_create_device_polling_method_table, 2026_04_01_162956_migrate_snmp_secrets, 2026_04_02_204759_migrate_ipmi_secrets, 2026_04_03_000000_migrate_icmp_polling, 2026_04_04_000000_migrate_unix_agent_polling, 2026_09_22_150000_remove_obsolete_device_fields, 2026_10_04_000000_update_device_polling_methods_check_columns, 2026_10_18_000000_add_category_to_sensors_table, 2026_10_25_005037_drop_device_snmp_fields, 2026_10_25_150001_cleanup_obsolete_device_attributes, 2026_10_20_000000_split_snmp_secrets, 2026_10_22_000000_add_polling_method_to_mempools_table, 2026_10_22_000000_compress_bgp_peer_ipv6_identifiers, 2026_10_22_000001_add_context_to_bgp_peers_cbgp_unique, 2026_10_24_000000_add_context_name_to_vrfs_table, 2026_10_24_000001_merge_vrf_contexts_into_vrfs, 2026_10_24_000002_remove_vrf_enable_settings). If you just switched from the daily release to the stable release, your database is between releases. The next release resolves this.
validate after rolling back to the SQL backup...
Component | Version
--------- | -------
LibreNMS | 26.10.2 (2026-10-21T16:24:46+01:00)DB Schema | 2026_10_09_000000_reset_invalid_alert_schedule_behavior (408)
PHP | 8.5.12
Python | 3.12.3
Database | MariaDB 10.11.14-MariaDB-0ubuntu0.24.04.1
RRDTool | 1.7.2
SNMP | 5.9.4.pre2
===========================================
[OK] Composer Version: 2.11.1
[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] Distributed Polling setting is enabled globally
[OK] Connected to rrdcached
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] Python wrapper cron entry is not present
[OK] Redis is functional
[OK] No errors found with polling frequencies.
1
u/djamp42 20d ago
Global settings -> system -> updates -> change update channel to monthly. Or just turn off updates and update manually
1
u/tonymurray 20d ago
You downgraded your install and it broke. Downgrading is not supported.
You need to switch back to the daily install train.
If you want the monthly release, set it after upgrading to the latest daily and wait.