<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>pcdotfan (PCDotFan)</title>
    <link>https://ruby-china.org/pcdotfan</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>线上部署 Ruby China 帖子页面报错：Elasticsearch::Transport::Transport::Errors::NotFound</title>
      <description>&lt;p&gt;小弟初接触 Rails，昨天一整天都在折腾 Ruby China 的部署……环境 Nginx + Puma，已按照官方 Wiki &lt;a href="https://github.com/ruby-china/ruby-china/wiki/Ubuntu-14.04-%E4%B8%8A%E4%BD%BF%E7%94%A8-Nginx-Passenger-%E9%83%A8%E7%BD%B2-Ruby-on-Rails" rel="nofollow" target="_blank" title=""&gt;Ubuntu 14.04 上使用 Nginx Passenger 部署 Ruby on Rails&lt;/a&gt;  步骤完成。但在帖子页面还是出现了报错：&lt;/p&gt;
&lt;h2 id="Elasticsearch::Transport::Transport::Errors::NotFound in Topics#show"&gt;Elasticsearch::Transport::Transport::Errors::NotFound in Topics#show&lt;/h2&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Showing /blablabla/wordpress-log/app/views/topics/_related_topics.html.erb where line #2 raised:

[404] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","index":"topics","resource.type":"index_or_alias","resource.id":"topics"}],"type":"index_not_found_exception","reason":"no such index","index":"topics","resource.type":"index_or_alias","resource.id":"topics"},"status":404}
Extracted source (around line #97):

===
      size: size
    }
    self.class.__elasticsearch__.search(opts).records.to_a
  end

  def self.fields_for_list
===

Trace of template inclusion: app/views/topics/show.html.erb
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;请问问题出在哪里？恳求各位大大指教！&lt;/p&gt;</description>
      <author>pcdotfan</author>
      <pubDate>Tue, 07 Jun 2016 13:15:44 +0800</pubDate>
      <link>https://ruby-china.org/topics/30232</link>
      <guid>https://ruby-china.org/topics/30232</guid>
    </item>
  </channel>
</rss>
