LoginSignup
0
0

More than 5 years have passed since last update.

macを新しくして`rails s`しようとして `start_tcp_server': no acceptor (port is in use or requires root privileges) でたけど、portは空いてるんですけど

Posted at

背景

  • 最近macを変えた
  • 移行アプリケーションで旧macからデータ移行した
  • rails4.2.6
  • ruby2.3.1
  • rails sしようとしたら 'start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)
  • sudo rails s しても同じエラーなので権限じゃなさそう
  • 同じportは使ってない。絶対使ってない。

解決法

  • /etc/hostsに127.0.0.1 localhostを追記する(!)

一言

  • エラー文言がなかなかいじわるだと思った
  • まさかhostsだとは、、
    • っていうか、デフォルトでlocalhostのhosts設定してないのか、、、
  • stackoverflowに助けられた
  • 超限定的な条件だけど、結構ハマってつらかったので一応書いておく
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0