Skip to content

Instantly share code, notes, and snippets.

@RickCarlino
Forked from warpling/rspec failures
Last active August 29, 2015 14:08
Show Gist options
  • Save RickCarlino/9b154a2c0ee8c512f0ba to your computer and use it in GitHub Desktop.
Save RickCarlino/9b154a2c0ee8c512f0ba to your computer and use it in GitHub Desktop.

#Elasticsearch

Everything looks fine, right?

sudo elasticsearch
[2014-10-31 17:30:57,939][INFO ][node                     ] [Enforcer] version[1.2.1], pid[42230], build[6c95b75/2014-06-03T15:02:52Z]
[2014-10-31 17:30:57,941][INFO ][node                     ] [Enforcer] initializing ...
[2014-10-31 17:30:57,946][INFO ][plugins                  ] [Enforcer] loaded [], sites []
[2014-10-31 17:31:02,040][INFO ][node                     ] [Enforcer] initialized
[2014-10-31 17:31:02,040][INFO ][node                     ] [Enforcer] starting ...
[2014-10-31 17:31:02,335][INFO ][transport                ] [Enforcer] bound_address {inet[/127.0.0.1:9300]}, publish_address {inet[/127.0.0.1:9300]}
[2014-10-31 17:31:05,456][INFO ][cluster.service          ] [Enforcer] new_master [Enforcer][4izsESAJSy-OVrDxmUhLew][Elara][inet[/127.0.0.1:9300]], reason: zen-disco-join (elected_as_master)
[2014-10-31 17:31:05,486][INFO ][discovery                ] [Enforcer] elasticsearch_ryanmcleod/4izsESAJSy-OVrDxmUhLew
[2014-10-31 17:31:05,592][INFO ][http                     ] [Enforcer] bound_address {inet[/127.0.0.1:9200]}, publish_address {inet[/127.0.0.1:9200]}
[2014-10-31 17:31:05,614][INFO ][gateway                  ] [Enforcer] recovered [0] indices into cluster_state
[2014-10-31 17:31:05,615][INFO ][node                     ] [Enforcer] started

In rubyland...

All is not well...

The Faraday HTTP driver is getting a refused connection on port 9200

➜  OpenFarm git:(master) ✗ rspec spec

  1) Api::StageOptionsController lists requirement options
     Failure/Error: Unable to find matching line from backtrace
     Faraday::ConnectionFailed:
       Failed to connect to localhost port 9300: Connection refused
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/webmock-1.20.0/lib/webmock/http_lib_adapters/patron_adapter.rb:31:in `handle_request'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/webmock-1.20.0/lib/webmock/http_lib_adapters/patron_adapter.rb:31:in `handle_request'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/patron-0.4.18/lib/patron/session.rb:223:in `request'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/faraday-0.9.0/lib/faraday/adapter/patron.rb:33:in `call'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:139:in `build_response'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in `run_request'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/elasticsearch-transport-1.0.5/lib/elasticsearch/transport/transport/http/faraday.rb:21:in `block in perform_request'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/elasticsearch-transport-1.0.5/lib/elasticsearch/transport/transport/base.rb:187:in `call'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/elasticsearch-transport-1.0.5/lib/elasticsearch/transport/transport/base.rb:187:in `perform_request'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/elasticsearch-transport-1.0.5/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/elasticsearch-transport-1.0.5/lib/elasticsearch/transport/client.rb:104:in `perform_request'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/elasticsearch-api-1.0.5/lib/elasticsearch/api/namespace/common.rb:21:in `perform_request'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/elasticsearch-api-1.0.5/lib/elasticsearch/api/actions/indices/get_aliases.rb:29:in `get_aliases'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/searchkick-0.8.3/lib/searchkick/reindex.rb:42:in `clean_indices'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/searchkick-0.8.3/lib/searchkick/reindex.rb:13:in `reindex'
     # /Users/ryanmcleod/Code/OpenFarm/spec/spec_helper.rb:67:in `block (2 levels) in <top (required)>'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:237:in `instance_eval'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:237:in `instance_eval'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:21:in `run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:85:in `block in run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:85:in `each'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:85:in `run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:446:in `run_hook'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:345:in `run_before_each_hooks'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:294:in `run_before_each'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:113:in `block in run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-rails-2.14.2/lib/rspec/rails/example/controller_example_group.rb:159:in `call'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-rails-2.14.2/lib/rspec/rails/example/controller_example_group.rb:159:in `block (2 levels) in <module:ControllerExampleGroup>'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:247:in `instance_eval_with_args'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:179:in `call'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:179:in `run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-rails-2.14.2/lib/rspec/rails/adapters.rb:69:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:247:in `instance_eval_with_args'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:108:in `call'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:108:in `run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:446:in `run_hook'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:340:in `run_around_each_hooks'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:256:in `with_around_each_hooks'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:111:in `run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:390:in `block in run_examples'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:386:in `map'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:386:in `run_examples'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:371:in `run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `map'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `block in run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/reporter.rb:58:in `report'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:25:in `run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in `run'
     # /Users/ryanmcleod/.rvm/gems/ruby-2.1.3@openfarm/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in `block in autorun'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment