Errno::EADDRINUSE

=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2009-10-06 09:50:03] INFO WEBrick 1.3.1
[2009-10-06 09:50:03] INFO ruby 1.8.6 (2007-09-24) [i386-linux]
[2009-10-06 09:50:03] WARN TCPServer Error: Address already in use -
bind(2)
Exiting
/usr/lib/ruby/1.8/webrick/utils.rb:73:in initialize': Address already in use - bind(2) (Errno::EADDRINUSE) from /usr/lib/ruby/1.8/webrick/utils.rb:73:innew’
from /usr/lib/ruby/1.8/webrick/utils.rb:73:in create_listeners' from /usr/lib/ruby/1.8/webrick/utils.rb:70:ineach’
from /usr/lib/ruby/1.8/webrick/utils.rb:70:in create_listeners' from /usr/lib/ruby/1.8/webrick/server.rb:75:inlisten’
from /usr/lib/ruby/1.8/webrick/server.rb:63:in initialize' from /usr/lib/ruby/1.8/webrick/httpserver.rb:24:ininitialize’
from
/usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:9:in
new' from /usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:9:inrun’
from
/usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:111
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
from script/server:3

/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize’: Address already
in use - bind(2) (Errno::EADDRINUSE)

address is already in use…You should try with different port number…
script/server -p xxxx
Ralu Rm wrote:

Sijo kg wrote:

Or kill the existing process From konsole type

netstat -nlp|grep ruby Find out the PID Now
kill -9 processid

Sijo

thanks sijo… problem solved!!!

Or kill the existing process From konsole type

netstat -nlp|grep ruby Find out the PID Now
kill -9 processid

Sijo

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs