Ehud Rosenberg <[email protected]> wrote:
> Hi all,
> I'm experiencing a rather strange problem with unicorn on my production 
> server.
> Although the config file states preload_app true, sending USR2 to the
> master process does not generate any response, and it seems like
> unicorn is ignoring the signal altogether.
> On another server sending USR2 changes the master process to and (old)
> state and starts a new master process successfully.
> The problematic server is using RVM & bundler, so I'm assuming it's
> somehow related (the other one is vanilla ruby).

RVM could be a problem, especially if your ENV changed somehow and your
path to.  Can you dump out the START_CTX and ENV contents in the
before_exec hook?

  before_exec do |server|
    File.open("/tmp/start_ctx.dump", "ab") do |fp|
      PP.pp Unicorn::HttpServer::START_CTX, fp
      PP.pp ENV, fp
    end
  end

You may need to modify START_CTX if you're changing paths or if
somehow RVM gave you the wrong path to unicorn

START_CTX is documented here:
  http://unicorn.bogomips.org/Unicorn/HttpServer.html

> Sending signals other than USR2 (QUIT, HUP) works just fine.
> Is there a way to trace what's going on behind the scenes here?

Run strace (Linux) or equivalent on the master process.

> Unicorn's log file is completely empty.

This is the log you setup to point to stderr_path?  That shouldn't
happen...

-- 
Eric Wong
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to