Upgrading problems, 2.3.5 -> 2.3.8

Ever since I updated rails to 2.3.8, script/server exits right after it
starts.
Here’s the output

=> Ctrl-C to shutdown server
[2010-05-29 18:14:58] INFO WEBrick 1.3.1
[2010-05-29 18:14:58] INFO ruby 1.9.1 (2009-01-30) [i686-linux]
[2010-05-29 18:14:58] WARN TCPServer Error: Address already in use -
bind(2)
Exiting
/usr/local/lib/ruby/1.9.1/webrick/utils.rb:73:in initialize': Address already in use - bind(2) (Errno::EADDRINUSE) from /usr/local/lib/ruby/1.9.1/webrick/utils.rb:73:innew’
from /usr/local/lib/ruby/1.9.1/webrick/utils.rb:73:in block in create_listeners' from /usr/local/lib/ruby/1.9.1/webrick/utils.rb:70:ineach’
from /usr/local/lib/ruby/1.9.1/webrick/utils.rb:70:in
create_listeners' from /usr/local/lib/ruby/1.9.1/webrick/server.rb:74:inlisten’
from /usr/local/lib/ruby/1.9.1/webrick/server.rb:62:in initialize' from /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:24:ininitialize’
from
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.1/lib/rack/handler/webrick.rb:10:in
new' from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.1/lib/rack/handler/webrick.rb:10:inrun’
from
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/commands/server.rb:111:in
<top (required)>' from script/server:3:inrequire’
from script/server:3:in `’

I think the problem is with bind, but I have no idea what to do with it.
Thanks in advance

On Sat, May 29, 2010 at 6:18 PM, Omar M. [email protected]
wrote:

Ever since I updated rails to 2.3.8, script/server exits right after it
starts.

[2010-05-29 18:14:58] WARN TCPServer Error: Address already in use -
bind(2)
Exiting
/usr/local/lib/ruby/1.9.1/webrick/utils.rb:73:in `initialize’: Address
already in use - bind(2) (Errno::EADDRINUSE)

It means exactly what it says: you have another process, probably
a previous instance of webrick, already running on the port that your
new instance is trying to bind to.

Find it and kill it.

man netstat might be of help if you have trouble figuring out which
process id is responsible.

HTH,

Hassan S. ------------------------ [email protected]
twitter: @hassan