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.

Hi guys,

If I want to set an external MQTT, how exactly to configure FB, so it uses it? I tried updating MQTT_HOST, but it still tries to connect to the local MQTT. See log and my config bellow.

Basically I need to configure authentication and host location.

config

MQTT_HOST=192.168.10.1
API_HOST=192.168.10.10
API_PORT=3000
POSTGRES_PASSWORD=not_actual_value
DEVISE_SECRET=not_actual_value
ADMIN_PASSWORD=not_actual_value
SECRET_KEY_BASE=not_actual_value
RAILS_ENV=production
NO_EMAILS=TRUE
MQTT_WS=ws://192.168.10.1/ws
TRUSTED_DOMAINS=not_actual_value
RABBIT_MGMT_URL=http://192.168.10.1:80

log from farmbot-web-app_rabbit_jobs_1

W, [2019-09-09T18:48:04.730116 #1]  WARN -- #<Bunny::Session:0x5605d4a19fc0 admin@mqtt:5672, vhost=/, addresses=[mqtt:5672]>: Could not establish TCP connection to mqtt:5672: getaddrinfo: Name or service not known
Connecting to broker in 3 seconds. (#<Bunny::TCPConnectionFailedForAllHosts: Could not establish TCP connection to any of the configured hosts>)

Thanks!

results of git log -1

commit 973b403524a30dece3cd0bd42a97bba920599aba (HEAD -> master, origin/master)
Merge: 1bbc83c bb76d99
Author: Rick Carlino <RickCarlino@users.noreply.github.com>
Date:   Tue Aug 27 15:53:43 2019 -0500

    Merge pull request #1398 from RickCarlino/master

    Adjust CSP policy

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
radoslav-stefanovcommented, Sep 9, 2019

Hi @RickCarlino

Thanks for the swift reply!

We are using HASSIO’s addon https://github.com/hassio-addons/addon-mqtt/blob/master/README.md which has its own Mosquitto MQTT.

So I guess we should stick to the internal MQTT provided by FarmBot’s docker-compose file?

0reactions
RickCarlinocommented, Sep 11, 2019

Closing this issue for now, but still open to discussion as needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

External MQTT broker - the thingsHub documentation
This article describes how to integrate the thingsHub tenant with an external MQTT broker. Using the New Integration wizard to set up an...
Read more >
Send data to external MQTT brokers - ThingsBoard
This tutorial will show how to send data to external MQTT broker using knob control widget. Use case. Let's assume your device is...
Read more >
How to connect an external MQTT to a device? - Help Center
I'm working on a device that uses my own MQTT Broker (with another Host Adress, username and password). We connected it to Tago's...
Read more >
External secondary MQTT broker - Home Assistant Community
I am having problems to configure an external MQTT broker on an external server running mosquito (no HA there). configuration.yml:
Read more >
MQTT - AWS IoT Core - AWS Documentation
MQTT (Message Queuing Telemetry Transport) is a lightweight and widely adopted messaging protocol that is designed for constrained devices.
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