1 Reply Latest reply on Jun 4, 2013 11:00 PM by Lars Burgess

    Sync error in RhoConnect

      Hi All,

      I am getting error in syncing the data from RhoConnect to Rhodes.I am getting the client ID on login but not able to sync.

      Basic Details:  Platform: Windows XP

                            Internet: Proxy enviroment (Alraedy set the proxy enviroment)

                            Cant Say about the Port? --- How to check is port 9292 is listening or nor , as system is protected with company firewall.

       

      Need help in this rgards.

       

       

      Please find below the logs:

       

      C:\Ankur\RhoMobileProjects\DemoRhoApp>rhoconnect redis-startbg

      Starting redis in a new window...

       

      C:\Ankur\RhoMobileProjects\DemoRhoApp>rhoconnect start

      Starting rhoconnect...

      [10:12:55 AM 2013-06-05] Rhoconnect Server v3.3.2 started...

      >> Thin web server (v1.5.1 codename Straight Razor)

      >> Maximum connections set to 1024

      >> Listening on 0.0.0.0:9292, CTRL+C to stop

       

       

      {10:14:56 AM 2013-06-05] Use of the GET /application/clientreset is deprecated.

      Use Rhoconnect API v1 instead.

      127.0.0.1 - - [05/Jun/2013 10:14:56] "GET /application/clientreset?client_id=b6c

      eccd8e8d945fb87ab98c11ebc6712 HTTP/1.1" 200 - 0.0000

      [10:14:56 AM 2013-06-05] Use of the GET /application is deprecated. Use Rhoconne

      ct API v1 instead.

       

      [10:15:09 AM 2013-06-05] SourceAdapter raised query exception: getaddrinfo: No s

      uch host is known.

       

      [10:15:09 AM 2013-06-05] C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/ne

      t/http.rb:762:in `initialize'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/net/http.rb:762:in `open'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/net/http.rb:762:in `block i

      n connect'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/timeout.rb:54:in `timeout'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/timeout.rb:99:in `timeout'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/net/http.rb:762:in `connect

      '

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/net/http.rb:755:in `do_star

      t'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/net/http.rb:744:in `start'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7

      /lib/restclient/request.rb:172:in `transmit'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7

      /lib/restclient/request.rb:64:in `execute'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7

      /lib/restclient/request.rb:33:in `execute'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7

      /lib/restclient.rb:68:in `get'

      C:/Ankur/RhoMobileProjects/DemoRhoApp/sources/product.rb:16:in `query'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/source_adapter.rb:82:in `do_query'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/source_sync.rb:418:in `_read'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/source_sync.rb:57:in `read'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/source_sync.rb:96:in `block (2 levels) in do_query'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/stats/record.rb:54:in `update'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/source_sync.rb:94:in `block in do_query'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/source.rb:287:in `if_need_refresh'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/source_sync.rb:93:in `do_query'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/source_sync.rb:87:in `process_query'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/client_sync.rb:38:in `send_cud'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/api/app/query.rb:3:in `block in <top (required)>'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/async.rb:55:in `block (2 levels) in execute_api_call'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/async.rb:41:in `block in catch_all'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/async.rb:41:in `catch'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/async.rb:41:in `catch_all'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/

      lib/rhoconnect/async.rb:54:in `block in execute_api_call'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.

      3-x86-mingw32/lib/eventmachine.rb:1037:in `call'

      C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.

      3-x86-mingw32/lib/eventmachine.rb:1037:in `block in spawn_threadpool'

      127.0.0.1 - - [05/Jun/2013 10:15:09] "GET /application?client_id=b6ceccd8e8d945f

      b87ab98c11ebc6712&p_size=2000&version=3&source_name=Product HTTP/1.1" 200 163 13

      .1250

       

      Thanks in Advance!!

        • Re: Sync error in RhoConnect

          [10:15:09 AM 2013-06-05] SourceAdapter raised query exception: getaddrinfo: No s

          uch host is known.

           

          [10:15:09 AM 2013-06-05] C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/ne

          t/http.rb:762:in `initialize'

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/net/http.rb:762:in `open'

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/net/http.rb:762:in `block i

          n connect'

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/timeout.rb:54:in `timeout'

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/timeout.rb:99:in `timeout'

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/net/http.rb:762:in `connect

          '

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/net/http.rb:755:in `do_star

          t'

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/1.9.1/net/http.rb:744:in `start'

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7

          /lib/restclient/request.rb:172:in `transmit'

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7

          /lib/restclient/request.rb:64:in `execute'

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7

          /lib/restclient/request.rb:33:in `execute'

          C:/MotorolaRhoMobileSuite2.1.1.7/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7

          /lib/restclient.rb:68:in `get'

          C:/Ankur/RhoMobileProjects/DemoRhoApp/sources/product.rb:16:in `query'

           

          The last line here says it all (product.rb:16).  This means line 16 of your product.rb adapter is failing.  My guess is you need to setup your code so it connects to the web service using your proxy.  If you're using RestClient gem it's trivial to do: https://github.com/rest-client/rest-client#proxy

          1 of 1 people found this helpful