Error while Building Sync2 module

Thankyou @dkayiwa that worked the magic for the atom feed module. I don’t know if anyone else has updated and compiled the Sync module, but those errors still persist atleast for me.

@odorajonathan i have just made another commit to the sync module. Can you update and compile it again?

I have actually done so but the same errors are persisting. Here is the logo

@lgilbert confirm that you have the latest changes for the sync2 module.

1 Like

@dkayiwa That worked the trick as well, thanks again :smiley: @lgilbert seems you did not update the module to the latest commits

1 Like

I have recloned the module but let me do it again.

@lgilbert You didn’t have to clone the module again. All you need is to run the command git pull --rebase and it will update and then you can compile

You should also notice that recloning means deleting previous folders of the module from you machine otherwise you won’t be able to clone successfully

2 Likes

yeah sure. it has finally done the trick. Thanks.

1 Like

@dkayiwa thanks for the update…have had a successful build…cheers

Do we have some good documentation that explains the sync module written code and not just from the implementation point of view…I am having some hard time running around figuring out the different beans and how they fit into each other…there are very few comments in the different classes and interfaces plus other resources that mention what the different parameters are for and the end goal of the different functions/methods… if we don’t have one then we should consider doing so to make it easier for other devs that will be interested in tinkering with the code in future…

1 Like

just here wondering how I can have another instance of openmrs standalone.

@reagan before looking at the code, have you been able to test sync using two local instances (a parent and child)?

1 Like

@lgilbert you can have another standalone running but now with a different tomcat port say 8081 to 8083 and database connection URL say 127.0.0.1:3316/openmrs to say 127.0.0.1:3317/openmrs

1 Like

Extract another reffapp-standalone and do the same steps u did for the first one…

1 Like

@dkayiwa you know it becomes easier to understand the errors of set up when you have an idea of the inner workings of the code… Right now am getting an error of “unauthorized error during reading parent feed” in my audit log…

Is your parent’s user name and password correctly set in the child instance? Is the child instance id in the whitelist of the parent configuration?

A little insight on running two local servers with Sync2 uploaded.

Yesterday I was running several servers without any hardship as long as sync2 wasnt installed.
But wherever i could upload the Sync2 module, the server that started first could run properly and the last server to restart could fail with this error.

Now today i have placed the servers on different Local disks (c and d) , and now i have them both running properly with Sync2 uploaded.

@dkayiwa and @ssmusoke , could running two servers with Sync2 on the same local disk be having any effect ?? wondering why the second server was failing yesterday.

Anyway that was just a little finding i did

1 Like

Were you using the standalone version of OpenMRS?

yes i was running the standalone

Can you reproduce it and then share the detailed error log?