Re: OH3 MQTT Broker COMMUNICATION_ERROR
Verfasst: 12. Nov 2021 11:19
Genau, da musst Du sudo nutzen.
Code: Alles auswählen
1636661850: mosquitto version 2.0.11 starting
1636661850: Config loaded from /etc/mosquitto/mosquitto.conf.
1636661850: Starting in local only mode. Connections will only be possible from clients running on this machine.
1636661850: Create a configuration file which defines a listener to allow remote access.
1636661850: For more details see https://mosquitto.org/documentation/authentication-methods/
1636661850: Opening ipv4 listen socket on port 1883.
1636661850: Opening ipv6 listen socket on port 1883.
1636661850: mosquitto version 2.0.11 running
1636663651: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636663802: New connection from 127.0.0.1:38092 on port 1883.
1636663802: New client connected from 127.0.0.1:38092 as cff73343-a52d-4242-ab0d-c11b330caa9a (p2, c1, k60).
1636665071: Client cff73343-a52d-4242-ab0d-c11b330caa9a disconnected.
1636665452: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636666491: New connection from 127.0.0.1:38176 on port 1883.
1636666491: New client connected from 127.0.0.1:38176 as 724162c3-22d2-48f0-9403-e243e2840dea (p2, c1, k60).
1636666513: Client 724162c3-22d2-48f0-9403-e243e2840dea disconnected.
1636666513: New connection from 127.0.0.1:38178 on port 1883.
1636666513: New client connected from 127.0.0.1:38178 as 1f34cef5-2c08-4ead-b113-7db679240230 (p2, c1, k60).
1636666705: Client 1f34cef5-2c08-4ead-b113-7db679240230 disconnected.
1636667253: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636668517: New connection from 127.0.0.1:38266 on port 1883.
1636668517: New client connected from 127.0.0.1:38266 as c6b968e8-153f-4bef-9847-5bf3427d2ea7 (p2, c1, k60).
1636668537: Client c6b968e8-153f-4bef-9847-5bf3427d2ea7 disconnected.
1636668537: New connection from 127.0.0.1:38268 on port 1883.
1636668537: New client connected from 127.0.0.1:38268 as eb6c9d1b-2ef1-47e6-b3ee-19c508d3d18c (p2, c1, k60).
1636668599: Client eb6c9d1b-2ef1-47e6-b3ee-19c508d3d18c disconnected.
1636669054: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636670855: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636672656: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636674457: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636676258: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636678059: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636679860: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636681661: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636683462: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636685263: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636687064: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636688865: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636690666: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636692467: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636694268: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636696069: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636697870: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636699671: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636701472: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636703273: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636705074: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636706875: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636708676: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636710477: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1636712278: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
Code: Alles auswählen
ss -ltn
Code: Alles auswählen
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 100 127.0.0.1:1883 0.0.0.0:*
LISTEN 0 50 0.0.0.0:445 0.0.0.0:*
LISTEN 0 511 0.0.0.0:9001 0.0.0.0:*
LISTEN 0 50 0.0.0.0:139 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 100 [::1]:1883 [::]:*
LISTEN 0 50 *:8443 *:*
LISTEN 0 50 [::]:445 [::]:*
LISTEN 0 50 *:8101 *:*
LISTEN 0 1 [::ffff:127.0.0.1]:46181 *:*
LISTEN 0 50 [::]:139 [::]:*
LISTEN 0 50 *:5007 *:*
LISTEN 0 50 *:8080 *:*
LISTEN 0 128 [::]:22 [::]:*
Code: Alles auswählen
Starting in local only mode. Connections will only be possible from clients running on this machine.
Code: Alles auswählen
mosquitto_pub -t 'test/topic' -m 'helloworld'
Code: Alles auswählen
mosquitto_sub -v -t 'test/topic'
Code: Alles auswählen
UID: mqtt:broker:MosquittoBroker
label: MQTT Broker
thingTypeUID: mqtt:broker
configuration:
lwtQos: 0
publickeypin: true
keepAlive: 60
clientid: 1f34cef5-2c08-4ead-b113-7db679240230
qos: 0
reconnectTime: 60000
port: 1883
host: localhost
secure: false
certificatepin: true
lwtRetain: true
enableDiscovery: true