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 trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Write Our First Tests

Fabricio Portillo
Fabricio Portillo
16,718 Points

can'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:innew' 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:ineach' 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.1/lib/rails/commands/server.rb:84:instart' 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:intap' 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:inrequire' from bin/rails:4:in `<main>'

2 Answers

Stone Preston
Stone Preston
42,016 Points

are you using a virtual machine/vagrant or anything like that?

Fabricio Portillo
Fabricio Portillo
16,718 Points

yes. i dl the virtual machine treehouse suggested

Fabricio Portillo
Fabricio Portillo
16,718 Points

yes. i dl the virtual machine treehouse suggested

Stone Preston
Stone Preston
42,016 Points

you 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