unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Devin Ben-Hur <dbenhur@whitepages.com>
To: <mongrel-unicorn@rubyforge.org>
Subject: Re: Default Socket Location
Date: Fri, 20 Jan 2012 09:22:48 -0800	[thread overview]
Message-ID: <4F19A2E8.7050206@whitepages.com> (raw)
In-Reply-To: <CAL2S26Xuv9yFMq0icQhHKxXf_UpoofgUR8A+t1Y=nvZnoof-+A@mail.gmail.com>

On 01/20/2012 07:35 AM, Steven Garcia wrote:
> I am collaborating on a Rails app with a very minimal unicorn config
> (the socket dir is not specified)
>
> I have booted up the app and created the necessary nginx server config
> for it, but it does not seem to be finding the socket file (502 error)
>
> Was just wondering where this file would be by default. Looking at
> unicorn's documentation I had expected it to be living in the /tmp
> directory, but no such luck.
>
> For good measure I also checked my app's tmp/sockets folder but no dice either

You could use `sudo lsof -p <unicorn-PID>` to see all the open files of 
a running unicorn.  This will show you shared objects, files, pipes, 
sockets, etc.

> Since this app is a joint effort, specifying the socket location in
> the config is not an option

Unicorn defaults to listening on TCP 0.0.0.0:8080 unless you tell it 
something else. It wont listen on a unix domain socket unless you 
configure it to.

You can use --listen with the unicorn startup script 
<http://unicorn.bogomips.org/unicorn_1.html> or the 
listen(address,options) method in your unicorn.conf 
<http://unicorn.bogomips.org/Unicorn/Configurator.html> to change this.

I don't see how being a collaborator on a joint effort means you can't 
change config, it just means you need to discuss and agree on the common 
configuration.
_______________________________________________
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


      reply	other threads:[~2012-01-20 17:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20 15:35 Default Socket Location Steven Garcia
2012-01-20 17:22 ` Devin Ben-Hur [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=4F19A2E8.7050206@whitepages.com \
    --to=dbenhur@whitepages.com \
    --cc=mongrel-unicorn@rubyforge.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).