Problems accessing the webbGUI

A couple weeks ago we ran into this, and modifying AppServiceProvider.php fixed it (thanks @PipoCanaja). The update to 1.44 though has restored the issue. We do not have APP_URL in .env or base_url in config.php set, though I’ve tried every variation with/without those two to no avail. Accessing the site just redirects to https://localhost/login .

Component | Version
--------- | -------
LibreNMS  | 1.44-14-g06df83498
DB Schema | 269
PHP       | 7.2.10-0ubuntu0.18.04.1
MySQL     | 5.7.23-0ubuntu0.18.04.1
RRDTool   | 1.7.0
SNMP      | NET-SNMP 5.7.3
====================================

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

One other thing I noticed last time was that while everyone was being redirected to localhost, I had one session that was still logged in, and it worked without issue until it got logged out.

having the same problem with the GUI as of today. we’ve got libre behind our F5 (so the f5 can present the cert) then doing a redirect, had no issues with this until today. tried the appserviceprovider.php fix, made no impact. APP_URL is commented out inside .env and base_url in config.php is not set either.

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

Component Version
LibreNMS 1.44
DB Schema 268
PHP 7.2.8
MySQL 5.5.56-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

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

The problem reoccurred for me this morning, too. While troubleshooting and trying to track any changes put in place related to APP_URL, I noticed a change was reverted which went in with 1.44, which it looked like my instanced updated to last night when daily.sh ran. To fix, re-ran daily.sh and the redirect to localhost went away. Here’s the current output from validate.php:

====================================
Component | Version
--------- | -------
LibreNMS  | 1.44-15-g46ca1fd
DB Schema | 269
PHP       | 7.0.31
MySQL     | 5.5.60-MariaDB
RRDTool   | 1.4.8
SNMP      | NET-SNMP 5.7.2
====================================

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

It’s working for me now too. I don’t think it was anything I did to fix it. Right now I’m running off the assumption that running /opt/librenms/daily.sh upgraded me from 1.44-14 to 1.44-19 and the fix was in there, as @bwilli indicated.

Component | Version
--------- | -------
LibreNMS  | 1.44-19-g3ed20e5f3
DB Schema | 269
PHP       | 7.2.10-0ubuntu0.18.04.1
MySQL     | 5.7.23-0ubuntu0.18.04.1
RRDTool   | 1.7.0
SNMP      | NET-SNMP 5.7.3
====================================

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