As you can see above, FarmBot shutdown unexpectedly after configuration. I’ve followed all steps exactly as in the documentation.
Follow up:
I retried the configuration a few times and then the error became as follow:
As you can see above, FarmBot shutdown unexpectedly after configuration. I’ve followed all steps exactly as in the documentation.
Follow up:
I retried the configuration a few times and then the error became as follow:
Based on the error Failed to start child: Elixir.Farmbot.Firmware reason: enoent
, I suspect you are using an Arduino clone. Can you try the following?
UPDATE
button on the FarmBot OS
line of the Device widget. If the logs show an error, restart FarmBot.UP TO DATE
instead of UPDATE
, plug in the Arduino again.3
.Thanks very much! this works for me.
Hi Gabriel, I have made FarmBot running before using ‘my.farmbot.io’ as configured web app, then I tried to setup my own web app on our cloud server, and configure FarmBot again. The web app failed to connect to the message broker, Rails server gives the following error:
12:52:15 rails.1 | Started GET "/a/oa/oaNotify/self/count?updateSession=0&t=1522731135530" for 116.54.44.3 at 2018-04-03 12:52:15 +0800
12:52:15 rails.1 |
12:52:15 rails.1 | ActionController::RoutingError (No route matches [GET] "/a/oa/oaNotify/self/count"):
12:52:15 rails.1 |
12:52:15 rails.1 | actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
12:52:15 rails.1 | rollbar (2.15.5) lib/rollbar/middleware/rails/show_exceptions.rb:22:in `call_with_rollbar'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app'
12:52:15 rails.1 | railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call'
12:52:15 rails.1 | activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged'
12:52:15 rails.1 | activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged'
12:52:15 rails.1 | activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged'
12:52:15 rails.1 | railties (5.1.5) lib/rails/rack/logger.rb:24:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | request_store (1.4.0) lib/request_store/middleware.rb:19:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | rack (2.0.4) lib/rack/method_override.rb:22:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | rack (2.0.4) lib/rack/runtime.rb:22:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | rack-cors (1.0.2) lib/rack/cors.rb:97:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | rack (2.0.4) lib/rack/sendfile.rb:111:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | secure_headers (5.0.5) lib/secure_headers/middleware.rb:13:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/probes/middleware.rb:33:in `call'
12:52:15 rails.1 | skylight (1.5.1) lib/skylight/middleware.rb:79:in `call'
12:52:15 rails.1 | railties (5.1.5) lib/rails/engine.rb:522:in `call'
12:52:15 rails.1 | thin (1.7.2) lib/thin/connection.rb:86:in `block in pre_process'
12:52:15 rails.1 | thin (1.7.2) lib/thin/connection.rb:84:in `catch'
12:52:15 rails.1 | thin (1.7.2) lib/thin/connection.rb:84:in `pre_process'
12:52:15 rails.1 | thin (1.7.2) lib/thin/connection.rb:53:in `process'
12:52:15 rails.1 | thin (1.7.2) lib/thin/connection.rb:39:in `receive_data'
12:52:15 rails.1 | eventmachine (1.2.5) lib/eventmachine.rb:194:in `run_machine'
12:52:15 rails.1 | eventmachine (1.2.5) lib/eventmachine.rb:194:in `run'
12:52:15 rails.1 | thin (1.7.2) lib/thin/backends/base.rb:73:in `start'
12:52:15 rails.1 | thin (1.7.2) lib/thin/server.rb:162:in `start'
12:52:15 rails.1 | rack (2.0.4) lib/rack/handler/thin.rb:22:in `run'
12:52:15 rails.1 | rack (2.0.4) lib/rack/server.rb:297:in `start'
12:52:15 rails.1 | railties (5.1.5) lib/rails/commands/server/server_command.rb:44:in `start'
12:52:15 rails.1 | railties (5.1.5) lib/rails/commands/server/server_command.rb:135:in `block in perform'
12:52:15 rails.1 | railties (5.1.5) lib/rails/commands/server/server_command.rb:130:in `tap'
12:52:15 rails.1 | railties (5.1.5) lib/rails/commands/server/server_command.rb:130:in `perform'
12:52:15 rails.1 | thor (0.19.4) lib/thor/command.rb:27:in `run'
12:52:15 rails.1 | thor (0.19.4) lib/thor/invocation.rb:126:in `invoke_command'
12:52:15 rails.1 | thor (0.19.4) lib/thor.rb:369:in `dispatch'
12:52:15 rails.1 | railties (5.1.5) lib/rails/command/base.rb:63:in `perform'
12:52:15 rails.1 | railties (5.1.5) lib/rails/command.rb:44:in `invoke'
12:52:15 rails.1 | railties (5.1.5) lib/rails/commands.rb:16:in `<top (required)>'
12:52:15 rails.1 | bin/rails:4:in `require'
12:52:15 rails.1 | bin/rails:4:in `<main>'
And when I config FarmBot:
reason: econnrefused
is likely the result of a misconfigured “server” field during configuration.
For a local server, the server
field during FarmBot OS configuration should be http://API_HOST:API_PORT
, where API_HOST
and API_PORT
match the values in application.yml
.
Thanks! I have figured it out, added 3000 to the server config and it works.