Install LibreNMS Debian 9.8.1

Hi, i need your help to install librenms on debian 9.8.1 with PHP 7.2, the install is successfull but not running application.

[ ok ] Restarting apache2 (via systemctl): apache2.service.
[email protected]:/opt/librenms$ ./validate.php ====================================

Component Version
LibreNMS 1.48.1-85-gee7605742
DB Schema 2019_02_10_220000_add_dates_to_fdb (132)
PHP 7.2.15-1+0~20190209065123.16+stretch~1.gbp3ad8c0
MySQL 10.1.37-MariaDB-0+deb9u1
RRDTool 1.6.0
SNMP NET-SNMP 5.7.3
====================================

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

image

[2019-02-26 18:45:21] production.ERROR: No application encryption key has been specified. {“exception”:"[object] (RuntimeException(code: 0): No application encryption key has been specified. at /opt/librenms/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:44)
[stacktrace]
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/helpers.php(1027): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(‘’)
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(48): tap(‘’, Object(Closure))
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(24): Illuminate\Encryption\EncryptionServiceProvider->key(Array)
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(776): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(App\Application), Array)
#4 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(658): Illuminate\Container\Container->build(Object(Closure))
#5 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(609): Illuminate\Container\Container->resolve(‘encrypter’, Array)
#6 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(759): Illuminate\Container\Container->make(‘encrypter’, Array)
#7 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): Illuminate\Foundation\Application->make(‘encrypter’)
#8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(840): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#9 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(807): Illuminate\Container\Container->resolveDependencies(Array)
#10 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(658): Illuminate\Container\Container->build(‘App\\Http\\Middle…’)
#11 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(609): Illuminate\Container\Container->resolve(‘App\\Http\\Middle…’, Array)
#12 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(759): Illuminate\Container\Container->make(‘App\\Http\\Middle…’, Array)
#13 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(215): Illuminate\Foundation\Application->make(‘App\\Http\\Middle…’)
#14 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\Foundation\Http\Kernel->terminateMiddleware(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#15 /opt/librenms/html/index.php(58): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#16 {main}
"}

As librenms user run

./scripts/composer_wrapper.php install --no-dev

if that doesn’t fix it then

php artisan key:generate

check /opt/librenms/.env file you should have that key and your database credentials

Ohhhhhh yeah!!! thank you!!!

1 Like