Openhab 3 Mqtt Broker Problems

[quote="I created them both and changed the fileowner to mosquitto as you suggested.
[/quote]

How could I create them and how could I change the fileowner?

mkdir /var/log/mosquitto
touch /var/log/mosquitto/mosquitto.log

Did you setup a password?

yes when I installed mosquitto with the config tool

Can you post your broker code

UID: mqtt:broker:RPI4
label: MQTT Broker RPI4
thingTypeUID: mqtt:broker
configuration:
  lwtQos: 0
  publickeypin: false
  keepAlive: 60
  clientid: bbea88c4-bcd2-4eb3-bc01-49d14720018b
  secure: false
  certificatepin: false
  password: pleasework
  qos: 0
  reconnectTime: 60000
  host: 192.168.1.248
  lwtRetain: true
  username: openhabian
  enableDiscovery: true

Brilliant!

1 Like

so this was my config so far:

UID: mqtt:broker:openHAB
label: MQTT Broker
thingTypeUID: mqtt:broker
configuration:
  lwtQos: 0
  publickeypin: true
  keepAlive: 60
  clientid: 3b875904-088a-49da-8300-72ccd1447766
  qos: 0
  reconnectTime: 60000
  host: localhost
  secure: false
  certificatepin: true
  lwtRetain: true
  enableDiscovery: true

with adding username and password it connects now to the broker again

UID: mqtt:broker:openHAB
label: MQTT Broker
thingTypeUID: mqtt:broker
configuration:
  lwtQos: 0
  publickeypin: true
  keepAlive: 60
  clientid: 4b8ce49d-81fe-410a-bd13-73973849eb25
  secure: false
  certificatepin: true
  password: openhabian
  qos: 0
  reconnectTime: 60000
  host: localhost
  lwtRetain: true
  enableDiscovery: true
  username: openhabian

still I didn’t try to restart the rpi yet. Will do that as a next step. Also I discovered this thread with similar problems described for oh2: Openhabian - Mosquitto MQTT failed to start - #41 by mstormi

1 Like

Muchas Gracias

After created them directory and mosquitto.conf and changed the fileowner to mosquitto everything is working fine :slight_smile: :slight_smile:

OH 3 Broker is green to

Thank you

2 Likes

Username and Password dose help to get it going.

Now how did you install openhabian and mosquitto so the team can see what went wrong. This is an issue @mstormi will fix if he has enough information to fix it. He is likely looking for the steps you took to install openhaian.

Can you both also goto help and about / technical details / View details / copy and past contents here.

runtimeInfo:
  version: 3.0.0
  buildString: Release Build
locale: en_AU
systemInfo:
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 11.0.9
  javaVendor: Azul Systems, Inc.
  javaVendorVersion: Zulu11.43+88-CA
  osName: Linux
  osVersion: 5.4.79-v8+
  osArchitecture: aarch64
  availableProcessors: 4
  freeMemory: 85160224
  totalMemory: 335544320
bindings:
  - astro
  - bom
  - chromecast
  - http
  - ipcamera
  - irtrans
  - mqtt
  - sensibo
clientInfo:
  device:
    ios: false
    android: false
    androidChrome: false
    desktop: true
    iphone: false
    ipod: false
    ipad: false
    edge: false
    ie: false
    firefox: false
    macos: false
    windows: true
    cordova: false
    phonegap: false
    electron: false
    nwjs: false
    webView: false
    webview: false
    standalone: false
    os: windows
    pixelRatio: 1
    prefersColorScheme: dark
  isSecureContext: false
  locationbarVisible: true
  menubarVisible: true
  navigator:
    cookieEnabled: true
    deviceMemory: N/A
    hardwareConcurrency: 12
    language: en-US
    languages:
      - en-US
      - en
    onLine: true
    platform: Win32
  screen:
    width: 1920
    height: 1080
    colorDepth: 24
  support:
    touch: false
    pointerEvents: true
    observer: true
    passiveListener: true
    gestures: false
    intersectionObserver: true
  themeOptions:
    dark: light
    filled: true
    pageTransitionAnimation: default
    bars: filled
    homeNavbar: default
    homeBackground: default
    expandableCardAnimation: default
  userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
    like Gecko) Chrome/87.0.4280.88 Safari/537.36
timestamp: 2020-12-26T14:07:25.358Z

I installed openhabian on a SD-Card using Etcher and mosquitto via the openhab-configtool. This is my output:

runtimeInfo:
  version: 3.0.0
  buildString: Release Build
locale: de_DE
systemInfo:
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 11.0.9
  javaVendor: Azul Systems, Inc.
  javaVendorVersion: Zulu11.43+88-CA
  osName: Linux
  osVersion: 5.4.79-v7+
  osArchitecture: arm
  availableProcessors: 4
  freeMemory: 98470032
  totalMemory: 194838528
bindings:
  - enocean
  - homematic
  - mqtt
  - shelly
  - zigbee
clientInfo:
  device:
    ios: false
    android: false
    androidChrome: false
    desktop: true
    iphone: false
    ipod: false
    ipad: false
    edge: false
    ie: false
    firefox: true
    macos: false
    windows: true
    cordova: false
    phonegap: false
    electron: false
    nwjs: false
    webView: false
    webview: false
    standalone: false
    os: windows
    pixelRatio: 1.25
    prefersColorScheme: light
  isSecureContext: false
  locationbarVisible: true
  menubarVisible: true
  navigator:
    cookieEnabled: true
    deviceMemory: N/A
    hardwareConcurrency: 4
    language: de
    languages:
      - de
      - en-US
      - en
    onLine: true
    platform: Win32
  screen:
    width: 1536
    height: 1024
    colorDepth: 24
  support:
    touch: false
    pointerEvents: true
    observer: true
    passiveListener: true
    gestures: false
    intersectionObserver: true
  themeOptions:
    dark: dark
    filled: true
    pageTransitionAnimation: default
    bars: filled
    homeNavbar: default
    homeBackground: default
    expandableCardAnimation: default
  userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101
    Firefox/84.0
timestamp: 2020-12-26T14:19:42.046Z

@Superpedro did you resatert the pi?
for me after restart the problem still existed.

After I followed the instructions in this post it now survives a restart as well:

Hi,

yes it´s gone after reboot :frowning:

Thanks god ahhh Markus - perfect work it´s working now

Hello, can you please help me? Openhab3 MQTT system broker connection screen is blank.

We would need more information to be able to help you @haybolat

What broker are your using?
How did you install your broker?

Is it this screen that is blank?

What broker are your using?

Mosquitto

How did you install your broker?

I installed it via openhab-config

Is it this screen that is blank?

Yes

I reinstalled openhab3 2 times. It didn’t happen again, I don’t know where I’m making a mistake.

Ok that doesn’t look good

You don’t need a system broker to get it working.

Install the MQTT Binding if you haven’t already then create a thing /broker

Yes, I just reinstalled. I did what he said before installing mosquitto. Thank you very much.
Why is this happening? is this a system error?

I assume the main issue is that mosquitto changed something and now openHABian needs to catch up in the way it is installed but thats just a guess,

The System broker page being blank is a new issue and if more people experience it the an github issue should be raised.

Understood. Thank you very much.

My MQTT has a communication error. Can I set up a broker in Openhab 3 from the binding or do I have to install Mosquitto, etc?
Thanks