RhoConnect start error : rescue in establish_connection

198 views
Skip to first unread message

Pon

unread,
Jan 21, 2014, 10:59:20 PM1/21/14
to rhom...@googlegroups.com
Hi,
follow RhoConnect Tutorial , rhoconnect start  get error
My Computer OS: Windows 8 , Firewall Off

C:\Users\B02U003\workspace\RhoconnectApplication1>rhoconnect start
Starting redis in a new window...
Starting rhoconnect...
[4448][09:29:26.326 AM 2014-01-22] Rhoconnect Server v4.0.0 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.0/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.0/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.0/lib/rhoconnect.rb:152:in `start_app'
        from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon
nect-4.0.0/lib/rhoconnect.rb:141:in `bootstrap'
        from C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhocon
nect-4.0.0/lib/rhoconnect/application/init.rb:31:in `<top (required)>'
        from C:/Users/B02U003/workspace/RhoconnectApplication1/config.ru:2:in `r
equire'
        from C:/Users/B02U003/workspace/RhoconnectApplication1/config.ru:2:in `b
lock 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/RhoconnectApplication1/config.ru:in `new
'
        from C:/Users/B02U003/workspace/RhoconnectApplication1/config.ru:in `<ma
in>'
        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
Pon

Burgess Lars-KDWC48

unread,
Jan 24, 2014, 12:43:58 PM1/24/14
to rhom...@googlegroups.com

Have you tried connecting to redis directly?


C:\> C:\Users\admin>C:\MotorolaRhoMobileSuite4.0.0\redis-2.4.0\redis-cli.exe

redis 127.0.0.1:6379>


If redis doesn't start up when you run `rhoconnect start` (you should see a new window popup that stays around).  Then you can start it manually from the command line:


C:\> C:\Users\admin>C:\MotorolaRhoMobileSuite4.0.0\redis-2.4.0\redis-server.exe



-Lars



From: rhom...@googlegroups.com <rhom...@googlegroups.com> on behalf of Pon <godz...@gmail.com>
Sent: Tuesday, January 21, 2014 7:59 PM
To: rhom...@googlegroups.com
Subject: [rhomobile] RhoConnect start error : rescue in establish_connection
 
--
You received this message because you are subscribed to the Google Groups "rhomobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhomobile+...@googlegroups.com.
To post to this group, send email to rhom...@googlegroups.com.
Visit this group at http://groups.google.com/group/rhomobile.
For more options, visit https://groups.google.com/groups/opt_out.

Brendan Higgins

unread,
Mar 21, 2014, 11:26:56 AM3/21/14
to rhom...@googlegroups.com
I had the same error.

Redis was running fine.

I had an older RhoConnect app that was running.  I changed the non-working gemfile.lock file to the older gemfile.lock and it started to work.

Working file (older versions):
GEM
  remote: http://rubygems.org/
  specs:
    async-rack (0.5.1)
      rack (~> 1.1)
    connection_pool (1.0.0)
    daemons (1.1.9)
    diff-lcs (1.1.3)
    eventmachine (1.0.3-x86-mingw32)
    extlib (0.9.16)
    highline (1.6.20)
    json (1.7.7)
    mime-types (2.0)
    mono_logger (1.1.0)
    multi_json (1.8.2)
    rack (1.5.2)
    rack-fiber_pool (0.9.3)
    rack-protection (1.5.1)
      rack
    rack-test (0.6.2)
      rack (>= 1.0)
    rake (10.0.4)
    redis (3.0.6)
    redis-namespace (1.4.1)
      redis (~> 3.0.4)
    resque (1.25.1)
      mono_logger (~> 1.0)
      multi_json (~> 1.0)
      redis-namespace (~> 1.2)
      sinatra (>= 0.9.2)
      vegas (~> 0.1.2)
    rest-client (1.6.7)
      mime-types (>= 1.16)
    rhoconnect (4.0.0)
      bundler (~> 1.0)
      connection_pool (~> 1.0.0)
      json (~> 1.7.7)
      rack (~> 1.5.2)
      rake (~> 10.0.0)
      redis (>= 3.0.1)
      resque (>= 1.22.0)
      rest-client (~> 1.6.1)
      rubyzip (~> 0.9.4)
      sinatra (~> 1.3)
      templater (~> 1.0.0)
      thor (~> 0.18.0)
      uuidtools (>= 2.1.1)
    rhomobile-debug (1.0.7)
    rspec (2.10.0)
      rspec-core (~> 2.10.0)
      rspec-expectations (~> 2.10.0)
      rspec-mocks (~> 2.10.0)
    rspec-core (2.10.1)
    rspec-expectations (2.10.0)
      diff-lcs (~> 1.1.3)
    rspec-mocks (2.10.1)
    rubyzip (0.9.9)
    sinatra (1.4.4)
      rack (~> 1.4)
      rack-protection (~> 1.4)
      tilt (~> 1.3, >= 1.3.4)
    templater (1.0.0)
      diff-lcs (>= 1.1.2)
      extlib (>= 0.9.5)
      highline (>= 1.4.0)
    thin (1.6.1)
      daemons (>= 1.0.9)
      eventmachine (>= 1.0.0)
      rack (>= 1.0.0)
    thor (0.18.1)
    tilt (1.4.1)
    uuidtools (2.1.4)
    vegas (0.1.11)
      rack (>= 1.0.0)
    win32-api (1.5.0-x86-mingw32)
    win32-process (0.6.6)
      windows-pr (>= 1.2.2)
    windows-api (0.4.2)
      win32-api (>= 1.4.5)
    windows-pr (1.2.2)
      win32-api (>= 1.4.5)
      windows-api (>= 0.3.0)

PLATFORMS
  x86-mingw32

DEPENDENCIES
  async-rack
  dbd-jdbc (>= 0.1.4)
  dbi (>= 0.4.5)
  eventmachine (~> 1.0.0)
  jdbc-sqlite3 (>= 3.7.2)
  puma (~> 1.6.0)
  rack-fiber_pool
  rack-test (>= 0.5.3)
  rhoconnect (= 4.0.0)
  rhomobile-debug (>= 1.0.2)
  rspec (~> 2.10.0)
  thin
  warbler
  win32-process (= 0.6.6)


Non-working file:
GEM
  remote: http://rubygems.org/
  specs:
    async-rack (0.5.1)
      rack (~> 1.1)
    connection_pool (1.0.0)
    daemons (1.1.9)
    diff-lcs (1.1.3)
    eventmachine (1.0.3-x86-mingw32)
    extlib (0.9.16)
    highline (1.6.21)
    json (1.7.7)
    mime-types (2.2)
    mono_logger (1.1.0)
    multi_json (1.9.2)
    rack (1.5.2)
    rack-fiber_pool (0.9.3)
    rack-protection (1.5.2)
      rack
    rack-test (0.6.2)
      rack (>= 1.0)
    rake (10.0.4)
    redis (3.0.7)
    redis-namespace (1.4.1)
      redis (~> 3.0.4)
    resque (1.25.2)
      mono_logger (~> 1.0)
      multi_json (~> 1.0)
      redis-namespace (~> 1.3)
      sinatra (>= 0.9.2)
      vegas (~> 0.1.2)
    rest-client (1.6.7)
      mime-types (>= 1.16)
    rhoconnect (4.0.0)
      bundler (~> 1.0)
      connection_pool (~> 1.0.0)
      json (~> 1.7.7)
      rack (~> 1.5.2)
      rake (~> 10.0.0)
      redis (>= 3.0.1)
      resque (>= 1.22.0)
      rest-client (~> 1.6.1)
      rubyzip (~> 0.9.4)
      sinatra (~> 1.3)
      templater (~> 1.0.0)
      thor (~> 0.18.0)
      uuidtools (>= 2.1.1)
    rhomobile-debug (1.0.7)
    rspec (2.10.0)
      rspec-core (~> 2.10.0)
      rspec-expectations (~> 2.10.0)
      rspec-mocks (~> 2.10.0)
    rspec-core (2.10.1)
    rspec-expectations (2.10.0)
      diff-lcs (~> 1.1.3)
    rspec-mocks (2.10.1)
    rubyzip (0.9.9)
    sinatra (1.4.4)
      rack (~> 1.4)
      rack-protection (~> 1.4)
      tilt (~> 1.3, >= 1.3.4)
    templater (1.0.0)
      diff-lcs (>= 1.1.2)
      extlib (>= 0.9.5)
      highline (>= 1.4.0)
    thin (1.6.2)
      daemons (>= 1.0.9)
      eventmachine (>= 1.0.0)
      rack (>= 1.0.0)
    thor (0.18.1)
    tilt (1.4.1)
    uuidtools (2.1.4)
    vegas (0.1.11)
      rack (>= 1.0.0)
    win32-api (1.5.1-x86-mingw32)
    win32-process (0.6.6)
      windows-pr (>= 1.2.2)
    windows-api (0.4.2)
      win32-api (>= 1.4.5)
    windows-pr (1.2.3)
      win32-api (>= 1.4.5)
      windows-api (>= 0.4.0)

PLATFORMS
  x86-mingw32

DEPENDENCIES
  async-rack
  dbd-jdbc (>= 0.1.4)
  dbi (>= 0.4.5)
  eventmachine (~> 1.0.0)
  jdbc-sqlite3 (>= 3.7.2)
  puma (~> 1.6.0)
  rack-fiber_pool
  rack-test (>= 0.5.3)
  rhoconnect (= 4.0.0)
  rhomobile-debug (>= 1.0.2)
  rspec (~> 2.10.0)
  thin
  warbler
  win32-process (= 0.6.6)
Reply all
Reply to author
Forward
0 new messages