Rails server error

rails server

=> Booting WEBrick

=> Rails 4.0.2 application starting in development on
http://0.0.0.0:3000

=> Run rails server -h for more startup options

=> Ctrl-C to shutdown server

[2013-12-26 23:29:07] INFO WEBrick 1.3.1

[2013-12-26 23:29:07] INFO ruby 2.0.0 (2013-11-22) [i386-mingw32]

[2013-12-26 23:29:07] WARN TCPServer Error: Only one usage of each
socket
address (protocol/network address/po
rt) is normally permitted. - bind(2)

Exiting

C:/Ruby200/lib/ruby/2.0.0/webrick/utils.rb:85:in `initialize’: Only one
usage of each socket address (protocol/
network address/port) is normally permitted. - bind(2)
(Errno::EADDRINUSE)

    from C:/Ruby200/lib/ruby/2.0.0/webrick/utils.rb:85:in `new'

    from C:/Ruby200/lib/ruby/2.0.0/webrick/utils.rb:85:in `block in

create_listeners’
from C:/Ruby200/lib/ruby/2.0.0/webrick/utils.rb:82:in `each’

    from C:/Ruby200/lib/ruby/2.0.0/webrick/utils.rb:82:in

create_listeners' from C:/Ruby200/lib/ruby/2.0.0/webrick/server.rb:132:inlisten’

    from C:/Ruby200/lib/ruby/2.0.0/webrick/server.rb:113:in

initialize' from C:/Ruby200/lib/ruby/2.0.0/webrick/httpserver.rb:45:ininitialize’
from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:11:in
new' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:11:inrun’
from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:264:in
start' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/commands/server.rb:84:instart’
from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:76:in
`block in <top (req
uired)>’

    from

C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in
tap' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in<top (required)>’
from bin/rails:4:in `require’

    from bin/rails:4:in `<main>'

You are attempting to start another servr at the same port as one which
is already running. You need to find and kill the one before you can
run another.

i have restarted my pc but i still have the same pb, i wasnt able to
fins
the process which was running,thanks

If you’re running *NIX you can see which process is listening on port
3000
by running lsof -i :3000

You can also change the port you want your rails server to listen to
with
the -9 option.

For example : rails server -p 8080 will listen on port 8080.

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