[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX] Check your poll log and see: Performance - LibreNMS Docs
Devices:
" three devices"
Hey, found what was the fault on our at least, it was in the file â.envâ in /opt/librenms that had âAPP_URLâ still on our old address. Try changing it to the new address you have.
Seeing the same problem here. Have tried every combination of commenting out or not commenting out APP_URL in .env and $config[âbase_urlâ] in config.php but no matter what it always redirects to https://localhost/login when trying to login. After each change of APP_URL or $config[âbase_urlâ], Iâve restarted httpd and php on the box but no change. Tried to clear cookies and attempted accessing through an incognito window in Chrome, again no difference. Same problem exists in Firefox and Edge browsers. Output of validate.php is below. This problem first started overnight today.
Same issue here. It looks like this patch solves the issue :
-bash-4.2$ git diff
diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
index b7c2def..77f2c6e 100644
--- a/app/Providers/AppServiceProvider.php
+++ b/app/Providers/AppServiceProvider.php
@@ -33,7 +33,7 @@ class AppServiceProvider extends ServiceProvider
Log::useFiles(Config::get('log_file', base_path('logs/librenms.log')), 'error');
// Set root url according to user's settings
- \URL::forceRootUrl(\Config::get('app.url'));
+ \URL::forceRootUrl(\Config::get('base_url'));
// Blade directives (Yucky because of < L5.5)
Blade::directive('config', function ($key) {
Does it make sense ? The option is indeed âbase_urlâ and I donât know where this app.url comes from. In my environnement, the issue is now solved.
You shouldnât need to change that. Check you donât have APP_URL set in .env file. You should also check if your web server hostname is configured correctly.
I didnât have APP_URL set in .env, it was commented out. Also didnât have base_url configurated in config.php, also commented out. The change to opt/librenms/app/Providers/AppServiceProvider.php that was recommended above fixed my issues. I have ServerName configured in my librenms.conf Apache configuration file.