Cannot use console with `openhab-cli console` due to strange "IllegalArgumentException"

  • Platform information:
    • Hardware: X86_64, 1GB (LXC container in Proxmox host with 16GB)
    • OS: Debian 8
    • Java Runtime Environment: OpenJDK 64-Bit Server VM (Zulu 8.38.0.13-CA-linux64) (build 25.212-b04, mixed mode)
    • openHAB version: 2.5.M.1

Fresh installation of openhab, but I cannot use openhab-cli console. A strange error message occurs:

Failed (IllegalArgumentException) to process line #91 (hostname flnfs.adm.fablab.lan): Already initialized hostname: 172.22.1.40

The strange thing is that I have no clue where the container even knows about this hostname/IP.

It is not the name nor the IP of the local host - the name or IP is not stored somewhere below /etc nor /usr/share/openhab. (IP is from the local network, name is from the local domain and matches the IP).

Furthermore I don’t know which line #91 is meant. It absolute does not make any sense for /usr/bin/openhab-cli, because line #91 there is start of the “clear-cache” function?!

Login to console with ssh -p 8101 openhab@localhost works fine.