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: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-1.0 required=3.0 tests=AWL,BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,URIBL_BLOCKED shortcircuit=no autolearn=ham version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 48D221FB0B for ; Fri, 24 Oct 2014 18:28:54 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id d1so1986455wiv.0 for ; Fri, 24 Oct 2014 11:28:52 -0700 (PDT) X-Received: by 10.194.94.132 with SMTP id dc4mr6873759wjb.56.1414175332823; Fri, 24 Oct 2014 11:28:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.138.100 with HTTP; Fri, 24 Oct 2014 11:28:32 -0700 (PDT) In-Reply-To: <20141024181300.GA29311@dcvr.yhbt.net> References: <20141024174520.GA27334@dcvr.yhbt.net> <20141024181300.GA29311@dcvr.yhbt.net> From: Imdad Date: Fri, 24 Oct 2014 23:58:32 +0530 Message-ID: Subject: Re: Having issue with Unicorn To: Eric Wong Cc: unicorn-public Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: PublicInbox::Filter 0.0.1 List-Id: Updates app_dir and shared_dir as stated here then did a deploy which went okay, but my app still not running and log spit the following... root@Hailisys:/var/www/hailisys/shared/log# tail -n 20 -f unicorn.stderr.log I, [2014-10-24T17:28:53.162084 #15819] INFO -- : executing ["/var/www/hailisys/releases/6/vendor/bundle/ruby/2.1.0/bin/unicorn", "-c", "/var/www/hailisys/current/config/unicorn.rb", "-D", "-E", "production", {11=>#}] (in /var/www/hailisys/releases/28) /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:475:in `exec': No such file or directory - /var/www/hailisys/releases/6/vendor/bundle/ruby/2.1.0/bin/unicorn (Errno::ENOENT) from /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:475:in `block in reexec' from /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:447:in `fork' from /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:447:in `reexec' from /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:307:in `join' from /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `' from /var/www/hailisys/releases/6/vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `load' from /var/www/hailisys/releases/6/vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `
' E, [2014-10-24T17:28:53.440532 #8814] ERROR -- : reaped # exec()-ed I, [2014-10-24T18:21:54.882454 #16594] INFO -- : executing ["/var/www/hailisys/releases/6/vendor/bundle/ruby/2.1.0/bin/unicorn", "-c", "/var/www/hailisys/current/config/unicorn.rb", "-D", "-E", "production", {11=>#}] (in /var/www/hailisys/releases/29) /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:475:in `exec': No such file or directory - /var/www/hailisys/releases/6/vendor/bundle/ruby/2.1.0/bin/unicorn (Errno::ENOENT) from /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:475:in `block in reexec' from /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:447:in `fork' from /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:447:in `reexec' from /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:307:in `join' from /var/www/hailisys/current/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `' from /var/www/hailisys/releases/6/vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `load' from /var/www/hailisys/releases/6/vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `
' E, [2014-10-24T18:21:55.053890 #8814] ERROR -- : reaped # exec()-ed Cheers! Imdad Ali Khan Mob (0) 9818484057 http://www.linkedin.com/in/imdad On 24 October 2014 23:43, Eric Wong wrote: > Imdad wrote: > > Thanks Eric, here is my deploy.rb and config/unicorn.rb > > NOTE: /releases/6 and /releases/28 both have same error message > > > > config/unicorn.rb > > ============== > > # Set your full path to application. > > app_dir = File.expand_path('../../', __FILE__) > > shared_dir = File.expand_path('../../../shared/', __FILE__) > > Using __FILE__ with File.expand_path here gets you in trouble > because it loses track of symlinks like "current" > > The following should be more explicit, I think: > > app_dir = "/var/www/hailisys/current" > shared_dir = "/var/www/hailisys/shared" > > And the rest of the config/unicorn.rb should pick those up as-is. > > > set :deploy_to, '/var/www/hailisys' > > Maybe you can export :deploy_to from your deploy config to your > unicorn invocation to DRY-up your config/unicorn.rb config. > > So perhaps, something like: > > app_dir = "#{ENV['deploy_to']}/current" > shared_dir = "#{ENV['deploy_to']}/shared" >