Sock error

Hi, i have a rails app using unicorn + nginx.
Last month my app started to get really slow and giving me error 502.
Unicorn log doesn’t show nothing, either my rails app log.
But looking at nginx error log, i get numerous:

[error] 1837#0: *263157 connect() to unix:/tmp/.app.sock failed (11:
Resource temporarily unavailable) while connecting to upstream,

What could it be? What causes this?

If I change from socket to tcp connection, my tcp connection doesn’t
give
this error, but gets time out.

Thanks for any help.

Posted at Nginx Forum:

On Wed, May 27, 2015 at 05:55:23PM -0400, birimblongas wrote:

Hi there,

But looking at nginx error log, i get numerous:

[error] 1837#0: *263157 connect() to unix:/tmp/.app.sock failed (11:
Resource temporarily unavailable) while connecting to upstream,

What could it be? What causes this?

nginx is configured to talk to something else - the rails/unicorn server

using proxy_pass or something similar.

That “something else” is not listening in the place where nginx is
configured to look for it.

See where your unicorn server is listening. Point your nginx at that
place.

f

Francis D. [email protected]

Thanks, but both are pointing to the same place.

I don’t get the error all the time, just some times (more than what
would be
acceptable, but not all the time)

Posted at Nginx Forum:

Hello!

On Wed, May 27, 2015 at 05:55:23PM -0400, birimblongas wrote:

If I change from socket to tcp connection, my tcp connection doesn’t give
this error, but gets time out.

Both the error and timeouts indicate that your backend is
overloaded and can’t cope with load, so it’s listening socket
queue overflows and it starts rejecting connections.


Maxim D.
http://nginx.org/