Openhab3_is_installed: command not found

My upgrade to OH 3.2 from 3.1.1 is proving a tad bumpy. While my system is now up and running, I am now getting the following error message when logging into my server:

-bash: openhab3_is_installed: command not found
sed: can't read /var/lib/openhab2/etc/version.properties: No such file or directory
sed: can't read /var/lib/openhab2/etc/version.properties: No such file or directory


              Welcome to            __  _____    ____  _
            ____  ____  ___  ____  / / / /   |  / __ )(_)___ _____
           / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  / / __ `/ __ \
          / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ / / /_/ / / / /
          \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/_/\__,_/_/ /_/
              /_/
                  openHAB  ()

Looks like either the command was not installed or is not in the path. Would anyone be able to tell me where to look for it? I could not locate it in /usr/share/openhab.

1 Like

This part is not related to openHAB but openHABian.
Check your users (? / most probably openhabian ) .*rc files’ content.
I think the function is located in /opt/openhabian/functions/helpers.bash

EDITed: look into .bash_profile of user openhabian it seems to be called from there

Ah, sorry, was not aware of that.

Still, thanks for the pointer, that helped me fix it. It appears the source used for this changed from openhab.bash to helpers.bash at some point. The .bash_profile file for the ‘openhabian’ user appears to have been updated when that change occurred, but not that of my default user ‘pi’.

So in the end the simple fix was to change this
source /opt/openhabian/functions/openhab.bash
into this
source /opt/openhabian/functions/helpers.bash

1 Like