# Can someone help me please with event machine?

**URL:** <https://www.ruby-forum.com/t/can-someone-help-me-please-with-event-machine/176478>\
**Category:** Ruby\
**Created:** [October 1, 2009, 4:59am UTC](https://www.ruby-forum.com/t/can-someone-help-me-please-with-event-machine/176478 "2009-10-01T04:59:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marclafia](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@marclafia](https://www.ruby-forum.com/u/marclafia)\
**Post date:** [October 1, 2009, 4:59am UTC](https://www.ruby-forum.com/t/can-someone-help-me-please-with-event-machine/176478/1 "2009-10-01T04:59:00Z")

</div>

I’m getting an error with event machine, being unable to connect to the  
server… I’m using the AMQP gem.

tcp\_connect: inp=0xba201f8 err=EADDRINUSE

/Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/eventmachine.rb:811:in  
`connect_server': no connection (RuntimeError) from /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/eventmachine.rb:811:in`reconnect’  
from  
/Users/maleko/workspace/geo/vendor/gems/gems/amqp-0.6.0/lib/amqp/client.rb:172:in  
`reconnect' from /Users/maleko/workspace/geo/vendor/gems/gems/amqp-0.6.0/lib/amqp/client.rb:85:in`call’  
from  
/Users/maleko/workspace/geo/vendor/gems/gems/amqp-0.6.0/lib/amqp/client.rb:85:in  
`unbind' from /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/eventmachine.rb:995:in`call’  
from  
/Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/eventmachine.rb:995:in  
`run_deferred_callbacks' from /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/eventmachine.rb:995:in`times’  
from  
/Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/eventmachine.rb:995:in  
`run_deferred_callbacks' from /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in`run\_machine’  
from  
/Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/eventmachine.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

---

<div class="post-metadata">

**Author:** ![marclafia](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@marclafia](https://www.ruby-forum.com/u/marclafia)\
**Post date:** [October 1, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/can-someone-help-me-please-with-event-machine/176478/2 "2009-10-01T20:22:25Z")

</div>

On Wed, Sep 30, 2009 at 8:59 PM, Marc L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> from  
> `run\_deferred\_callbacks’  
> /Users/maleko/workspace/geo/vendor/gems/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in  
> Thanks… It’s stumped me and my mates on this one.
> 
> ## Cheers
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Off the top of my head I would say the EADDRINUSE is saying it couldn’t  
bind  
to the socket. Is your application running with the proper permissions?  
Is  
there anything else running that is bound to that port already?

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I canâ€™t hear a word youâ€™re saying.”

-Greg Graffin (Bad Religion)
