Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection refused - connect(2) (Errno::ECONNREFUSED)

I am developing a spree application ,I recently removed and reinstalled ruby 1.9.3, now whenever I try rails s on terminal I get the following error :

/home/swapnil/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:762:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)

like image 788
vishB Avatar asked Mar 16 '12 07:03

vishB


2 Answers

Try this one : rake sunspot:solr:start
Look at this issue.I guess it may be helpful to you.
sunspot_rails gem - " Errno:: ECONNREFUSED (Connection refused - connect (2)) "

like image 71
big-circle Avatar answered Sep 30 '22 09:09

big-circle


You just need configure your Database connection in your database.yml and launch your SQL server with this configuration

like image 34
shingara Avatar answered Sep 30 '22 10:09

shingara