Enabling Email alerts return "Error: No config item"

SQL[select `config_name` from `config` [] 0.37ms]

Dear Murrant, i have the same problem that SandMouse.

All itā€™s ok, but when i want ā€œEnable email alertingā€ say the error ā€œERROR: no config itemā€

And another strange thing is that when the mouse pointer passes over the descriptor nothing appears.

The output for php artisan db:seed --class=DefaultConfigSeeder --force -vvv:

SQL[select config_name from config [] 0.45ms]

Thanks

1 Like

Iā€™m also having the same error when trying to enable the mail alerts. My output looks the same as above as well, thanks for the help.

1 Like

I just ran ./daily.sh by hand:

librenms@librenms:~$ ./daily.sh
Updating to latest codebase                        OK
Updating Composer packages                         OK
Updated from db488807e to 49f206f58                OK
Updating SQL-Schema                                OK
Updating submodules                                OK
Cleaning up DB                                     OK
Fetching notifications                             OK
Caching PeeringDB data                             OK
librenms@librenms:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.48.1-10-g49f206f58
DB Schema | 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP       | 7.2.10-0ubuntu0.18.04.1
MySQL     | 10.1.34-MariaDB-0ubuntu0.18.04.1
RRDTool   | 1.7.0
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.8.3
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

Note the update:

Updated from db488807e to 49f206f58 

then I ran:

librenms@librenms:~$ php artisan db:seed --class=DefaultConfigSeeder
**************************************
*     Application In Production!     *
**************************************

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

librenms@librenms:~$

Still no joy.

It seems as if Murrant has written a patch: https://github.com/librenms/librenms/commit/1bb782b6d53eb9a5a79618e8d84df0b7db13cc92 But even after

Updated from db488807e to 49f206f58

The required text is not in the file DefaultConfigSeeder.php

 [
                "config_name" => "alert.transports.mail",
                "config_value" => "false",
                "config_default" => "false",
                "config_descr" => "Mail alerting transport",
                "config_group" => "alerting",
                "config_group_order" => "0",
                "config_sub_group" => "transports",
                "config_sub_group_order" => "0",
                "config_hidden" => "0",
                "config_disabled" => "0",
            ],

I would be able to add this by hand but I prefer to stick to the daily updates. I would not mind testing the pull request: https://github.com/librenms/librenms/pull/9721 But Iā€™m afraid the described procedure lacks enough detail for me.

I noted that my installation is up to date with ā€˜origin/masterā€™. :

librenms@librenms:~$ git status
On branch master
Your branch is up to date with 'origin/master'.
  • Would it help if I submitted certain log files?
  • Is there anything else I can do to resolve this issue?
  • How can I check what branch daily.sh is pulling?

Any help is very much appreciated.

2 Likes

Dear SandMouse,

After add the text that you say in the file DefaultConfSeeder.php, itā€™s workinggg!!!

Thankssssssssss!!!

image

Apparently, the second fix removed alert.transports.mail again. Re-merging it.

Confirmed. Setting ā€œEnable email alertingā€ to ā€œyesā€ works without changing the file manually.

librenms@librenms:~$ php artisan db:seed --class=DefaultConfigSeeder
**************************************
*     Application In Production!     *
**************************************

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

librenms@librenms:~$ ./daily.sh
Updating to latest codebase                        OK
Updating Composer packages                         OK
Updating SQL-Schema                                OK
Updating submodules                                OK
Cleaning up DB                                     OK
Fetching notifications                             OK
Caching PeeringDB data                             OK
librenms@librenms:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.48.1-21-g9eaca7f9d
DB Schema | 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP       | 7.2.10-0ubuntu0.18.04.1
MySQL     | 10.1.34-MariaDB-0ubuntu0.18.04.1
RRDTool   | 1.7.0
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.8.3
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
librenms@librenms:~$

I consider this issue closed. Thank you for your effort Murrant.