Got production.ERROR with last update

./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.51-33-ga9bd0f9
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP | 7.2.14-1+ubuntu16.04.1+deb.sury.org+1
MySQL | 10.0.38-MariaDB-0ubuntu0.16.04.1
RRDTool | 1.5.5
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

With last update I got this error in librenms.log:

[2019-05-11 10:34:23] production.ERROR: App\Http\Controllers\LegacyController::main(): Failed opening required '/opt/librenms/includes/includes/init.php' (include_path='.:/usr/share/php') {"userId":1,"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 64): App\\Http\\Controllers\\LegacyController::main(): Failed opening required '/opt/librenms/includes/includes/init.php' (include_path='.:/usr/share/php') at /opt/librenms/includes/html/legacy_api_v0.php:17)
[stacktrace]
#0 {main}
"} 

And my API call to add devices stopped working.
Seems to be duplicate path in:

/opt/librenms/includes/includes/init.php

1 Like

I have the same issue. Any updates?

Same problem here…

[2019-05-11 18:41:21] production.ERROR: App\Http\Controllers\LegacyController::main(): Failed opening required ‘/opt/librenms/includes/includes/init.php’ (include_path=’.:/usr/share/php’) {“userId”:3,“exception”:"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 64): App\Http\Controllers\LegacyController::main(): Failed opening required ‘/opt/librenms/includes/includes/init.php’ (include_path=’.:/usr/share/php’) at /opt/librenms/includes/html/legacy_api_v0.php:17)
[stacktrace]

[email protected]:~$ ./validate.php

Component Version
LibreNMS 1.51-33-ga9bd0f98a
DB Schema 2019_02_10_220000_add_dates_to_fdb (132)
PHP 7.2.17-0ubuntu0.18.04.1
MySQL 10.1.38-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

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

As a temporary fix, you can apply https://github.com/librenms/librenms/pull/10209
Just remember you’ll have to remove these changes later or daily updates won’t work.

10209 has been merged.