[Solved] SSH Welcome screen IP display is "Unable to parse ip. Please debug."

Updated RPI3B OS release from stretch to buster.
After the update all is working well except a strange text in the SSH welcome screen saying “Unable to parse ip. Please debug.”

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Oct 23 20:56:05 2020 from fe80::xxxx:xxxx:xxxx:xxxx%eth0

###############################################################################
################# openHABianPi #################################### 7.05.170509
###############################################################################
##        Ip = Unable to parse ip. Please debug.
##   Release = Raspbian GNU/Linux 10 (buster)
##    Kernel = Linux 5.4.72-v7+
##  Platform = Raspberry Pi 3 Model B Rev 1.2
##    Uptime = 0 day(s). 0:25:58
## CPU Usage = 0.25 % avg over 4 cpu(s)  (4 core(s) x 1 socket(s))
##  CPU Load = 1m: 0.60, 5m: 0.26, 15m: 0.32
##    Memory = Free: 0.04GB (4%), Used: 0.90GB (96%), Total: 0.95GB
##      Swap = Free: 0.08GB (84%), Used: 0.01GB (16%), Total: 0.09GB
##      Root = Free: 207.25GB (95%), Used: 9.31GB (5%), Total: 228.22GB
##   Updates = 0 apt-get updates available.
##  Sessions = 2 sessions
## Processes = 132 running processes of 32768 maximum processes
###############################################################################

              Welcome to            __  _____    ____  _
            ____  ____  ___  ____  / / / /   |  / __ )(_)___ _____
           / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  / / __ `/ __ \
          / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ / / /_/ / / / /
          \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/_/\__,_/_/ /_/
              /_/
                  openHAB 2.5.9-1 (Release Build)


Looking for a place to get started? Check out 'sudo openhabian-config' and the
documentation at http://docs.openhab.org/installation/openhabian.html
The openHAB dashboard can be reached at http://openHABianPi:8080

As far as I know, the welcome screen is generated by FireMotD. Can you please check your version?

FireMotD -V

Also can you post the output of

ip route get 8.8.8.8

please?

[21:34:24] openhabian@openHABianPi:~$ FireMotD -V
-bash: FireMotD: command not found
[21:39:43] openhabian@openHABianPi:~$ ip route get 8.8.8.8
8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.9 uid 1000
    cache

FireMotD should be here:

/usr/local/bin/FireMotD

or here:

/opt/FireMotD/FireMotD

That looks ok - and now please run:

ip route get 8.8.8.8 | head -1 | grep -Po ‘(?<=src )(\d{1,3}.){4}’ | xargs

[21:42:04] openhabian@openHABianPi:~$ /opt/FireMotD/FireMotD -V
FireMotD v7.05.170509
[21:43:21] openhabian@openHABianPi:~$ ip route get 8.8.8.8 | head -1 | grep -Po '(?<=src )(\d{1,3}.){4}' | xargs
192.168.2.9
1 Like

Your FireMotD is outdated… For example my version:

[01:36:05] root@openhab:~# FireMotD -V
FireMotD v12.05.191019

Did you run the upgrade from within openhabian-config?

I upgraded only the distro. Not the openHAB.
openHAB was already the latest stable before the distro upgrade.
I know it is not recommended to move between OS distributions without doing a new image. I used a shortcut way.

Ok, can you please try:

sudo openhabian-config

Choose “Apply Improvements”

And then “FireMotd”

Exit and run:
/opt/FireMotD/FireMotD -S

Got a couple of errors:
image

$ apt-get install --yes bc sysstat jq moreutils make
Reading package lists... Done
Building dependency tree
Reading state information... Done
bc is already the newest version (1.07.1-2).
jq is already the newest version (1.5+dfsg-2+b1).
make is already the newest version (4.2.1-1.2).
make set to manually installed.
sysstat is already the newest version (12.0.3-2).
The following additional packages will be installed:
  libio-pty-perl libipc-run-perl
Suggested packages:
  libtime-duration-perl
The following NEW packages will be installed:
  libio-pty-perl libipc-run-perl moreutils
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 203 kB of archives.
After this operation, 537 kB of additional disk space will be used.
Get:2 http://mirror.isoc.org.il/pub/raspbian/raspbian buster/main armhf libipc-run-perl all 20180523.0-1 [101 kB]
Get:1 http://mirror.ossplanet.net/raspbian/raspbian buster/main armhf libio-pty-perl armhf 1:1.08-1.1+b4 [33.0 kB]
Get:3 http://mirror.ossplanet.net/raspbian/raspbian buster/main armhf moreutils armhf 0.62-1+b1 [69.3 kB]
Fetched 203 kB in 3s (66.4 kB/s)
Selecting previously unselected package libio-pty-perl.
(Reading database ... 59893 files and directories currently installed.)
Preparing to unpack .../libio-pty-perl_1%3a1.08-1.1+b4_armhf.deb ...
Unpacking libio-pty-perl (1:1.08-1.1+b4) ...
Selecting previously unselected package libipc-run-perl.
Preparing to unpack .../libipc-run-perl_20180523.0-1_all.deb ...
Unpacking libipc-run-perl (20180523.0-1) ...
Selecting previously unselected package moreutils.
Preparing to unpack .../moreutils_0.62-1+b1_armhf.deb ...
Unpacking moreutils (0.62-1+b1) ...
Setting up libio-pty-perl (1:1.08-1.1+b4) ...
Setting up libipc-run-perl (20180523.0-1) ...
Setting up moreutils (0.62-1+b1) ...
Processing triggers for man-db (2.8.5-2) ...
Updating FireMotD available updates count ...
OK
2020-10-23_21:50:58_IDT [openHABian] Downloading FireMotD...
Update...

$ update_git_repo /opt/FireMotD master
2020-10-23_21:50:58_IDT [openHABian] Updating FireMotD, master branch from git...
$ git -C /opt/FireMotD fetch origin

$ git -C /opt/FireMotD fetch --tags --force --prune

$ git -C /opt/FireMotD reset --hard origin/master
HEAD is now at b203d61 PhpMaxMemory check

$ git -C /opt/FireMotD clean --force -x -d

$ git -C /opt/FireMotD checkout master
Already on 'master'
Your branch is up to date with 'origin/master'.
OK
OK
2020-10-23_21:51:00_IDT [openHABian] Installing FireMotD...
$ make --always-make --directory=/opt/FireMotD install
make: Entering directory '/opt/FireMotD'
cp FireMotD /usr/local/bin/FireMotD
chmod 755 /usr/local/bin/FireMotD
make: Leaving directory '/opt/FireMotD'

$ make --always-make --directory=/opt/FireMotD bash_completion
make: Entering directory '/opt/FireMotD'
cp bash_completion.d/FireMotD /etc/bash_completion.d/FireMotD
make: Leaving directory '/opt/FireMotD'
OK
2020-10-23_21:51:01_IDT [openHABian] Generating FireMotD theme...
$ FireMotD -S -D all

$ FireMotD -G Gray
You specified a non-existant option: -G
FAILED

No error or output after:
sudo /opt/FireMotD/FireMotD -S

Do I need a reboot?
Still showing version 7.05

Logout/Login should be sufficient… Can you please check the .bash_profile in your home-directory - there must be a FireMotD-command which should look like:

FireMotD --theme Gray

Correct, there is a line:
bash /opt/FireMotD/FireMotD --theme gray

opening a new SSH window shows the same error, no IP.

Can you check if you have a FireMotD here too:

/usr/local/bin/FireMotD -V

yes

And it reports still the old version?

Correct

[21:59:32] openhabian@openHABianPi:~$ /usr/local/bin/FireMotD -V
FireMotD v7.05.170509