Setup MQTT Error

Good day

@roryaronson I have successfully uploaded the Arduino code to the board.
Any idea what could be wrong here?

Keep getting these errors.

Want to run ruby farmbot.rb now?
y
Connecting…
Conencting to mqtt.farmbot.io:1883
Connected!
/usr/local/rvm/gems/ruby-2.3.0/gems/em-mqtt-0.0.5/lib/em/mqtt/client_connection.rb:181:in connect_ack': Connection refused: not authorised (MQTT::ProtocolException) from /usr/local/rvm/gems/ruby-2.3.0/gems/em-mqtt-0.0.5/lib/em/mqtt/client_connection.rb:163:inprocess_packet’
from /usr/local/rvm/gems/ruby-2.3.0/gems/em-mqtt-0.0.5/lib/em/mqtt/connection.rb:37:in receive_data' from /usr/local/rvm/gems/ruby-2.3.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:inrun_machine’
from /usr/local/rvm/gems/ruby-2.3.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:in run' from /root/farmbot-raspberry-pi-controller/lib/farmbot-pi.rb:29:instart’
from farmbot.rb:5:in <top (required)>' from setup.rb:62:inload’
from setup.rb:62:in `’

Kind regards,
Riaan

I’m assuming your pointing your Bot to my.farmbot.io? I’ve seen a similar error. You could point your Bot to staging.farmbot.io and setup an account, if your not using your own MQTT server, Api, and front end.

I’ve seen previous posts about staging.farmbot.io and it does connect when used instead. Just run ruby setup.rb again and input the new domain.

1 Like