错误localhost:3000 - Errno :: ECONNREFUSED at / courses

时间:2016-09-05 14:00:42

标签: ruby-on-rails solr server

我正在尝试预览带有课程的页面,我收到此错误:

enter image description here

Errno::ECONNREFUSED at /courses

Connection refused -
{:data=>"fq=type%3ACourse&fq=hidden_b%3Afalse&sort=university_sponsor_b+desc%2C+university_partner_b+desc%2C+score+desc%2C+score+desc%2C+name_s+asc&start=0&rows=15&q=%2A%3A%2A", :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :headers=>
{"Content-Type"=>"application/x-www-form-urlencoded; charset=UTF-8"}, :path=>"select", :uri=>#<URI::HTTP:0x0055dda6f37c60 
URL:http://localhost:8982/solr/development/select?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil}

有人知道如何修复此错误吗?

1 个答案:

答案 0 :(得分:0)

之前发生过这种情况,也许你没有正确设置数据库。 尝试这样的事情:

rake db:drop rake db:create rake db:migrate # rake db:seed