question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MQTT messages fail to send

See original GitHub issue

I have been using the older 1.X version of room assistant without issue for many months and decided to give version 2.X a shot (I wiped the SD card and started fresh). I can see room assistant connect to the MQTT server but I’ve only gotten it to send messages once. I thought it had something to do with using the verbose flag because that’s the first time it worked but after stopping and starting room assistant again it no longer sent messages to the broker. Most recent log is below

pi@RA-Office:~/room-assistant $ room-assistant -v *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html> *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html> [Nest] 445 - 02/29/2020, 4:49:22 AM [IntegrationsModule] Loading integrations: home-assistant, bluetooth-low-energy [Nest] 445 - 02/29/2020, 4:49:25 AM [NestFactory] Starting Nest application... +2679ms [Nest] 445 - 02/29/2020, 4:49:29 AM [InstanceLoader] AppModule dependencies initialized +3461ms [Nest] 445 - 02/29/2020, 4:49:29 AM [InstanceLoader] ConfigModule dependencies initialized +16ms [Nest] 445 - 02/29/2020, 4:49:29 AM [InstanceLoader] NestEmitterModule dependencies initialized +15ms [Nest] 445 - 02/29/2020, 4:49:29 AM [InstanceLoader] IntegrationsModule dependencies initialized +15ms [Nest] 445 - 02/29/2020, 4:49:29 AM [InstanceLoader] DiscoveryModule dependencies initialized +106ms [Nest] 445 - 02/29/2020, 4:49:29 AM [InstanceLoader] HomeAssistantModule dependencies initialized +19ms [Nest] 445 - 02/29/2020, 4:49:29 AM [InstanceLoader] ClusterModule dependencies initialized +16ms [Nest] 445 - 02/29/2020, 4:49:29 AM [InstanceLoader] ScheduleModule dependencies initialized +18ms [Nest] 445 - 02/29/2020, 4:49:29 AM [InstanceLoader] BluetoothLowEnergyModule dependencies initialized +25ms [Nest] 445 - 02/29/2020, 4:49:29 AM [InstanceLoader] EntitiesModule dependencies initialized +17ms [Nest] 445 - 02/29/2020, 4:49:29 AM [RoutesResolver] EntitiesController {/entities}: +136ms [Nest] 445 - 02/29/2020, 4:49:29 AM [RouterExplorer] Mapped {/, GET} route +78ms [Nest] 445 - 02/29/2020, 4:49:30 AM [BluetoothLowEnergyService] Discovered new BLE peripheral 50798dbcf046 with ID 50798dbcf046 and RSSI -37 [Nest] 445 - 02/29/2020, 4:49:30 AM [BluetoothLowEnergyService] Discovered new BLE peripheral 5050904df73e with ID 5050904df73e and RSSI -53 [Nest] 445 - 02/29/2020, 4:49:30 AM [BluetoothLowEnergyService] Discovered new BLE peripheral nut with ID c53e5f59c30b and RSSI -74 [Nest] 445 - 02/29/2020, 4:49:30 AM [EntitiesService] Adding new entity ble-c53e5f59c30b [Nest] 445 - 02/29/2020, 4:49:30 AM [BluetoothLowEnergyService] Discovered new BLE peripheral 450b6cb9431c with ID 450b6cb9431c and RSSI -84 [Nest] 445 - 02/29/2020, 4:49:31 AM [BluetoothLowEnergyService] Discovered new BLE peripheral 4fa61296eb82 with ID 4fa61296eb82 and RSSI -88 [Nest] 445 - 02/29/2020, 4:49:31 AM [HomeAssistantService] Successfully connected to MQTT broker at mqtt://192.168.1.67:1883 [Nest] 445 - 02/29/2020, 4:49:31 AM [ConfigService] Loading configuration from /opt/nodejs/lib/node_modules/room-assistant/dist/config/definitions/default.js, config/local.yml [Nest] 445 - 02/29/2020, 4:49:31 AM [ClusterService] Starting mDNS advertisements and discovery [Nest] 445 - 02/29/2020, 4:49:31 AM [NestApplication] Nest application successfully started +26ms [Nest] 445 - 02/29/2020, 4:49:31 AM [ClusterService] office has been elected as leader [Nest] 445 - 02/29/2020, 4:49:31 AM [EntitiesService] Refreshing entity states [Nest] 445 - 02/29/2020, 4:49:31 AM [BluetoothLowEnergyService] Discovered new BLE peripheral 47a8914f6149 with ID 47a8914f6149 and RSSI -85 [Nest] 445 - 02/29/2020, 4:49:33 AM [BluetoothLowEnergyService] Discovered new BLE peripheral UCKP with ID 1ae829494533 and RSSI -95 [Nest] 445 - 02/29/2020, 4:49:33 AM [BluetoothLowEnergyService] Discovered new BLE peripheral c47c8d660ddb with ID c47c8d660ddb and RSSI -93 [Nest] 445 - 02/29/2020, 4:49:34 AM [BluetoothLowEnergyService] Discovered new BLE peripheral 770a7436d751 with ID 770a7436d751 and RSSI -94 [Nest] 445 - 02/29/2020, 4:49:36 AM [BluetoothLowEnergyService] Discovered new BLE peripheral c00000009086 with ID c00000009086 and RSSI -93 [Nest] 445 - 02/29/2020, 4:49:37 AM [BluetoothLowEnergyService] Discovered new BLE peripheral c2f7db340335 with ID c2f7db340335 and RSSI -92

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Blink515commented, Feb 29, 2020

I just updated and things are working great now. Thank you!

0reactions
mKeRixcommented, Feb 29, 2020

Could you update your installation to the release above and give that a shot? I believe it should fix this. Otherwise we can re-open this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolving problem: Lost messages in an MQTT application
The most important step you take in doing problem determination of lost messages is to confirm the message is lost. Re-create the scenario...
Read more >
MQTT : Not able to send and receive messages at the same ...
This is blocking the MQTT client network loop so it will not send/receive any messages for 10 seconds every time you publish a...
Read more >
If any MQTT publish message fails with the Error -27648 while ...
This occurs very randomly. In my opinion this error is observed happening generally when two close publish or one publish and one subscribe...
Read more >
MQTT Client Message Queueing and Delivery
What happens when a network fails you queue messages? Guaranteed message delivery isn't always the best option.
Read more >
Unable to send continuous data through MQTT - Google Groups
I have been working on bringing up MQTT Connection to send continuous data to Relayr Cloud ... But I am unable to send...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found