app error: Socket is not connected (Errno::ENOTCONN)

Matt Smith matt at nearapogee.com
Fri Apr 27 15:08:26 UTC 2012


On Fri, Apr 27, 2012 at 7:36 AM, Joel Nimety <jnimety at continuity.net> wrote:
> I'm getting the following errors multiple times per request when using
> 4.3.0.

I too started noticing these errors. I was trying to do some high
level debugging before posting.

Here are two examples of what I am getting:

cache: [GET /assets/marketing/splash.jpg] stale, valid, store
127.0.0.1 - - [27/Apr/2012 07:50:01] "GET /assets/marketing/splash.jpg
HTTP/1.1" 200 30431 0.0411
E, [2012-04-27T07:50:01.636410 #24786] ERROR -- : app error: Socket is
not connected (Errno::ENOTCONN)
E, [2012-04-27T07:50:01.636556 #24786] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:539:in
`shutdown'
E, [2012-04-27T07:50:01.636664 #24786] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:539:in
`process_client'
E, [2012-04-27T07:50:01.636781 #24786] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:605:in
`worker_loop'
E, [2012-04-27T07:50:01.636892 #24786] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:487:in
`spawn_missing_workers'
E, [2012-04-27T07:50:01.636996 #24786] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:137:in
`start'
E, [2012-04-27T07:50:01.637112 #24786] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/bin/unicorn:121:in
`<top (required)>'
E, [2012-04-27T07:50:01.637222 #24786] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/bin/unicorn:23:in `load'
E, [2012-04-27T07:50:01.637333 #24786] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/bin/unicorn:23:in `<main>'
cache: [GET /assets/marketing/splash-button.gif] stale, valid, store
127.0.0.1 - - [27/Apr/2012 07:50:01] "GET
/assets/marketing/splash-button.gif HTTP/1.1" 200 5735 0.0188

cache: [GET /] miss
127.0.0.1 - - [27/Apr/2012 08:03:27] "GET / HTTP/1.1" 200 - 0.7057
E, [2012-04-27T08:03:27.811826 #25138] ERROR -- : app error: Socket is
not connected (Errno::ENOTCONN)
E, [2012-04-27T08:03:27.811968 #25138] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:539:in
`shutdown'
E, [2012-04-27T08:03:27.812080 #25138] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:539:in
`process_client'
E, [2012-04-27T08:03:27.812189 #25138] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:605:in
`worker_loop'
E, [2012-04-27T08:03:27.812301 #25138] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:487:in
`spawn_missing_workers'
E, [2012-04-27T08:03:27.812411 #25138] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:137:in
`start'
E, [2012-04-27T08:03:27.812523 #25138] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.0/bin/unicorn:121:in
`<top (required)>'
E, [2012-04-27T08:03:27.812635 #25138] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/bin/unicorn:23:in `load'
E, [2012-04-27T08:03:27.812747 #25138] ERROR -- :
/Users/matt/.rbenv/versions/1.9.3-p194/bin/unicorn:23:in `<main>'
cache: [GET /assets/reset.css?body=1] stale, valid, store
127.0.0.1 - - [27/Apr/2012 08:03:28] "GET /assets/reset.css?body=1
HTTP/1.1" 304 - 0.0187

The cache statements are from rack-cache in development. This seems to
only be related to static files: images, css, and js assets. The
errors change on every request. My application is a 3.2.3 rails app. I
can look into this further later in the day. Please let me know if I
can provide further debugging information.

Thanks! Matt


More information about the mongrel-unicorn mailing list