unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: ghazel@gmail.com
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: listen backlog
Date: Sat, 4 Dec 2010 16:02:53 -0800	[thread overview]
Message-ID: <AANLkTinCFbv1nLD0ATHpazdMok46yYgfeXseg1E=KEzw@mail.gmail.com> (raw)
In-Reply-To: <20101204234833.GA11161@dcvr.yhbt.net>

On Sat, Dec 4, 2010 at 3:48 PM, Eric Wong <normalperson@yhbt.net> wrote:
> ghazel@gmail.com wrote:
>> On Fri, Dec 3, 2010 at 1:49 PM, Eric Wong <normalperson@yhbt.net> wrote:
>> > ghazel@gmail.com wrote:
>> >> Using "modprobe inet_diag" made the script spit out a new error:
>> >>
>> >>             address     active     queued
>> >> linux-tcp-listener-stats.rb:42:in `tcp_listener_stats': NLMSG_ERROR
>> >> (RuntimeError)
>> >>         from linux-tcp-listener-stats.rb:42
>> >
>> > I don't think I've ever seen NLMSG_ERROR before.  Are you running
>> > this as the same user that originally bound the listener (the user
>> > of the Unicorn master process)?
>>
>> Yes. I also tried as root, same error.
>>
>> >> $ sudo modprobe -l inet_diag
>> >> /lib/modules/2.6.21.7-2.fc8xen/kernel/net/ipv4/inet_diag.ko
>> >>
>> >> I dug in to raindrops a little bit, and it seems the error associated
>> >> with the NLMSG_ERROR is -2,
>> >> "No such file or directory".
>> >
>> > Are you bound to 0.0.0.0:9000 and not 127.0.0.1:9000?  Use
>> > 0.0.0.0:9000 if you're bound to that (I had another user on the
>> > raindrops mailing list with that problem).
>>
>> My unicorn.rb says 127.0.0.1. But just to test I tried fetching stats
>> for 0.0.0.0:9000 but got the same error.
>
> Ah, can you try "modprobe tcp_diag", too?  I can't remember what other
> quirks there were for ancient kernels.  Hopefully that works, because
> I'd be at a loss otherwise :x

Ah! That worked. Thanks!

-Greg
_______________________________________________
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:[~2010-12-05  0:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03  1:35 listen backlog ghazel
2010-12-03  2:39 ` Eric Wong
2010-12-03  5:31   ` ghazel
2010-12-03  7:35     ` Eric Wong
2010-12-03  9:16       ` ghazel
2010-12-03 21:49         ` Eric Wong
2010-12-03 22:49           ` ghazel
2010-12-04 23:48             ` Eric Wong
2010-12-05  0:02               ` ghazel [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='AANLkTinCFbv1nLD0ATHpazdMok46yYgfeXseg1E=KEzw@mail.gmail.com' \
    --to=ghazel@gmail.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).