1 Reply Latest reply on Feb 20, 2014 10:20 PM by Alexey Mironov

    Trouble after param's change

    Alexey Mironov

      Hi,

      I use RhoConnect well. My Sync server connecting by MS SQL by Tiny_Tds lib (OS Linux Cent OS). So was good. But aftef some time I change connection string for  MS SQL (It wase some text file). I test params bi irb console.

       

      But when I try to Sunc me mobile device, log white -

       

      >> Writing PID to /var/run/thin/thin.1.pid

      >> Changing process privilege to nginx:nginx

      >> Using rack adapter

      [02:25:29 PM 2014-02-20] Rhoconnect Server v3.3.2 started...

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

      >> Maximum connections set to 1024

      >> Listening on /tmp/thin.1.sock, CTRL+C to stop

      [02:38:58 PM 2014-02-20] Use of the GET /application is deprecated. Use Rhoconnect API v1 instead.

      [02:38:58 PM 2014-02-20] Unknown client/opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/client_sync.rb:12:in `initialize'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/server.rb:171:in `new'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/server.rb:171:in `current_client_sync'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/api/app/query.rb:3:in `block in <top (required)>'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/async.rb:55:in `block (2 levels) in execute_api_call'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/async.rb:41:in `block in catch_all'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/async.rb:41:in `catch'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/async.rb:41:in `catch_all'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/async.rb:54:in `block in execute_api_call'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:1037:in `call'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:1037:in `block in spawn_threadpool'

      [02:39:03 PM 2014-02-20] Use of the GET /application is deprecated. Use Rhoconnect API v1 instead.

      [02:39:18 PM 2014-02-20] Use of the GET /application is deprecated. Use Rhoconnect API v1 instead.

       

       

      I can't understend what hapend. I change MS SQL DB's connection string on old version, but without result (so was as I white upeer).

      I re bundle app and restart demons (redis,nginx and thin)...

      What can I do?

       

      Litle add's -

       

      when I return old connections - Sync began work.

      Chdnge back - (it try to sync two models):

       

      [05:31:13 PM 2014-02-20] Use of the GET /application/clientreset is deprecated. Use Rhoconnect API v1 instead.

      [05:31:18 PM 2014-02-20] Use of the GET /application is deprecated. Use Rhoconnect API v1 instead.

      [05:31:18 PM 2014-02-20] Failure to create adapter from class TsdUserinfo: #<TinyTds::Error: Unable to connect: Adaptive Server is unavailable or does not exist>

      [05:31:18 PM 2014-02-20] Unable to connect: Adaptive Server is unavailable or does not exist/opt/rhoconnect/lib/ruby/gems/1.9.1/gems/tiny_tds-0.6.1/lib/tiny_tds/client.rb:77:in `connect'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/tiny_tds-0.6.1/lib/tiny_tds/client.rb:77:in `initialize'

      /opt/nginx/html/cp_suite_conn/sources/tsd_userinfo.rb:30:in `new'

      /opt/nginx/html/cp_suite_conn/sources/tsd_userinfo.rb:30:in `initialize'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/source_adapter.rb:38:in `new'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/source_adapter.rb:38:in `create'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/source_sync.rb:9:in `initialize'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/client_sync.rb:16:in `new'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/client_sync.rb:16:in `initialize'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/server.rb:171:in `new'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/server.rb:171:in `current_client_sync'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/api/app/query.rb:3:in `block in <top (required)>'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/async.rb:55:in `block (2 levels) in execute_api_call'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/async.rb:41:in `block in catch_all'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/async.rb:41:in `catch'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/async.rb:41:in `catch_all'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/rhoconnect-3.3.2/lib/rhoconnect/async.rb:54:in `block in execute_api_call'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:1037:in `call'

      /opt/rhoconnect/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:1037:in `block in spawn_threadpool'

      [05:31:24 PM 2014-02-20] Use of the GET /application is deprecated. Use Rhoconnect API v1 instead.

      Call Loc Query

       

      message "Call Loc Query" puts my sync proc, when sync my model number two so right. But firs sync ended by error message -

      [05:31:18 PM 2014-02-20] Failure to create adapter from class TsdUserinfo: #<TinyTds::Error: Unable to connect: Adaptive Server is unavailable or does not exist>

      [05:31:18 PM 2014-02-20] Unable to connect: Adaptive Server is unavailable or does not exist/opt/rhoconnect/lib/ruby/gems/1.9.1/gems/tiny_tds-0.6.1/lib/tiny_tds/client.rb:77:in `connect'

       

      DB connection string equal....