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=FREEMAIL_FROM,T_DKIM_INVALID 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 BD3D81F4E1 for ; Mon, 25 Jun 2012 13:10:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 785282E061; Mon, 25 Jun 2012 13:10:14 +0000 (UTC) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by rubyforge.org (Postfix) with ESMTP id 3382B2E065 for ; Mon, 25 Jun 2012 13:02:35 +0000 (UTC) Received: by werf13 with SMTP id f13so3305567wer.23 for ; Mon, 25 Jun 2012 06:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=9rjk6Bs8FfB1E6D8Abct/cL6BJUleghly4TmFHmBs3M=; b=OqaZAmvj9A0lmvWhgLkHyKP8vHmjXAwpvjcbNvmdzcEl7sSjlDsJ30mnghZ277+CRl k9kSzJduWPxXfNHEQ0YZhrE9DJvx7LbnEu8FXA5rC/eudPMffvTyUzxt/WfT8YhqYg99 NAaxIBtUqEa0c4JcIUmeC+Av5bVyKRx7PIr87eUCFLXG9sF1JpWRxFkpWDRhMqDstJtp bUQdcM9d8IDjQkc1vwPjtRlW4VgTOOfe9Juoh9DSDzdnQIqDaIoUOS+/WqJ3cjmOXjJ0 hcLELCLXCExABrhEl6XHB0hFZbn9APB554qTdL2uOcL8HOiqeGamjjRouyTnQGAku8Zs H8yA== Received: by 10.180.24.68 with SMTP id s4mr24988684wif.4.1340629354395; Mon, 25 Jun 2012 06:02:34 -0700 (PDT) Received: from [192.168.1.200] (169.Red-88-15-113.dynamicIP.rima-tde.net. [88.15.113.169]) by mx.google.com with ESMTPS id bg10sm8606020wib.9.2012.06.25.06.02.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Jun 2012 06:02:33 -0700 (PDT) From: Manuel Palenciano Guerrero Subject: Address already in use Date: Mon, 25 Jun 2012 15:02:30 +0200 Message-Id: <0B72D3D4-CB04-47F2-B188-CAFDF41B8B1F@gmail.com> To: unicorn list Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) 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 Hello there, I seem to have a problem with unix-sockets, and cannot see many people with the same situation when googling. The problem is when upgrading (USR2 + QUIT) our applications. I get the following error very frequently but not always. E, [2012-06-21T11:40:46.386486 #29401] ERROR -- : adding listener failed addr=/tmp/unicorn.app.sock (in use) E, [2012-06-21T11:40:46.386669 #29401] ERROR -- : retrying in 0.5 seconds (4 tries left) E, [2012-06-21T11:40:46.887724 #29401] ERROR -- : adding listener failed addr=/tmp/unicorn.app.sock (in use) E, [2012-06-21T11:40:46.887832 #29401] ERROR -- : retrying in 0.5 seconds (3 tries left) E, [2012-06-21T11:40:47.388813 #29401] ERROR -- : adding listener failed addr=/tmp/unicorn.app.sock (in use) E, [2012-06-21T11:40:47.388894 #29401] ERROR -- : retrying in 0.5 seconds (2 tries left) E, [2012-06-21T11:40:47.889878 #29401] ERROR -- : adding listener failed addr=/tmp/unicorn.app.sock (in use) E, [2012-06-21T11:40:47.889957 #29401] ERROR -- : retrying in 0.5 seconds (1 tries left) E, [2012-06-21T11:40:48.390939 #29401] ERROR -- : adding listener failed addr=/tmp/unicorn.app.sock (in use) E, [2012-06-21T11:40:48.391020 #29401] ERROR -- : retrying in 0.5 seconds (0 tries left) E, [2012-06-21T11:40:48.892002 #29401] ERROR -- : adding listener failed addr=/tmp/unicorn.app.sock (in use) /var/www/app/staging/shared/bundle/ruby/1.8/gems/unicorn-4.3.0/lib/unicorn/socket_helper.rb:140:in `initialize': Address already in use - /tmp/unicorn.app.sock (Errno::EADDRINUSE) ...and the only way around that I know is stoping and starting the app, even in production. We have preload_app => true, and ONLY listening on unix-sockets, no TCP-sockets. The only solution I can think of would we switching to TCP, but would there be a reason on doing such ? Is this happening to any body else ? and would you know a possible solution ? Thanks very much in advance ! Manuel Palenciano _______________________________________________ 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