RhoConnect Sync working off and on

// Expert user has replied.
P Peter Arcuri 2 years 11 months ago
0 5 0

A partner reported that their Rhodes app doesn't alway sync up the database. He stated by creating a Rhodes app and a RhoConnect app (local) following the demo instructions found on the Rhomobile site.  This first set of apps worked fine on RhoSimulator, device emulator and the devices (Android & windows).

Then  he tried to build a second app using Rhohub this time (http://docs.rhomobile.com/rhohub/tutorial and video Webinar).  He encountered problems with deployment of the app so he pushed the code onto https://app.rhohub.com/ using Git without any problem, buteverytime I tried to deploy I got a "Failed" status.  No error message, nothing.... How do we can check for errors? He couldn't locate a log file to provide insight.
  
Finally he was able to do it following the instructions on the site, creating the apps on Rhohub site, get it locally using Git, doing the modifications, push it back and deploy.

He 3rd app he followed instructions in the webinar on how to use .NET plug-in and RhoConnect. He was able to get the .Net plug-in to work except the synchronisation part. He saw that RhoSimulator was connected but the sync was not working.

He thought of launching all 3 apps that he had developed leveraging RhoConnect. Two were working/sync'ing fine but when he launched the third app he was unable to sync anyone with any apps. RhoConnect stopped/froze entirely.

He then noticed that he was unable to compile his .Net Plug-in on RhoHub. Redis is launched but after the freeze ocurred with RhoConnect. For the first pair off apps (the local ones) I am able to run and get the Sync when uploading from a device to http://rhostore.heroku.com/products , but when modifying something on the site and sync'ing with RhoSimulator it doesn't work until I reset/reinitialize the database. How can he sync up changes without having to reset the DB. 

Thoughts, suggestions are welcome. 

Please register or login to post a reply

5 Replies

G Glenn Sayer

Peter,  Keep in mind that the RhoConnect version on RhoHub might not be the same as is installed with the V2 install.  One other thing to try is add the sync_changes to your dosync call as this will cause your update to be synced before the query is done.

SyncEngine.dosync(false,":sync_changes => true")

R Robin West

I will pass your input along to the partner. He's currently away on PTO, but certainly will find your input valuable.

M Maxim Zverev

As far as .NET plugin, there was a bug in plugin initialization part that was addressed in RhoConnect 3.2.1 released on June 22.
Please, install new rhoconnect gem and give it a try. You will need to change the RhoConnect dependency in your app's Gemfile from 3.2.0 to 3.2.1 and run 'bundle install'.

Max.

D Darryn Campbell

Hi Max, thank you for the reply. Rhoconnect is working now for me. I changed in my Rhoconnect app the in settings.yml the value for syncserver from 
:syncserver: http://localhost:9292/api/application/ 
to
:syncserver: http://'my_ip_addr':9292/api/application/
but now when starting RhodesApp I don't get the clientId. In log I get:
Net| An error occurred connecting to the server: 404 returned.
Do you have any idea?   

P Peter Arcuri

Hi Max, the partner resumed work on this as he just returned from vacation. Unfortunately the results are similar.  He got the new version of Rhoconnect (3.2.1), modify the gemfile and ran "bundle install". Now when running the app in RhoStudio he got redis started with message "Starting rhoconnect..." , but nothing happen.In the redis-server window we don't get a client connected. Is there something possibly missing here in order to get a successful client connection?

CONTACT
Can’t find what you’re looking for?