Cannot reach http://localhost:3000 after starting Ruby on Rails server

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:inblock 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:inrequire’
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:inresol
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:inblock (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:inexecute_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:ineach’
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:ininstance_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:inblock 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:inrun_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:inmethod_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:inblock in ’
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:ininitialize’
from C:/Users/Brian/railsapp/config.ru:in new' from C:/Users/Brian/railsapp/config.ru:in
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:inparse_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:inapp’
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:instart’
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:inblock 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

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.

On 13 April 2013 21:26, CatGuy90 [email protected] wrote:

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)

The error is saying that it cannot find the sqlite3 adaptor. Have you
run
bundle install

[snip]

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.

Since the server has exited that is not really surprising. Error
messages can be daunting but it is always worth reading them to try
and work out what the problem is.

Colin

According to the stack trace sqlite3 isn’t part of the bundle, so bundle
install wouldn’t help without adding it first.

Also most rails devs use Linux or Mac for their work so I would advice
the
OP to use a VM with Ubuntu or set the machine up for dual boot. The
chance
to get help is much higher since he hasn’t to cope with windows specific
errors for himself.
Am 14.04.2013 14:32 schrieb “Colin L.” [email protected]:

On 14 April 2013 16:44, Norbert M. [email protected] wrote:

According to the stack trace sqlite3 isn’t part of the bundle, so bundle
install wouldn’t help without adding it first.

OK, I was not sure whether the error meant that it is not part of the
installed bundle or is missing from Gemfile itself, though I have to
admit that the error message is specific.

@CatGuy90 I would have expected sqlite to be included in Gemfile be
default, have you removed it yourself?

Colin