From: Eric Wong <e@80x24.org>
To: Aashish Kiran <aashish.kiran@gmail.com>
Cc: unicorn-public@bogomips.org
Subject: Re: Unicorn could not find log file
Date: Sun, 5 Feb 2017 08:37:45 +0000 [thread overview]
Message-ID: <20170205083744.GA22618@starla> (raw)
In-Reply-To: <CADgDTzTJDCjJU2YRU+hWzArRKCUSi-MbyqAGyPEoQTcE=hPPJQ@mail.gmail.com>
Aashish Kiran <aashish.kiran@gmail.com> wrote:
> Hi,
> I facing the following error, inspite of creating
> ~/apps/voice_rules/shared/log/unicorn.stderr.log.
> Can you help.
>
>
> $ bundle exec unicorn -c config/unicorn.rb
>
> /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:762:in
> `initialize': No such file or directory @ rb_sysopen -
> ~/apps/voice_rules/shared/log/unicorn.stderr.log (Errno::ENOENT)
I guess you have the literal "~/" in your config/unicorn.rb?
Instead of the "~/", you should probably have the value of
the HOME environment variable.
In other words, use:
stderr_path "#{ENV['HOME']}/apps/voice_rules/shared/log/unicorn.stderr.log"
Not this:
stderr_path "~/apps/voice_rules/shared/log/unicorn.stderr.log"
The "~/" is only evaluated to be the value of ENV['HOME']
by your shell (probably bash if you use a GNU/Linux system).
Most other tools (like unicorn) will interpret '~/' literally.
prev parent reply other threads:[~2017-02-05 8:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-05 8:21 Unicorn could not find log file Aashish Kiran
2017-02-05 8:37 ` Eric Wong [this message]
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=20170205083744.GA22618@starla \
--to=e@80x24.org \
--cc=aashish.kiran@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).