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

Server is shutting down automatically

I installed everything and it seemed to be going well until I tried to connect to the server. I did the Ruby64bit install

C:\Users\Tatiana Perry\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'

and it keeps going from there. I am not shutting it down.

9 Answers

try adding the following line to your gemfile

gem 'tzinfo-data'

I tried that. It it still giving me the same information.

did you run bundle install after adding it?

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Tatiana Perry\Documents\testapp>bundle install DL is deprecated, please use Fiddle Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Using rake 10.2.2 Using i18n 0.6.9 Using json 1.8.1 Using minitest 5.3.2 Using thread_safe 0.3.3 Using tzinfo 1.1.0 Using activesupport 4.1.0 Using builder 3.2.2 Using erubis 2.7.0 Using actionview 4.1.0 Using rack 1.5.2 Using rack-test 0.6.2 Using actionpack 4.1.0 Using mime-types 1.25.1 Using polyglot 0.3.4 Using treetop 1.4.15 Using mail 2.5.4 Using actionmailer 4.1.0 Using activemodel 4.1.0 Using arel 5.0.0 Using activerecord 4.1.0 Using coffee-script-source 1.7.0 Using execjs 2.0.2 Using coffee-script 2.2.0 Using thor 0.19.1 Using railties 4.1.0 Using coffee-rails 4.0.1 Using hike 1.2.3 Using multi_json 1.9.2 Using jbuilder 2.0.6 Using jquery-rails 3.1.0 Using bundler 1.6.2 Using tilt 1.4.1 Using sprockets 2.11.0 Using sprockets-rails 2.1.3 Using rails 4.1.0 Using rdoc 4.1.1 Using sass 3.2.19 Using sass-rails 4.0.3 Using sdoc 0.4.0 Using sqlite3 1.3.9 Using turbolinks 2.2.2 Using uglifier 2.5.0 Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.

C:\Users\Tatiana Perry\Documents\testapp>

alright looks like your gem installed correctly. now try starting the server again

I think I did. I just did Ctrl-C, exited command to be sure, but still nothing.

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Tatiana Perry>

C:\Users\Tatiana Perry>cd Documents

C:\Users\Tatiana Perry\Documents>cd testapp

C:\Users\Tatiana Perry\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/Tatiana Perry/Documents/testapp/config/environment.rb:5:in <top (required)>' from C:/Users/Tatiana Perry/Documents/testapp/config.ru:3:in require' from C:/Users/Tatiana Perry/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/Tatiana Perry/Documents/testapp/config.ru:in new' from C:/Users/Tatiana Perry/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>'

C:\Users\Tatiana Perry\Documents\testapp>

are you sure the server isnt working? those messages may just be warnings. try starting the server, and then checking your localhost address.

i am not sure what is happening, I have a Linux machine and I think I will just switch to that. But I have the files in the gem folder. I just navigated to them. tzinfo tzinfo-data

but when I look at the bundler ( I did an update) tzinfo-data is missing

Resolving dependencies... Using rake 10.2.2 Using i18n 0.6.9 Using json 1.8.1 Using minitest 5.3.2 Using thread_safe 0.3.3 Using tzinfo 1.1.0 Using activesupport 4.1.0 Using builder 3.2.2 Using erubis 2.7.0 Using actionview 4.1.0 Using rack 1.5.2 Using rack-test 0.6.2 Using actionpack 4.1.0 Using mime-types 1.25.1 Using polyglot 0.3.4 Using treetop 1.4.15 Using mail 2.5.4 Using actionmailer 4.1.0 Using activemodel 4.1.0 Using arel 5.0.0 Using activerecord 4.1.0 Using bundler 1.6.2 Using coffee-script-source 1.7.0 Using execjs 2.0.2 Using coffee-script 2.2.0 Using thor 0.19.1 Using railties 4.1.0 Using coffee-rails 4.0.1 Using hike 1.2.3 Using multi_json 1.9.2 Using jbuilder 2.0.6 Using jquery-rails 3.1.0 Using tilt 1.4.1 Using sprockets 2.11.0 Using sprockets-rails 2.1.3 Using rails 4.1.0 Using rdoc 4.1.1 Using sass 3.2.19 Using sass-rails 4.0.3 Using sdoc 0.4.0 Using sqlite3 1.3.9 Using turbolinks 2.2.2 Using uglifier 2.5.0 Your bundle is updated!

im really not sure either. Ive never developed with rails on a windows machine so sorry I cant be of much help. You will probably have a much easier time with linux than windows though

Thanks for your help. I managed to get installed on my Linux laptop. Just ran into 1 issue and that was quickly solved. And I also got a nitrious.io account so I can practice anywhere.

I am having the same issue as OP on a clean install 8.1 windows machine. Any more info? It works fine on my Mac and *nix boxes but i do have reason to do this training on my Windows workstation for sure.

wondering if this is x64 ruby specific on windows, going to try reinstall with 32bit devkit/ruby.

Verified this DOES work fine with the 32bit rails/devkit.