Invalid username or password when connecting over LAN

I have a Raspberry Pi4 running the latest OS, SignalK, InfluxDB and Grafana. I’ve created a dashboard which is basically working on the Pi, still some work to do there. I’d like to be able to access Grafana over my network, if i enter the IP for the Pi (192.168.43.5:3000) i get the login page for Grafana, but when i enter the username and password i get the message “invalid username or password”. I have tried the same username and password that i use to log into Grafana on the Pi and the “admin” username, but neither work.

Any assistance would be appreciated.

Hi @paulr

When the login fails, what do the Grafana logs say? Any error messages?

I’m seeing the same issue on my Windows machine running Grafana 14.x

Works fine on the same machine using either community.grafana.com or the “machineIP”:3000.

When I move to a different machine on the same lan and try to connect on “machineIP”:3000 I get to the login screen and on entering my username and password, it fails with a popup that says: “Invalid username or password”

Log file entries are perhaps telling?

Entry for successful login from the same machine:

logger=http.server t=2022-08-06T07:52:26.6884289-07:00 level=info msg="Successful Login" User=admin@localhost

logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2022-08-06T07:52:26.9854021-07:00 level=info msg="Request Completed" method=GET path=/api/live/ws status=0 remote_addr=192.168.1.99 time_ms=1 duration=1.1141ms size=0 referer= traceID=00000000000000000000000000000000

Entry for the login attempt from a different machine: (It’s almost like the credentials are not getting sent over?)

logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2022-08-06T09:11:37.0395337-07:00 level=error msg="Invalid username or password" error="user not found" remote_addr=192.168.1.57 traceID=00000000000000000000000000000000
logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2022-08-06T09:11:37.0397136-07:00 level=info msg="Request Completed" method=POST path=/login status=401 remote_addr=192.168.1.57 time_ms=12 duration=12.1272ms size=87 referer=http://192.168.1.99:3000/login traceID=00000000000000000000000000000000

Any help appreciated.

Thanks.

P.S. I have opened up port 3000 on my firewall for the local network. – No Joy…

Hi, Matt.

Any thoughts on my post re: trouble logging into my Grafana server on my LAN? – Invalid username or password when connecting over LAN

Thanks!

What do you have for setting in your config default.ini? Localhost or ip

Here’s a snippet. Thanks!

Would it be better to specify http_addr = localhost ?

Check the following

Probably add the ip of server in

http_addr

Make sure to restart grafana

hmm… set the http_addr to the ip of my machine. Restarted grafana.

Now on the same machine, localhost doesn’t work, but the IP does. Other machines on the lan still see the login page but get the same error for an invalid username or password.

Clearly I’m missing something fundamental…

What kind of web server does pi have or is there such a concept of a web server or proxy server in pi?

I’m running on a windows 10 PC. Might be time to switch over to one of my Linux systems…