Mqtt not working after restore openhab to Ubuntu

I installed Ubuntu on an INTEL computer and did a full backup & restore to openhab that was installed on my Raspberry Pi,
All past and work but Mqtt Sonoff switch does not work for me

  • I changed the new IP in tasmota mqtt configuration
    what am I missing?

What MQTT broker did you use on your Raspberry Pi?

What errors are your openHAB logs showing?

With what commands or programs? Java from a Pi will not run on an Intel CPU. they are different CPU architectures.

How can i see the log in?

The directory /var/log/openhab contains openhab related log files.
There should be two:

  • openhab.log
  • events.log

You can open them in a text editor or have a look to the content with command less or command more for example.
tail -f /var/log/openhab/openhab.log
always will show the last few lines on the content.

at org.openhab.binding.mqtt.internal.discovery.MqttServiceDiscoveryService.brokerAdded( ~[?:?]

at org.openhab.binding.mqtt.internal.discovery.MqttServiceDiscoveryService.lambda$0( ~[?:?]

at java.util.concurrent.ConcurrentHashMap.forEach( ~[?:?]

at java.util.Collections$UnmodifiableMap.forEach( ~[?:?]

at org.openhab.binding.mqtt.internal.discovery.MqttServiceDiscoveryService.startScan( ~[?:?]

this is my java install on ubuntu

java -version
openjdk version “11.0.8” 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)

Showing the middle part of an error? won’t help!

Did you install a mqtt broker again?

1 Like

1 The lines just repeat themselves like this
2 Yes I reinstalled mqtt broker

Prerequisits for running openHAB 2.x is Java 8, not Java 11.
Pleas try again with Azul Zulu8, not OpenJDK

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.