3 Replies Latest reply on Jan 23, 2014 7:50 PM by Chih_Peng Hsu

    rescue in establish_connection

    Chih_Peng Hsu

      Hi,

      follow RhoConnect Tutorial , rhoconnect start  get error

      My Computer OS: Windows 8 , Firewall Off

       

      C:\Users\B02U003\workspace\Product>rhoconnect start

      Starting redis in a new window...

      Starting rhoconnect...

      [5280][03:02:17.411 PM 2014-01-22] Rhoconnect Server v4.0.2 started...

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-3.0.7/lib/red

      is/client.rb:288:in `rescue in establish_connection': Timed out connecting to Re

      dis on localhost:6379 (Redis::CannotConnectError)

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis/client.rb:285:in `establish_connection'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis/client.rb:79:in `block in connect'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis/client.rb:257:in `with_reconnect'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis/client.rb:78:in `connect'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis/client.rb:304:in `ensure_connected'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis/client.rb:191:in `block in process'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis/client.rb:270:in `logging'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis/client.rb:190:in `process'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis/client.rb:96:in `call'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis.rb:784:in `block in get'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis.rb:37:in `block in synchronize'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/1.9.1/monitor.rb:211:i

      n `mon_synchronize'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis.rb:37:in `synchronize'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/redis-

      3.0.7/lib/redis.rb:783:in `get'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/connec

      tion_pool-1.0.0/lib/connection_pool.rb:95:in `block in method_missing'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/connec

      tion_pool-1.0.0/lib/connection_pool.rb:48:in `with'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/connec

      tion_pool-1.0.0/lib/connection_pool.rb:94:in `method_missing'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon

      nect-4.0.2/lib/rhoconnect/store.rb:431:in `get_value'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon

      nect-4.0.2/lib/rhoconnect/store_orm.rb:50:in `is_exist?'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon

      nect-4.0.2/lib/rhoconnect.rb:156:in `start_app'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon

      nect-4.0.2/lib/rhoconnect.rb:145:in `bootstrap'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon

      nect-4.0.2/lib/rhoconnect/application/init.rb:31:in `<top (required)>'

              from C:/Users/B02U003/workspace/Product/config.ru:2:in `require'

              from C:/Users/B02U003/workspace/Product/config.ru:2:in `block in <main>'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/lib/rack/builder.rb:55:in `instance_eval'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/lib/rack/builder.rb:55:in `initialize'

              from C:/Users/B02U003/workspace/Product/config.ru:in `new'

              from C:/Users/B02U003/workspace/Product/config.ru:in `<main>'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/lib/rack/builder.rb:49:in `eval'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/lib/rack/builder.rb:49:in `new_from_string'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/lib/rack/builder.rb:40:in `parse_file'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/lib/rack/server.rb:199:in `app'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/lib/rack/server.rb:314:in `wrapped_app'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/lib/rack/server.rb:250:in `start'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/lib/rack/server.rb:141:in `start'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rack-1

      .5.2/bin/rackup:4:in `<top (required)>'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/bin/rackup:23:in `load'

              from C:/MotorolaRhoMobileSuite4.0.0/ruby/bin/rackup:23:in `<main>'


      Many thanks

      Chih_Peng