Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Mqtt connection fails after working for a couple of days. #49

Open
simonbove opened this issue Jan 6, 2020 · 1 comment
Open

Mqtt connection fails after working for a couple of days. #49

simonbove opened this issue Jan 6, 2020 · 1 comment

Comments

@simonbove
Copy link

gBridge.io Issue template

Please read our support guidelines before creating an issue. Provide the information below for each issue you open.


**Instance Type (hosted/ docker/ other):hosted
**User ID (if using hosted service):95
**Steps to reproduce issue:it happens when starting the mqtt broker. No connection is established to the server.
It worked for the past days, and today about 6 hours ago it stopped working.
My mqtt broker is running on a pi in bridge connection.

See below config and error messages in the log when starting the mqtt broker.

Place your local configuration in /etc/mosquitto/conf.d/

A full description of the configuration file is at

/usr/share/doc/mosquitto/examples/mosquitto.conf.example

pid_file /var/run/mosquitto.pid

persistence true
persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log

include_dir /etc/mosquitto/conf.d

connection kappelt-gbridge
address mqtt.gbridge.io:8883
bridge_attempt_unsubscribe true
bridge_protocol_version mqttv31
cleansession true
remote_username gbridge-u95
remote_password (redacted)
remote_clientid gbridge-u95-raspberry

topic gBridge/u95/+/+ both 0 "" ""
topic gBridge/u95/+/+/set both 0 "" ""
topic cmnd/# in 0 sonoff/ gBridge/u95/
topic stat/# out 0 sonoff/ gBridge/u95/
bridge_capath /etc/ssl/certs/
bridge_tls_version tlsv1.2

pi@raspberrypi:~ $ sudo tail /var/log/mosquitto/mosquitto.log -n 40
1578348398: Opening ipv6 listen socket on port 1883.
1578348398: Connecting bridge kappelt-gbridge (mqtt.gbridge.io:8883)
1578348398: New connection from 192.168.3.139 on port 1883.
1578348398: New client connected from 192.168.3.139 as MaxCube (c1, k15, u'pi').
1578348398: Socket error on client local.gbridge-u95-raspberry, disconnecting.
1578348399: New connection from 192.168.3.152 on port 1883.
1578348399: New client connected from 192.168.3.152 as Ventilation (c1, k10, u'pi').
1578348399: New connection from 192.168.3.147 on port 1883.
1578348399: New client connected from 192.168.3.147 as electric_kettle (c1, k15, u'pi').
1578348399: New connection from 192.168.3.149 on port 1883.
1578348399: New client connected from 192.168.3.149 as bathroom (c1, k10, u'pi').
1578348399: New connection from 192.168.3.145 on port 1883.
1578348399: New client connected from 192.168.3.145 as IRreceiver (c1, k30, u'pi').1578348399: New connection from 192.168.3.144 on port 1883.
1578348399: New client connected from 192.168.3.144 as samsung_tv (c1, k15, u'pi').1578348399: New connection from 192.168.3.158 on port 1883.
1578348399: New client connected from 192.168.3.158 as Vaskemaskine (c1, k15, u'pi').
1578348399: New connection from 192.168.3.136 on port 1883.
1578348399: New client connected from 192.168.3.136 as batterycharger (c1, k15, u'pi').
1578348399: New connection from 192.168.3.141 on port 1883.
1578348399: New client connected from 192.168.3.141 as living-room-floor-lamp (c1, k15, u'pi').
1578348399: New connection from 192.168.3.146 on port 1883.
1578348399: New client connected from 192.168.3.146 as dishwasher (c1, k15, u'pi').1578348399: New connection from 192.168.3.138 on port 1883.
1578348399: New client connected from 192.168.3.138 as kitchen-counter-light (c1, k15, u'pi').
1578348399: New connection from 192.168.3.154 on port 1883.
1578348399: New client connected from 192.168.3.154 as Blind_Controller (c1, k30, u'pi').
1578348400: New connection from 192.168.3.150 on port 1883.
1578348400: New client connected from 192.168.3.150 as shelly1-0587C6 (c1, k60, u'pi').
1578348400: New connection from 192.168.3.142 on port 1883.
1578348400: New client connected from 192.168.3.142 as shelly1-05874F (c1, k300, u'pi').
1578348400: New connection from 192.168.3.157 on port 1883.
1578348400: New client connected from 192.168.3.157 as shelly1-079CBA (c1, k60, u'pi').
1578348400: New connection from 192.168.3.135 on port 1883.
1578348400: New client connected from 192.168.3.135 as shelly1-9F6E0A (c1, k300, u'pi').
1578348403: New connection from 192.168.3.4 on port 1883.
1578348403: New client connected from 192.168.3.4 as pimatic (c1, k180, u'pi').
1578348429: Connecting bridge kappelt-gbridge (mqtt.gbridge.io:8883)
1578348429: Socket error on client local.gbridge-u95-raspberry, disconnecting.
1578348460: Connecting bridge kappelt-gbridge (mqtt.gbridge.io:8883)
pi@raspberrypi:~ $

  • Step 1
  • Step 2
  • ...

**Expected behaviour:Should make a connection to mqtt server.
**Actual behaviour:it keeps failing the connection.

Bonus info. The only change I made today on the system is to install sudo pip install speedtest-cli
And run a couple of speedtest, as far as I know the mqtt connection worked after I installed the speed test.
Can you see anything server side wise?

@simonbove
Copy link
Author

Still down. I have tried rebooting etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant