LoginSignup
7
6

More than 5 years have passed since last update.

【間違い】UnicornとかのSocketに `/tmp/` ディレクトリを使っちゃダメらしい

Last updated at Posted at 2014-09-24

ごめんなさい、以下の記述は全部忘れてください。/tmp意外はdeployするユーザーの権限がないのでsocketの作成ができません。

なぜ動かなかったのかはわかりませんが、全部元に戻したらまた動き出しました。

こっから元の記述(間違えてた)

何もUnicornの設定を変えてないはずなのにこんなエラーが出て困る。

2014/09/24 04:08:49 [error] 1547#0: *1887 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: examle.com, request: "GET /static_pages/about HTTP/1.1", upstream: "http://unix:/tmp/unicorn.examle.sock:/static_pages/about", host: "examle.com"

原因?

どうやら "/tmp にソケットファイルを置くんじゃねーよ! /var/sockets とか /var/run におけ!" というお触れが出てるっぽいのでそれが原因じゃないかなと思う。(これ書いてる時は未解決)

いずれにせよsocketを /tmp に置くのはやめといたほうが良さげです。

7
6
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
7
6