Bulk Sync Issue - Bulk sync: got response from server: {"result":"wait"}

Hi  ,

I am using Rhoconnect that used to pull data from my backed Services those returned data in XML and i parse then in Query method source adopter and return result set.

data type using is - FixedSchema

sync type - bulk

partition - user

my Rhoconnect .yml

:sources:

  LoginSession:

    :poll_interval: 0

    :priority: 1

  MenuOptions:

    :poll_interval: 0

    :priority: 12

  Location:

    :poll_interval: 0

    :priority: 10

  Department:

    :poll_interval: 0

    :priority: 11

  Users:

    :poll_interval: 0

    DepartmentAssetType:

    :poll_interval: 0

  UserTypes:

    :poll_interval: 0

    :priority: 106

:development:

  :WebAPIServer: abc

  :licensefile: settings/license.key

  :redis: abc

  :syncserver: http://abc:9292/api/application/

  :push_server: http://someappname@abc:8675/

  :api_token: my-rhoconnect-token

  :username: abc

  :password: "abc"

  :bulk_sync_poll_interval: 3600

My Rhodes Application Setting -

-----------------

bulksync_state = 0

-------------------------------------------------

----------------------------------sample model ----------------------

class Users

  include Rhom::FixedSchema

  # Uncomment the following line to enable sync with Users.

  enable :sync

#  set :sync_priority, 2

    property :userid, :integer

    property :userlocationid, :integer

    property :useruniqueid, :string

    property :userpin, :string

    property :useractive, :bool

    property :usertypeid, :integer

    property :processpermissionlist, :string

  #add model specific code here

end

------------------------------------------------------

when i try sync bulk it stuck in "Bulk sync: got response from server: {"result":"wait"}"

Kutir Mobility
Hi Amit Jain, Did you run

Hi Amit Jain,

Did you run resque background job which runs the bulk sync process.

Thanks

Surendran S

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Amit Jain
Thanks for replyYes i tried


Thanks for reply

Yes i tried after your response.

step 1 - i added one into  Rho connect gem file  ----- gem "resque", "~> 1.23"

Step-2 - I go to my Rho connect directory and type ------- rake resque:work

                          

               output at command line is ----------- 

*** Warning:  As of version 4.0 of rhoconnect, the rake command

ed. ***

*** Use the corresponding rhoconnect commands instead.

    ***

*** Type 'rhoconnect help' for more information on these command

    ***

[12:23:22 PM 2013-05-27] Rhoconnect Server v3.4.2 started...

set QUEUE env var, e.g. $ QUEUE=critical,high rake resque:work

Step - 3 , now i have stared redis server (Rhoconnect redis -start ) and rhoconnect server (rhoconnect start )

but still result is Bulk sync: got response from server: {"result":"wait"}

One more thing i tried one more thing QUEUE=* COUNT=5 rake resque:workers. but it is giving bad command ouput is like

'QUEUE' is not recognized as an internal or external command,

operable program or batch file.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kutir Mobility
You need to set the env

You need to set the env variable QUEUE for running the jobs or try running this command in git bash.

Try QUEUE=* rake resque:work

Thanks

Surendran S

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Amit Jain
Hi Surendran,Thanks for reply

Hi Surendran,

Thanks for reply.

I tried it you suggest , i go to my Rhoconnect application directory form git bash command line

and type QUEUE=* rake resque:work

it replied - sh.exe" : QUEUE command not found

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Amit Jain
Thanks Surendran I now i

Thanks

Surendran

I now i first set QUEUE = high

then QUEUE=* rake resque:work

i can see the progress now it is processing at git command line bulk sync complete but 404 error display at log file og mobile app.

at rhoconnect command line it says

[02:29:37 PM 2013-05-27] Bulk sync errors are found in user: {"query-error"=>{"

message"=>"Request Timeout"}}


Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Amit Jain
ThanksSurendranI now i first


Thanks

Surendran

I now i first set QUEUE = high

then QUEUE=* rake resque:work

i can see the progress now it is processing at git command line bulk sync complete but 404 error display at log file og mobile app.

at rhoconnect command line it says

[02:29:37 PM 2013-05-27] Bulk sync errors are found in user: {"query-error"=>{"

message"=>"Request Timeout"}}

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Amit Jain
ThanksSurendranI now i first


Thanks

Surendran

I now i first set QUEUE = high

then QUEUE=* rake resque:work

i can see the progress now it is processing at git command line bulk sync complete but 404 error display at log file og mobile app.

     RhoRuby| require_compiled: helpers/browser_helper

I 05/27/2013 15:05:00:263 00001dbc                  APP| Params: {"partition"=>"user", "bulk_status"=>"download", "sync_type"=>"bulk", "status"=>"in_progress", "rho_callback"=>"1"}

I 05/27/2013 15:05:00:264 00001dbc           HttpServer| GC Start.

I 05/27/2013 15:05:00:265 00001614                 Sync| Bulk sync: download data from server: http:/192.17.102.152:9292:/.rzip

I 05/27/2013 15:05:00:265 00001614                  Net| Method: GET;Url: http://192.17.102.152:9292/.rzip

I 05/27/2013 15:05:00:265 00001614                  Net| Cookie : rhoconnect_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiJFZDQyMTUwMzUwN2NiNjdmMmNhZDJi%0AMDk5OTg2OGMwMTVjYjgwYmNmNjJjZjM5YTc2ZTEzYmU4ZmU0YmU0YzU3Ykki%0ACmxvZ2luBjsARkkiC3NrdW1hcgY7AFRJIg1hcHBfbmFtZQY7AEZJIhBhcHBs%0AaWNhdGlvbgY7AEY%3D%0A--05214082e707033ae8c2acfa1cade0f7dc5570df;path=/;rhoconnect_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiJFZDQyMTUwMzUwN2NiNjdmMmNhZDJi%0AMDk5OTg2OGMwMTVjYjgwYmNmNjJjZjM5YTc2ZTEzYmU4ZmU0YmU0YzU3Ykki%0ACmxvZ2luBjsARkkiC3NrdW1hcgY7AFRJIg1hcHBfbmFtZQY7AEZJIhBhcHBs%0AaWNhdGlvbgY7AEY%3D%0A--05214082e707033ae8c2acfa1cade0f7dc5570df;path=/;

I 05/27/2013 15:05:00:266 00001dbc           HttpServer| GC End.

E 05/27/2013 15:05:00:281 00001614                  Net| An error occured connecting to the server: 404 returned.

E 05/27/2013 15:05:00:281 00001614                 Sync| Bulk sync failed: cannot download database file.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kutir Mobility
By seeing your log I feel

By seeing your log I feel your bulk sync is almost success, your device is unable to download the zip or the location of the file may be wrong.

Can you try downloading the zip file from your browser ?

Thanks

Surendran S

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kutir Mobility
Bulk sync files will be

Bulk sync files will be stored in application root folder under data directory, can you check the location to make sure the file is created in your rhoconnect side.

Which source adapter are you trying to make a bulk sync ?

Thanks

Surendran S

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Amit Jain
Thanks a lot Surendra,Now i

Thanks a lot Surendra,

Now i am bale to download the file,  one more question i have some times i am facing .

When Rhoconnect hit the backed service and service contain large data(XML), Rhoconnect  throw a message "Request Timeout" and records does't download.

How to handle this request timeout when service take time to respond ?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Amit Jain
Thanks for reply Log file  - 

Thanks for reply

Log file  -  Bulk sync: download data from server: http://192.17.102.152:9292/data/c:/ACSRhoConnect/data/application/demo/demo_1369724157.data.rzip

I can see the 3 files C:/AmitRhoConnect/data/application/demo/demo_1369724157.data.rzip 

at this location.

but

An error occured connecting to the server: 404 returned.

E 05/28/2013 12:29:07:432 00001ec4                 Sync| Bulk sync failed: cannot download database file.

In Browser i have tried the url

http://192.17.102.152:9292/data/c:/ACSRhoConnect/data/application/demo/demo_1369724157.data.rzip but it saying

File not found: /data/c:/ACSRhoConnect/data/application/demo/demo_1369724157.data.rzip

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments