unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: "NoMethodError: undefined method" after switching to unicorn
Date: Wed, 29 Jun 2011 22:04:20 -0700	[thread overview]
Message-ID: <20110630050420.GA19876@dcvr.yhbt.net> (raw)
In-Reply-To: <4AABABCB7BED4EAC9D72BFFCEF981CEC@gmail.com>

Tiago Scolari <tscolari@gmail.com> wrote:
> Hello, I'm having a lot of "NoMethodError: undefined method" errors
> after I moved from thin to unicorn.
> 
> This seems to happen only with active records, and dynamic methods,
> like: find_by_*, scoped_by_*, ...
> 
> It seems to be random, at least I haven't found relation yet.  I may
> reload the same page 10 times, sometimes it will work ok, some times
> it will give me this error.
> 
> I've 2 sites having this issue, one uses rails 3.0.9 (r 1.9.2) and
> other with 2.3.8 (r 1.8.7).  As i said, the issue started after I
> switched to unicorn.
> 
> Any idea what could cause this?

Are you using preload_app?

> vendor/plugins/rpm/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb:7:in
> `call'

Hrm, I wonder if the above file depends on (undocumented) Unicorn internals
that changed in unicorn 4.0.0?

> [GEM_ROOT]/gems/unicorn-4.0.0/lib/unicorn/http_server.rb:475:in
> `spawn_missing_workers'

It might be worth it to try unicorn 3.7.0 since 4.0.0 was just released
and some gems that depend on internal implementation details could
be broken.


Maybe somebody else here has a better explanation...

-- 
Eric Wong
_______________________________________________
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:[~2011-06-30  5:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9E260BC166D04FF1B0B7CBC563B221BA@gmail.com>
2011-06-30  3:33 ` "NoMethodError: undefined method" after switching to unicorn Tiago Scolari
2011-06-30  5:04   ` Eric Wong [this message]
2011-06-30 19:45     ` Eric Wong
2011-07-18 13:34       ` Undefined method " Douglas André
2011-07-18 19:42         ` Eric Wong
2011-07-08 23:29 "NoMethodError: undefined method" " Marc Sernatinger
2011-07-11  8:23 ` Eric Wong

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=20110630050420.GA19876@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --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).