Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialFabricio Portillo
16,718 Pointscan't run rails s
I am having trouble launching when i give command 'rails s'
=> Booting WEBrick
=> Rails 4.0.1 application starting in development on http://0.0.0.0:3000
=> Run rails server -h
for more startup options
=> Ctrl-C to shutdown server
[2014-12-20 11:26:14] INFO WEBrick 1.3.1
[2014-12-20 11:26:14] INFO ruby 2.0.0 (2014-11-13) [i386-mingw32]
[2014-12-20 11:26:14] WARN TCPServer Error: Only one usage of each socket address (protocol/network address/port) 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:in
listen'
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:in
initialize'
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:in
run'
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.1/lib/rails/commands/server.rb:84:in
start'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:76:in block in <top (req
uired)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:71:in
tap'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:71:in <top (required)>'
from bin/rails:4:in
require'
from bin/rails:4:in `<main>'
2 Answers
Stone Preston
42,016 Pointsare you using a virtual machine/vagrant or anything like that?
Stone Preston
42,016 Pointsyou most likely have the server running in your VM. you will need to ssh into the VM and stop the server running there.
if it is a unix based machine then you can just kill any processes using port 3000 with the following command:
sudo fuser -k 3000/tcp
Fabricio Portillo
16,718 Pointsamazing!!! thanks so much
Fabricio Portillo
16,718 PointsFabricio Portillo
16,718 Pointsyes. i dl the virtual machine treehouse suggested
Fabricio Portillo
16,718 PointsFabricio Portillo
16,718 Pointsyes. i dl the virtual machine treehouse suggested