{"comment":{"created_at":"2011-10-26T01:38:56Z","body":"[19:18] <brixen> mustmodify: how complex is your app and is it closed-source?\r\n[19:18] <brixen> I've run stuff on passenger and not seen this, so curious how we can best repro it running\r\n\r\nThe app is trivial. It's a brand new rails 3 app. It has a few views, no models, no authetication... and it works fine with \"rails s\" I'm not sure how to reproduce other than that you're welcome to remote into my dev machine.\r\n\r\njw","updated_at":"2011-10-26T01:38:56Z","url":"https://api.github.com/repos/rubinius/rubinius/issues/comments/2525535","id":2525535,"user":{"avatar_url":"https://secure.gravatar.com/avatar/c598c745fb01bfabcb7d77cd59eccea2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c598c745fb01bfabcb7d77cd59eccea2","url":"https://api.github.com/users/mustmodify","id":32432,"login":"mustmodify"}},"action":"created","issue":{"number":1367,"created_at":"2011-10-26T00:15:11Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I recently installed rbx-head using rvm. After trouble figuring out how to get passenger running on rbx2, I removed passenger and rebuilt from scratch.\r\n\r\nUsing a Nginx / Passenger / Rails (2 or 3) stack, when I go to a Rails action, rails renders a 200, but the resulting response is a 502 Bad Gateway. I've tracked this down to a locking problem in passenger.\r\n\r\nif there are gem issues with the app, the passenger \"failed to start\" page shows, so passenger is working on some level. Also, of course, /images/rails.png works fine.\r\n\r\nerror log, versions, and nginx config:\r\nhttps://gist.github.com/1314274\r\n\r\n\r\nTailing the Rails log, it looks like everything is fine:\r\n\r\nStarted GET \"/\" for 192.168.1.7 at Tue Oct 25 19:07:53 -0500 2011\r\n  Processing by PagesController#welcome as HTML\r\nRendered pages/welcome.html.haml (7.4ms)\r\nCompleted 200 OK in 44ms (Views: 41.4ms | ActiveRecord: 0.0ms)\r\n\r\nHowever, nginx reports:\r\n\r\n2011/10/25 19:07:54 [error] 3014#0: *114 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.7, server: dev.mustmodify.com, request: \"GET / HTTP/1.1\", upstream: \"passenger:unix:/passenger_helper_server:\", host: \"dev.mustmodify.com\"\r\n\r\nand passenger says:\r\n\r\n[ pid=6298 thr=82624 file=abstract_request_handler.rb:244 time=2011-10-25 19:07:42.676 ]: Entering request handler main loop\r\n[ pid=6298 thr=82624 file=abstract_request_handler.rb:466 time=2011-10-25 19:07:42.678 ]: Accepting new request on main socket\r\nThread deadlock in ::lock()!\r\n[ pid=2976 thr=139753104639744 file=ext/common/ApplicationPool/Pool.h:1162 time=2011-10-25 19:07:50.24 ]: Exception occurred while connecting to checked out process 6298: Cannot connect to Unix socket '/tmp/passenger.1.0.2972/generation-0/backends/ruby.WSF22kIBCegnDDjBN6Lk5dwEHKoqWywVA26Lyc7FPleGtWMRf4GU2DHy': Connection refused (111)\r\n[ pid=2976 thr=139753104639744 file=ext/common/ApplicationPool/Pool.h:685 time=2011-10-25 19:07:50.24 ]: Detaching process 6298\r\n[ pid=2976 thr=139753104639744 file=ext/common/ApplicationPool/../Process.h:138 time=2011-10-25 19:07:50.25 ]: Application process 6298 (0xfbb2a0): destroyed.\r\n[ pid=2976 thr=139753104639744 file=ext/common/ApplicationPool/Pool.h:939 time=2011-10-25 19:07:50.25 ]: Spawning a process for /source/mustmodify/www because there are none for this app group\r\n[ pid=2976 thr=139753104639744 file=ext/common/ApplicationPool/../SpawnManager.h:291 time=2011-10-25 19:07:50.25 ]: Spawning a new application process for /source/mustmodify/www...\r\n[ pid=2976 thr=139753104639744 file=ext/common/ApplicationPool/../SpawnManager.h:413 time=2011-10-25 19:07:50.47 ]: Application process 6308 spawned\r\n[ pid=2976 thr=139753104639744 file=ext/common/ApplicationPool/../Process.h:117 time=2011-10-25 19:07:50.47 ]: Application process 6308 (0xfbb950): created.\r\n[ pid=6308 thr=82640 file=abstract_request_handler.rb:244 time=2011-10-25 19:07:52.256 ]: Entering request handler main loop\r\n[ pid=6308 thr=82640 file=abstract_request_handler.rb:466 time=2011-10-25 19:07:52.258 ]: Accepting new request on main socket\r\nThread deadlock in ::lock()!\r\n\r\n\r\n\r\n","comments":1,"title":"passenger fails with 'Thread deadlock' ","updated_at":"2011-10-26T01:38:56Z","url":"https://api.github.com/repos/rubinius/rubinius/issues/1367","id":2051926,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/c598c745fb01bfabcb7d77cd59eccea2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c598c745fb01bfabcb7d77cd59eccea2","url":"https://api.github.com/users/mustmodify","id":32432,"login":"mustmodify"},"html_url":"https://github.com/rubinius/rubinius/issues/1367","labels":[],"state":"open"},"legacy":{"issue_id":2051926,"comment_id":2525535}}