I cannot edit old alert templates, or add new ones

Validate says everything is fine:

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

Component Version
LibreNMS 1.65-27-g6e6fde9
DB Schema 2020_06_23_00522_alter_availability_perc_column (170)
PHP 7.2.17
Python 3.6.8
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

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

When I try to click “Update Template”, this shows up in librenms.log:

[2020-07-10 09:38:42] production.ERROR: View [::] not found. {"userId":4,"exception":"[object] (InvalidArgumentException(code: 0): View [::] not found. at /monitor/librenms/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137)
[stacktrace]
#0 /monitor/librenms/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php(79): Illuminate\\View\\FileViewFinder->findInPaths('::', Array)
#1 /monitor/librenms/vendor/laravel/framework/src/Illuminate/View/Factory.php(131): Illuminate\\View\\FileViewFinder->find('::')
#2 /monitor/librenms/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(961): Illuminate\\View\\Factory->make('::', Array, Array)
#3 /monitor/librenms/includes/html/forms/alert-templates.inc.php(38): view(Array, Array)
#4 /monitor/librenms/html/ajax_form.php(26): include_once('/monitor/libren...')
#5 {main}
"} 

This happens even with a template to which I have made no changes and try to commit it.

Hi!
Same problem here.

====================================
Component | Version
--------- | -------
LibreNMS  | 1.65-29-g32f72bc1a
DB Schema | 2020_06_23_00522_alter_availability_perc_column (170)
PHP       | 7.2.24-0ubuntu0.18.04.6
Python    | 3.6.9
MySQL     | 10.1.44-MariaDB-0ubuntu0.18.04.1
RRDTool   | 1.7.0
SNMP      | NET-SNMP 5.7.3
====================================
[OK]    Composer Version: 1.10.8
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

[2020-07-10 19:48:57] production.ERROR: View [::] not found. {"userId":1,"exception":"[object] (InvalidArgumentException(code: 0): View [::] not found. at /opt/librenms/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137)
[stacktrace]
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php(79): Illuminate\\View\\FileViewFinder->findInPaths('::', Array)
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/View/Factory.php(131): Illuminate\\View\\FileViewFinder->find('::')
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(961): Illuminate\\View\\Factory->make('::', Array, Array)
#3 /opt/librenms/includes/html/forms/alert-templates.inc.php(38): view(Array, Array)
#4 /opt/librenms/html/ajax_form.php(26): include_once('/opt/librenms/i...')
#5 {main}
"}

Run ./daily.sh and try again.

1 Like

Fixed! Thanks.

1 Like

Now it works.
Thanks!

I am seeing this same problem, but I’m running 1.65.1 on FreeBSD. This is a fairly new issue (I think since upgrading from 1.63 to 1.65). Running daily.sh didn’t fix it (likely because I’m not on the daily release train). This is affected editing alert templates as well as generating new alerts (I use Webex Teams as a transport). If there is a bug or PR I can see where this might be fixed, I can merge that manually.

For the record:

====================================
Component | Version
--------- | -------
LibreNMS  | 1.65.1
DB Schema | 2020_06_23_00522_alter_availability_perc_column (170)
PHP       | 7.2.31
Python    | 3.7.8
MySQL     | 5.6.49
RRDTool   | 1.7.2
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Installed from package; no Composer required
[OK]    Database connection successful
[OK]    Database schema correct