From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=0.0 required=5.0 tests=none shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: archivist@yhbt.net Delivered-To: archivist@dcvr.yhbt.net Received: from rubyforge.org (50-56-192-79.static.cloud-ips.com [50.56.192.79]) by dcvr.yhbt.net (Postfix) with ESMTP id 8E9F71F525 for ; Fri, 9 Mar 2012 22:05:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C7124263034; Fri, 9 Mar 2012 22:05:28 +0000 (UTC) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org X-Greylist: delayed 323 seconds by postgrey-1.31 at rubyforge; Fri, 09 Mar 2012 21:53:58 UTC Received: from Crpehubprd01.polycom.com (crpehubprd01.polycom.com [140.242.64.158]) by rubyforge.org (Postfix) with ESMTP id 1EA0426302F for ; Fri, 9 Mar 2012 21:53:57 +0000 (UTC) Received: from CRPMBOXPRD04.polycom.com ([fe80::3472:d06:af7a:aa56]) by Crpehubprd01.polycom.com ([fe80::5efe:10.236.0.158%14]) with mapi; Fri, 9 Mar 2012 13:48:31 -0800 From: "Yeung, Jeffrey" To: "mongrel-unicorn@rubyforge.org" Date: Fri, 9 Mar 2012 13:48:26 -0800 Subject: Unicorn_rails ignores USR2 signal Thread-Topic: Unicorn_rails ignores USR2 signal Thread-Index: Acz+PlterTvNBvuKTIKYfHdbXZ0v6w== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Hi, I have a problem with one of my Rails servers where the daemonized unicorn_rails master seems to completely ignores the USR2 signal (only). First, about the environment. I've searched for solutions to this problem for several day now, and my situation appears to differ from most in that my environment is not using RVM, bundler, Capistrano, or other sandboxing tools. It's a fairly plain jane Rails deployment. The OS is 64-bit Ubuntu 10.04 server. $ uname -a Linux 2.6.32-37-server #81-Ubuntu SMP Fri Dec 2 20:49:12 UTC 2011 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.04.4 LTS Release: 10.04 Codename: lucid $ ruby -v ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux] The Rails gem version is 2.3.14. Unicorn gem version 4.2.0. The Unicorn config includes "preload_app true". We use the same Unicorn configs on similar servers and for some yet unknown reason, this one is seeing a problem with USR2. I have done my best to debug it using strace and the stderr logs. The unicorn_rails master process handles HUP, QUIT, and USR1 signals as expected, no problems. However, the USR2 signal is being completely ignored. I added a before_exec block in the Unicorn conf with some puts statements, but this hook never gets called (unlike the before_fork and after_fork hooks, which are working fine for me). before_exec do |server| $stderr.puts("DEBUG before_exec") $stderr.puts(ENV.inspect) $stderr.puts(Unicorn::HttpServer::START_CTX.inspect) end While monitoring the master with strace, there are no calls observed when sending a kill -USR2. Nothing is logged to STDERR when sending this signal, either. This has me completely stymied with the lack of logging info. Does anyone have any clues that can point me in the right direction? -Jeff _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying