jimsynz / faye-rails

Simple Rails glue for the Faye messaging protocol.
MIT License
435 stars 79 forks source link

Rack application could not be started #17

Closed garrettlancaster closed 11 years ago

garrettlancaster commented 12 years ago

It seems that I sometimes get this message, and other times it starts up fine. Any ideas would be appreciated.

I'm running on nginx and passenger, and have faye running on 4443 in my routes file.

Error message:
no acceptor

Exception class:
RuntimeError

Application root:
/home/shoptracker/src/shoptracker/current

Backtrace:
0   /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb    572 in `start_tcp_server'
1   /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb    572 in `start_server'
2   /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/backends/tcp_server.rb  16  in `connect'
3   /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/backends/base.rb    53  in `block in start'
4   /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/backends/base.rb    59  in `call'
5   /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/backends/base.rb    59  in `start'
6   /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/server.rb   159 in `start'
7   /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/handler/thin.rb 13  in `run'
8   /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/faye-0.8.2/lib/faye/adapters/rack_adapter.rb    54  in `listen'
9   /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/faye-rails-1.0.0/lib/faye-rails/rack_adapter.rb 16  in `listen'
10  /home/shoptracker/src/shoptracker/releases/20120703040944/config/routes.rb  3   in `block (2 levels) in '
11  /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/faye-rails-1.0.0/lib/faye-rails/routing_hooks.rb    27  in `instance_eval'
12  /home/shoptracker/src/shoptracker/shared/bundle/ruby/1.9.1/gems/faye-rails-1.0.0/lib/faye-rails/routing_hooks.rb    27  in `faye_server'
13  /home/shoptracker/src/shoptracker/releases/20120703040944/config/routes.rb  2   in `block in '
jimsynz commented 12 years ago

That's pretty weird. Are you sure that you don't have two processes running at the same time?

garrettlancaster commented 12 years ago

I'm using capistrano, so maybe there is something in the way it deploys? I have also noticed that when I get the error, if I just leave it and come back after a while, it works fine...very odd behavior.

jimsynz commented 12 years ago

So it definitely sounds like it's a problem with access to the port. If you're using nginx then try switching to using unix sockets instead?