I cannot reach http://localhost:3000 after starting Ruby on Rails
server when running Windows 8. After running rails server in the
directory that I want the server to start, the following prompt shows
up:

C:\Users\Brian\railsapp>rails server
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/
rubygems_integ
ration.rb:214:in `block in replace_gem': Please install the sqlite3
adapter: `ge
m install activerecord-sqlite3-adapter` (sqlite3 is not part of the
bundle. Add
it to Gemfile.) (LoadError)
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activerecord-3.2.13/lib/act
ive_record/connection_adapters/sqlite3_adapter.rb:3:in `<top
(required)>'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activesupport-3.2.13/lib/ac
tive_support/dependencies.rb:251:in `require'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activesupport-3.2.13/lib/ac
tive_support/dependencies.rb:251:in `block in require'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activesupport-3.2.13/lib/ac
tive_support/dependencies.rb:236:in `load_dependency'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activesupport-3.2.13/lib/ac
tive_support/dependencies.rb:251:in `require'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activerecord-3.2.13/lib/act
ive_record/connection_adapters/abstract/connection_specification.rb:
50:in `resol
ve_hash_connection'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activerecord-3.2.13/lib/act
ive_record/connection_adapters/abstract/connection_specification.rb:
41:in `resol
ve_string_connection'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activerecord-3.2.13/lib/act
ive_record/connection_adapters/abstract/connection_specification.rb:
25:in `spec'

        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activerecord-3.2.13/lib/act
ive_record/connection_adapters/abstract/connection_specification.rb:
130:in `esta
blish_connection'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activerecord-3.2.13/lib/act
ive_record/railtie.rb:82:in `block (2 levels) in <class:Railtie>'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activesupport-3.2.13/lib/ac
tive_support/lazy_load_hooks.rb:36:in `instance_eval'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activesupport-3.2.13/lib/ac
tive_support/lazy_load_hooks.rb:36:in `execute_hook'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activesupport-3.2.13/lib/ac
tive_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activesupport-3.2.13/lib/ac
tive_support/lazy_load_hooks.rb:42:in `each'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activesupport-3.2.13/lib/ac
tive_support/lazy_load_hooks.rb:42:in `run_load_hooks'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activerecord-3.2.13/lib/act
ive_record/base.rb:720:in `<top (required)>'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/
activerecord-3.2.13/lib/act
ive_record/railtie.rb:88:in `block in <class:Railtie>'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/i
nitializable.rb:30:in `instance_exec'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/i
nitializable.rb:30:in `run'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/i
nitializable.rb:55:in `block in run_initializers'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/i
nitializable.rb:54:in `each'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/i
nitializable.rb:54:in `run_initializers'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/a
pplication.rb:136:in `initialize!'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/r
ailtie/configurable.rb:30:in `method_missing'
        from C:/Users/Brian/railsapp/config/environment.rb:5:in `<top
(required)
>'
        from C:/Users/Brian/railsapp/config.ru:3:in `require'
        from C:/Users/Brian/railsapp/config.ru:3:in `block in <main>'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/
rack/builder
.rb:51:in `instance_eval'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/
rack/builder
.rb:51:in `initialize'
        from C:/Users/Brian/railsapp/config.ru:in `new'
        from C:/Users/Brian/railsapp/config.ru:in `<main>'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/
rack/builder
.rb:40:in `eval'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/
rack/builder
.rb:40:in `parse_file'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/
rack/server.
rb:200:in `app'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/c
ommands/server.rb:46:in `app'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/
rack/server.
rb:304:in `wrapped_app'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/
rack/server.
rb:254:in `start'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/c
ommands/server.rb:70:in `start'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/c
ommands.rb:55:in `block in <top (required)>'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/c
ommands.rb:50:in `tap'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/
lib/rails/c
ommands.rb:50:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'

C:\Users\Brian\railsapp>

After going to Internet Explorer 10, I tried to access http://localhost:3000,
and I got a "This page can't be displayed" error. I tried doing
"telnet localhost 3000" in the Command Prompt, and I got a "Could not
open connection to the host, on port 3000" error. I also tried
modifying C:\Windows\System32\drivers\etc\hosts, removing the # symbol
for one of the "localhost" entries, but I still could not access
http://localhost:3000. Please help me with this issue. Thank you.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to