Rails 5 Address already in use - bind(2) for "127.0.0.1" port 3000
<p>After some coding got this error on running <code>rails s</code>:</p>

<pre><code>Address already in use - bind(2) for "127.0.0.1" port 3000 (Errno::EADDRINUSE)
</code></pre>

<p>My environment is:</p>

<pre><code>$ rails -v       
Rails 5.0.0
$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
</code></pre>

<p>I've tried:</p>

<ol>
<li>Create a new project - the same</li>
<li>Checked Rails 4.2 - problem <strong>solved</strong></li>
<li>Reinstall rails 5 and ruby - the same problem</li>
<li><code>lsof -wni tcp:3000</code> returns me nothing</li>
<li>ps aux | grep "rails" - nothing</li>
<li>ps aux | grep "puma" - nothing</li>
<li>ps aux | grep "ruby" -nothing</li>
<li>Use <code>puma</code> instead of <code>rails s</code> - problem <strong>solved</strong> </li>
<li>Use <code>rails s -p 3001</code> - same problem, for other ports too</li>
</ol>

<p>UPDATED</p>

<ol start="9">
<li>Use <code>RAILS_ENV=production bundle exec rails s</code> - problem <strong>solved</strong></li>
</ol>

<p>Any suggestions?</p>