Skip to content

Instantly share code, notes, and snippets.

@rgaufman
Last active May 30, 2018 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgaufman/dbd952a8cf65153257d3d042db457cd6 to your computer and use it in GitHub Desktop.
Save rgaufman/dbd952a8cf65153257d3d042db457cd6 to your computer and use it in GitHub Desktop.
I'm using Mosquitt 1.4.8-1ubuntu0.16.04.3 both on client and server side
I have this configuration on the client side:
============================================
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
port 1884
allow_anonymous true
connection bridge-731dcff215b710200deb
address vpn-timeline:1884
topic # out 2
topic # in 2 tb/731dcff215b710200deb/ tb/731dcff215b710200deb/
bridge_protocol_version mqttv311
cleansession false
notifications true
keepalive_interval 29
idle_timeout 90
max_queued_messages 1000000
log_type all
remote_username 731dcff215b710200deb
remote_password TEST-PASSWORD
===========
Looking at the logs, it seems to connect, send/receive some messages (so auth is ok) and then dies :( - then it reconnects 30 seconds later (default) and the same thing happens, socket error after a handful of messages. Any ideas?
1527687174: Received PUBACK from local.TimeBox.bridge-731dcff215b710200deb (Mid: 33482)
1527687174: Socket error on client local.TimeBox.bridge-731dcff215b710200deb, disconnecting.
1527687205: Bridge local.TimeBox.bridge-731dcff215b710200deb doing local SUBSCRIBE on topic #
1527687205: Connecting bridge bridge-731dcff215b710200deb (vpn-timeline:1884)
1527687205: Bridge TimeBox.bridge-731dcff215b710200deb sending CONNECT
1527687205: Received CONNACK on connection local.TimeBox.bridge-731dcff215b710200deb.
1527687205: Bridge local.TimeBox.bridge-731dcff215b710200deb sending UNSUBSCRIBE (Mid: 33486, Topic: #)
1527687205: Bridge local.TimeBox.bridge-731dcff215b710200deb sending SUBSCRIBE (Mid: 33487, Topic: tb/731dcff215b710200deb/#, QoS: 2)
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q2, r1, m24064, 'connections/tb/731dcff215b710200deb/consumer', ... (6 bytes))
1527687205: Sending PUBREC to local.TimeBox.bridge-731dcff215b710200deb (Mid: 4)
1527687205: Sending PUBREC to local.TimeBox.bridge-731dcff215b710200deb (Mid: 5)
1527687205: Sending PUBREC to local.TimeBox.bridge-731dcff215b710200deb (Mid: 6)
1527687205: Sending PUBREC to local.TimeBox.bridge-731dcff215b710200deb (Mid: 7)
1527687205: Sending PUBREC to local.TimeBox.bridge-731dcff215b710200deb (Mid: 8)
1527687205: Sending PUBREC to local.TimeBox.bridge-731dcff215b710200deb (Mid: 9)
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q1, r0, m24068, 'tl/router-test/api/v2/agents/started/gzip', ... (1960 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q1, r0, m24070, 'tl/router-test/api/v2/devices/json', ... (877 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q1, r0, m24071, 'tl/router-test/api/v2/devices/json', ... (297 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q1, r0, m24072, 'tl/router-test/api/v2/devices/json', ... (297 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q1, r0, m24073, 'tl/router-test/api/v2/devices/json', ... (913 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q1, r0, m24075, 'tl/router-test/api/v2/devices/json', ... (913 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q1, r0, m24076, 'tl/router-test/api/v2/devices/json', ... (936 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q1, r0, m24078, 'tl/router-test/api/v2/devices/json', ... (936 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q1, r0, m24082, 'tl/router-test/api/v2/devices/json', ... (235 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q1, r0, m24083, 'tl/router-test/api/v2/devices/json', ... (237 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q2, r0, m24108, 'tl/router-test/api/v2/triggers/json', ... (288 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q2, r0, m24109, 'tl/router-test/api/v2/triggers/json', ... (278 bytes))
1527687205: Sending PUBLISH to local.TimeBox.bridge-731dcff215b710200deb (d1, q2, r0, m24113, 'tl/router-test/api/v2/recordings/json', ... (447 bytes))
1527687205: Sending PUBREC to local.TimeBox.bridge-731dcff215b710200deb (Mid: 1)
1527687205: Sending PUBREC to local.TimeBox.bridge-731dcff215b710200deb (Mid: 2)
1527687205: Received PUBACK from local.TimeBox.bridge-731dcff215b710200deb (Mid: 33485)
1527687205: Socket error on client local.TimeBox.bridge-731dcff215b710200deb, disconnecting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment