From: Glen Holcomb Date: 2009-10-02T02:47:37+09:00 Subject: Re: Can someone help me please with event machine? --0015175cfd84cd9b6f0474e33d2e Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Wed, Sep 30, 2009 at 8:59 PM, Marc Lee wrote: > I'm getting an error with event machine, being unable to connect to the > server.. I'm using the AMQP gem. > > tcp_connect: inp=3D0xba201f8 err=3DEADDRINUSE > > > > /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/even= tmachine.rb:811:in > `connect_server': no connection (RuntimeError) > from > > /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/even= tmachine.rb:811:in > `reconnect' > from > > /Users/maleko/workspace/geo/vendor/gems/gems/amqp-0.6.0/lib/amqp/client.r= b:172:in > `reconnect' > from > > /Users/maleko/workspace/geo/vendor/gems/gems/amqp-0.6.0/lib/amqp/client.r= b:85:in > `call' > from > > /Users/maleko/workspace/geo/vendor/gems/gems/amqp-0.6.0/lib/amqp/client.r= b:85:in > `unbind' > from > > /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/even= tmachine.rb:995:in > `call' > from > > /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/even= tmachine.rb:995:in > `run_deferred_callbacks' > from > > /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/even= tmachine.rb:995:in > `times' > from > > /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/even= tmachine.rb:995:in > `run_deferred_callbacks' > from > > /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/even= tmachine.rb:242:in > `run_machine' > from > > /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/even= tmachine.rb:242:in > `run' > from > /Users/maleko/workspace/geo/vendor/gems/gems/amqp-0.6.0/lib/amqp.rb:81:in > `start' > > > Thanks... It's stumped me and my mates on this one. > > Cheers > -- > Posted via http://www.ruby-forum.com/. > > Off the top of my head I would say the EADDRINUSE is saying it couldn't bin= d to the socket. Is your application running with the proper permissions? I= s there anything else running that is bound to that port already? --=20 "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can=92t hear a word you=92re saying." -Greg Graffin (Bad Religion) --0015175cfd84cd9b6f0474e33d2e--