From: Eric Wong <e@80x24.org>
To: Imdad <khanimdad@gmail.com>
Cc: unicorn-public@bogomips.org
Subject: Re: Having issue with Unicorn
Date: Fri, 24 Oct 2014 17:45:20 +0000 [thread overview]
Message-ID: <20141024174520.GA27334@dcvr.yhbt.net> (raw)
In-Reply-To: <CADQvUy7bRLTg0d5RyrgW1rsEFjJ2Q1Jh+bbuSDuxSN=79_eRZA@mail.gmail.com>
Imdad <khanimdad@gmail.com> wrote:
> I have rails4, nginx, unicorn and mona for app deployed
> http://104.131.74.69/
>
> But after deploy hitting on above link results in error, and the log says
>
> root@Hailisys:~# tail -n 0 -f
> /var/www/hailisys/shared/log/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=>#<Kgio::UNIXServer:fd 11>}] (in /var/www/hailisys/releases/28)
You're working inside /releases/28 here...
> /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)
However, it's trying to run out of /releases/6, which I assume is
old enough to be removed by now.
You should be able to set working_directory in your config/unicorn.rb:
working_directory "/var/www/hailisys/current"
Then SIGHUP to reload the config before sending SIGUSR2 to it.
Hopefully that works. Normally you shouldn't need to set
working_directory if you're working out of "/current";
but I'm not sure what your deploy environment looks like.
next prev parent reply other threads:[~2014-10-24 17:45 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-24 17:33 Having issue with Unicorn Imdad
2014-10-24 17:45 ` Eric Wong [this message]
2014-10-24 18:02 ` Imdad
2014-10-24 18:13 ` Eric Wong
2014-10-24 18:28 ` Imdad
2014-10-24 18:34 ` Eric Wong
2014-10-24 18:39 ` Imdad
2014-10-24 18:41 ` Imdad
2014-10-24 19:13 ` Eric Wong
2014-10-24 19:29 ` Imdad
2014-10-24 19:41 ` Eric Wong
2014-10-24 19:58 ` Imdad
2014-10-24 20:06 ` Eric Wong
2014-10-24 20:09 ` Imdad
2014-10-24 20:17 ` Eric Wong
2014-10-24 20:35 ` Imdad
2014-10-24 20:39 ` Imdad
2014-10-24 20:44 ` Eric Wong
2014-10-24 20:40 ` Eric Wong
2014-10-24 20:45 ` Imdad
2014-10-24 20:50 ` Imdad
2014-10-24 20:58 ` Eric Wong
2014-10-24 21:24 ` Imdad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141024174520.GA27334@dcvr.yhbt.net \
--to=e@80x24.org \
--cc=khanimdad@gmail.com \
--cc=unicorn-public@bogomips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).