プロジェクト

全般

プロフィール

バグ #59

未完了

unicornワーカープロセスがrootのまま(redmineユーザーへ切り替えエラー)

高橋 徹 さんがほぼ8年前に追加. ほぼ8年前に更新.

ステータス:
解決
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
-
開始日:
2016/06/22
期日:
進捗率:

80%

予定工数:
重要度:

説明

Cent OS 6上でRedmine 3.3.0にアップデートする際、合わせてruby 2.3.1に変更したことによりgemを新規インストールした。
unicornを起動すると、ワーカープロセスのユーザー権限がredmineになるはずがrootとなっており、ログにはエラーが吐かれていた。

/var/lib/redmine/log/unicorn.stderr.log

Could not change user, oh well
E, [2016-06-22T11:42:32.718849 #12896] ERROR -- : undefined method `tmp' for #<Unicorn::Worker:0x00000004068ca0>
Did you mean?  tap (NoMethodError)
config/unicorn.rb:65:in `block in reload'
/var/lib/redmine-3.3.0/vendor/bundler/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/
http_server.rb:611:in `init_worker_process'
  :

調べると、Unicorn 5.0以上では、メソッドtmpが無くなったとのこと。
https://github.com/rubber/rubber/issues/570

他の形式にエクスポート: Atom PDF