Skip to content

Instantly share code, notes, and snippets.

@mureithi254
Created February 17, 2017 14:25
Show Gist options
  • Save mureithi254/993b49327e6dd6c3b10abd3df40b2040 to your computer and use it in GitHub Desktop.
Save mureithi254/993b49327e6dd6c3b10abd3df40b2040 to your computer and use it in GitHub Desktop.
Getting an error while trying to run rake db:seed
Seeded Production Data
Seeding development DB
Companies created: 201
Company Addresses created: 305
Job Categories created: 200
Skills created: 26
Company People created: 223
Jobs created: 0
rake aborted!
Errno::ECONNREFUSED: Failed to open TCP connection to localhost:8443 (Connection refused - connect(2) for "localhost" port 8443)
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/webmock-1.21.0/lib/webmock/http_lib_adapters/net_http.rb:136:in `start_with_connect_without_finish'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/webmock-1.21.0/lib/webmock/http_lib_adapters/net_http.rb:104:in `request'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient/request.rb:270:in `net_http_do_request'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient/request.rb:418:in `block in transmit'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/webmock-1.21.0/lib/webmock/http_lib_adapters/net_http.rb:123:in `start_without_connect'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/webmock-1.21.0/lib/webmock/http_lib_adapters/net_http.rb:150:in `start'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient.rb:69:in `post'
/home/anonymous/AV/MetPlus_PETS/app/services/cruncher_service.rb:224:in `auth_token'
/home/anonymous/AV/MetPlus_PETS/app/services/cruncher_service.rb:28:in `upload_file'
/home/anonymous/AV/MetPlus_PETS/app/models/resume_cruncher.rb:15:in `upload_resume'
/home/anonymous/AV/MetPlus_PETS/app/models/resume.rb:37:in `save'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.3/lib/active_record/persistence.rb:34:in `create'
/home/anonymous/AV/MetPlus_PETS/db/seeds.rb:289:in `block in <top (required)>'
/home/anonymous/AV/MetPlus_PETS/db/seeds.rb:262:in `times'
/home/anonymous/AV/MetPlus_PETS/db/seeds.rb:262:in `<top (required)>'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `load'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `block in load'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `load'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/railties-4.2.3/lib/rails/engine.rb:547:in `load_seed'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.3/lib/active_record/tasks/database_tasks.rb:250:in `load_seed'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.3/lib/active_record/railties/databases.rake:180:in `block (2 levels) in <top (required)>'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/airbrake-5.4.4/lib/airbrake/rake/task_ext.rb:19:in `execute'
/home/anonymous/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `eval'
/home/anonymous/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `<main>'
Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8443
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/webmock-1.21.0/lib/webmock/http_lib_adapters/net_http.rb:136:in `start_with_connect_without_finish'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/webmock-1.21.0/lib/webmock/http_lib_adapters/net_http.rb:104:in `request'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient/request.rb:270:in `net_http_do_request'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient/request.rb:418:in `block in transmit'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/webmock-1.21.0/lib/webmock/http_lib_adapters/net_http.rb:123:in `start_without_connect'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/webmock-1.21.0/lib/webmock/http_lib_adapters/net_http.rb:150:in `start'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/rest-client-1.8.0/lib/restclient.rb:69:in `post'
/home/anonymous/AV/MetPlus_PETS/app/services/cruncher_service.rb:224:in `auth_token'
/home/anonymous/AV/MetPlus_PETS/app/services/cruncher_service.rb:28:in `upload_file'
/home/anonymous/AV/MetPlus_PETS/app/models/resume_cruncher.rb:15:in `upload_resume'
/home/anonymous/AV/MetPlus_PETS/app/models/resume.rb:37:in `save'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.3/lib/active_record/persistence.rb:34:in `create'
/home/anonymous/AV/MetPlus_PETS/db/seeds.rb:289:in `block in <top (required)>'
/home/anonymous/AV/MetPlus_PETS/db/seeds.rb:262:in `times'
/home/anonymous/AV/MetPlus_PETS/db/seeds.rb:262:in `<top (required)>'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `load'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `block in load'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `load'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/railties-4.2.3/lib/rails/engine.rb:547:in `load_seed'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.3/lib/active_record/tasks/database_tasks.rb:250:in `load_seed'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/activerecord-4.2.3/lib/active_record/railties/databases.rake:180:in `block (2 levels) in <top (required)>'
/home/anonymous/.rvm/gems/ruby-2.3.3/gems/airbrake-5.4.4/lib/airbrake/rake/task_ext.rb:19:in `execute'
/home/anonymous/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `eval'
/home/anonymous/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
@sigu
Copy link

sigu commented Feb 17, 2017

You need some configurations for the database connection. Sending the to you 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment