LibreNMS Dashboard

 This morning suddenly our LibreNMS Dashboard gave us this "Problem with backend" error:




And if I tried to insert a new widget there's an error:

"Database inconsistent: Your database is out of date!"

After googling and asking friends here's how to fix it:

librenms@VDC012001P:~$ ./validate.php

====================================

Component | Version

--------- | -------

LibreNMS  | 22.5.0-14-g32f1ce494

DB Schema | 2022_02_21_073500_add_iface_field_to_bgp_peers (237)

PHP       | 7.4.3

Python    | 3.8.10

MySQL     | 10.3.34-MariaDB-0ubuntu0.20.04.1

RRDTool   | 1.7.2

SNMP      | 5.8

====================================


[OK]    Composer Version: 2.3.5

[OK]    Dependencies up-to-date.

[OK]    Database connection successful

[FAIL]  Your database is out of date!

        [FIX]:

        ./lnms migrate


librenms@VDC012001P:~$ ./lnms migrate

**************

*     Application In Production!     *

**************


 Do you really wish to run this command? (yes/no) [no]:

 > yes


Migrating: 2022_05_25_084506_add_widgets_column_to_users_widgets_table

Migrated:  2022_05_25_084506_add_widgets_column_to_users_widgets_table (75.80ms)

Migrating: 2022_05_25_084617_migrate_widget_ids

Migrated:  2022_05_25_084617_migrate_widget_ids (31.51ms)

Migrating: 2022_05_25_085715_remove_user_widgets_id

Migrated:  2022_05_25_085715_remove_user_widgets_id (26.10ms)

Migrating: 2022_05_25_090027_drop_widgets_table

Migrated:  2022_05_25_090027_drop_widgets_table (10.76ms)

librenms@VDC012001P:~$


That's all folks. Have a great day

Komentar