Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.

Error with passenger: Returning HTTP 503 due to: Request queue full #84

Open
urielhdz opened this issue Oct 21, 2015 · 0 comments
Open

Comments

@urielhdz
Copy link

My site goes down as soon as I mount the Faye middleware on Passenger 5.06 and nginx 1.6.2.

This is how I'm mounting the middleware:

config.middleware.delete Rack::Lock
    if Rails.env.production?
        config.middleware.use FayeRails::Middleware, mount: '/faye', :timeout => 25, server: 'passenger',                
             engine: {type: Faye::Redis, host: 'localhost'}
    else
        config.middleware.use FayeRails::Middleware, mount: '/faye', :timeout => 25 
    end

In my local machine with Thin everything works as expected.

I have faye-redis on my Gemfile and redis server 3.0.5 installed on my server.

I was wondering if is there extra configuration that has to be done on Nginx to support websockets or if it works out the box.

My nginx log files show the following:

Connection reset by peer) while sending to client, client: x.x.x.x, server: domain.com, request: "POST /faye HTTP/1.1, upstream: "passenger:unix:/tmp/passenger.3zszl5P/agents.s/server:"

And eventually

Returning HTTP 503 due to: Request queue full (configured max. size: 100)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant