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 Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

Could Not Connect to localhost:3000

After running through everything in Installing Ruby on Windows I can't connect to localhost:3000. Any help is greatly appreciated.

Quick Update: -I ran the 'bundle exec rails server'. -I got the first 4-5 lines (=> Booting ... to => Ctrl-C to shutdown server) -Then it states "Exiting" with a whole bunch of info that follows

Don't know if that extra info helps. Thanks in advanced.

Stone Preston
Stone Preston
42,016 Points

that extra info would be helpful

Here's all that extra info.

C:\Users\reillywj\Documents\testapp>bundle exec rails server DL is deprecated, please use Fiddle => Booting WEBrick => Rails 4.1.0 application starting in development on http://0.0.0.0:3000 => Run rails server -h for more startup options => Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0 .0.1 (--binding option) => Ctrl-C to shutdown server Exiting C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:1 99:in rescue in create_default_data_source': No timezone data source could be f ound. To resolve this, either install TZInfo::Data (e.g. by runninggem install tzinfo-data) or specify a zoneinfo directory usingTZInfo::DataSource.set(:zo neinfo, zoneinfo_path). (TZInfo::DataSourceNotFound) from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/dat a_source.rb:196:increate_default_data_source' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/dat a_source.rb:62:in block in get' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/dat a_source.rb:61:insynchronize' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/dat a_source.rb:61:in get' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/tim ezone.rb:601:indata_source' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/tim ezone.rb:114:in get' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/tim ezone_proxy.rb:84:inreal_timezone' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/tim ezone_proxy.rb:52:in period_for_utc' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/tim ezone.rb:524:incurrent_period' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/act ive_support/core_ext/object/try.rb:45:in public_send' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/act ive_support/core_ext/object/try.rb:45:intry' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/act ive_support/values/time_zone.rb:223:in utc_offset' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/act ive_support/values/time_zone.rb:396:inblock in []' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/act ive_support/values/time_zone.rb:396:in tap' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/act ive_support/values/time_zone.rb:396:in[]' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/act ive_support/core_ext/time/zones.rb:60:in find_zone!' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/act ive_support/railtie.rb:20:inblock in <class:Railtie>' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/in itializable.rb:30:in instance_exec' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/in itializable.rb:30:inrun' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/in itializable.rb:55:in block in run_initializers' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:150:inblock in tsort_each'

    from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in

each_strongly_connected_component' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:219:in each_strongly_connec ted_component_from' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:182:inblock in each_strong ly_connected_component' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:180:in each' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:180:ineach_strongly_connec ted_component' from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:148:in tsort_each' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/in itializable.rb:54:inrun_initializers' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/ap plication.rb:288:in initialize!' from C:/Users/reillywj/Documents/testapp/config/environment.rb:5:in<to p (required)>' from C:/Users/reillywj/Documents/testapp/config.ru:3:in require' from C:/Users/reillywj/Documents/testapp/config.ru:3:inblock in <main> ' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder .rb:55:in instance_eval' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder .rb:55:ininitialize' from C:/Users/reillywj/Documents/testapp/config.ru:in new' from C:/Users/reillywj/Documents/testapp/config.ru:in<main>' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder .rb:49:in eval' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder .rb:49:innew_from_string' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder .rb:40:in parse_file' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server. rb:277:inbuild_app_and_options_from_config' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server. rb:199:in app' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/co mmands/server.rb:50:inapp' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server. rb:314:in wrapped_app' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/co mmands/server.rb:130:inlog_to_stdout' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/co mmands/server.rb:67:in start' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/co mmands/commands_tasks.rb:81:inblock in server' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/co mmands/commands_tasks.rb:76:in tap' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/co mmands/commands_tasks.rb:76:inserver' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/co mmands/commands_tasks.rb:40:in run_command!' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/co mmands.rb:17:in<top (required)>' from bin/rails:4:in require' from bin/rails:4:in<main>'

2 Answers

I found another user on here had similar issues. Will need to use 1.9.... instead of 2.0.

ETA: 2.0 doesn't work with Windows 8 for some reason.

I've tried again and still am getting the same response. Any help greatly appreciated!