Wrong IP address displayed at login (solved)

Hi,

I just installed a complete new version of openHABian (1.3 / 2.1.0-1) on a RPI3 and installation was succesful!
One of the first things I did was to change the dynamic into a static ip address using https://parg.co/Uuc
Also this went ok except that after logging over SSH, still the old (dynamic) IP is shown:

###############################################################################
################# openHAB21 ###################################################
###############################################################################
##             Ip = 192.168.2.80
##        Release = Raspbian GNU/Linux 8 (jessie)
##         Kernel = Linux 4.9.35-v7+
##       Platform = Raspberry Pi 3 Model B Rev 1.2
##         Uptime = 0 day(s). 0:1:51
##      CPU Usage = 12.75 % avg over 4 cpu(s)  (4 core(s) x 1 socket(s))
##       CPU Load = 1m: 0.86, 5m: 0.50, 15m: 0.19
##         Memory = Free: 0.67GB (71%), Used: 0.27GB (29%), Total: 0.94GB
##           Swap = Free: 0.09GB (100%), Used: 0.00GB (0%), Total: 0.09GB
##           Root = Free: 11.62GB (82%), Used: 2.43GB (18%), Total: 14.68GB
##        Updates = 0 apt updates available.
##       Sessions = 1 sessions
##      Processes = 151 running processes of 32768 maximum processes
##          MySQL = Version: 14.14 Distribution: "5.5.57"
##            PHP = Version: 5.6.30, Memory Limit: 128M
###############################################################################

While my new (static) IP address is 192.168.2.23, what is wrong?

-ben

Do not know why but issue solved. This morning when I logged in again, it showed the correct address.

…have exactly the same issue… can anyone explain / give a solution?
The start/welcome screen of openhab (ssh) always shows a wrong IP address, which does not fit to one of the addresses displayed when entering:

ip a

Does the start screen show the IP address of the (inactive/no cable connected) LAN-Port (RJ45) of the RaspPi? --> no, because “ip a” shows no ip address at eth0: NO CARRIER… DOWN…

Platform information:
    Hardware: Raspberry 2 with RaZberry2
    WLAN-dongle: VILROS 802.11n
    OS: Raspian stretch
    Java Runtime Environment: ?
    openHAB version: 2.2
Issue of the topic: wrong IP address is shown in openhab start screen (ssh)

Oh my god, I am so late for the party! :grin:

But as I just stumbled upon this and it is not marked as solved, here’s the explanation and how to fix it:

The table you see when you log in is created by FireMotD

###############################################################################
###############  openhabian  ##################################################
###############################################################################
##        Ip = 192.168.1.10
##   Release = Raspbian GNU/Linux 10 (buster)
##    Kernel = Linux 5.10.60-v7l+
##  Platform = Raspberry Pi 4 Model B Rev 1.4
##    Uptime = 0 day(s). 0:28:56
## CPU Usage = 0.25% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
##  CPU Load = 1m: 0.65, 5m: 0.25, 15m: 0.16
##    Memory = Free: 6.85GB (88%), Used: 0.90GB (12%), Total: 7.76GB
##      Swap = Free: 2.43GB (100%), Used: 0.00GB (0%), Total: 2.43GB
##      Root = Free: 23.12GB (83%), Used: 4.64GB (17%), Total: 28.97GB
##   Updates = 0 apt updates available.
##  Sessions = 2 session(s)
## Processes = 136 running processes of 32768 maximum processes
###############################################################################

This tool does not collect its information when you log in, no, it’s cached in /usr/share/firemotd/data/FireMotD.json

If you change something, you have to update this cache.

You can do so by executing sudo /usr/local/bin/FireMotD -S -D all.
Or just wait a day, this is done automatically each night.

2 Likes

:+1:
that’s why I think it is useful not to close threads after a few weeks.
I did not hav this problem but to me it is a useful information helping to better understand the basics.

Thanks

1 Like