yes i have done that , the same error persists
Can you jump again on uberconference?
ok , but the openmrs account is in use , can we use yours ??
There are a lot of topics on this single thread, more importantly all of them are interesting and important. Sadly, users won’t be able to find them easily in the future.
Please ladies and gentlemen as much as it is tempting to reply to an existing thread, let us try to create new threads for separate issues. Separation of concerns is a thing actually .
@dkayiwa I have followed the steps you told me and after setting up the two instances, I did a manual pull from parent. I shows a success here is thelog. However something funny I have discovered is that after successfully pulling from the parent, the patients I registered in the child get duplicated and the one in the parent do not appear in the child. Also there’s duplication of ID in both the parent and child instances without any notification.
I have also realized that my Push to the parent from the child instance does not work here is the log
You would need to get on uberconference with me and i take you through the exact steps that you need to take to configure this.
@dkayiwa unfortunately my battery is dying out but as soon as power comes back I will ping you.
@dkayiwa , am sorry , power went off when we were on the call , can we get back again ??
its not a duplcaion of patients , its like a bug in the Patient search widget. every time you hit enter, the patient in the search list seems dulicated
Sure. Why not?
@dkayiwa can we also get a piece of a share of a vedio on uberconference solution according to what other friends have tried. may be a link if possible thanks
Has anyone got this sync ‘thingy’ to work? If you have, please, kindly share both atomfeed and sync 2.0 configuration for parent and child. This will be greatly appreciated. I am almost pulling my hairs out.
@dkayiwa ! please, help a poor soul with your expertise on thiss matters.
Hey devs I have been able to achieve this thanks to @dkayiwa. These are the few steps we went through I hope you follow keenly and be able to get unblocked.
-
Set up your two instances (I used the standalone)
-
load the atom feed and sync2 omod files compiled from source. (Remember dkayiwa made a commit to these two modules so if you have the old ones you need to get the current with all commits)
-
Edit the child’s “openmrs-standalone-runtime.properties” file so that it differs from the parent’s. eg the parent has openmrs-standalone-runtime.properties , i changed mine to openmrs-standalone-irene-runtime.properties
-
For the child instance, go to tomcat - webapps and edit the two files there to differentiate them from the parents eg I changed my two files to openmrs-standalone-irene and openmrs-standalone-irene.war
-
Edit child sync config json-file for example
Note take note of;
"parentFeedLocation" : "http://localhost:8081/openmrs-standalone",
"localFeedLocation" : "http://localhost:8082/openmrs-standalone-irene",
"localInstanceId" : "local2",
and the whitelist
"whitelist" : {
"enabled" : false,
"instanceIds" : [ ]
-
Edit Parent sync config json-file for example
-
Register a patient in the parent instance
-
While in the child do a manual pull from parent and check if the patient has been pulled.
-
Let us know what you get.
All the best , Cheers
I have followed your guidance as faithfully as I could and I should say at least the errors am getting now are different…I am getting an error which I believe is to do with the transfer now…The errors I get from the child instance log are for POST https://pastebin.com/k0ycHGwV while the ones for parent instance log are GET https://pastebin.com/HgyVJwhb.Interestingly I get a confirmation of success in the audit information now however the patients are not seen in the parent when i push or in the child when i pull…secondly I think the earlier errors we were running into are directly linked to what @dkayiwa had fixed earlier and unfortunately I was using the downloaded omod from the addons page. Otherwise thanks for the steady progress…
@reagan have you tried to modify the name of the runtime properties file for the child to look different from the parent? Also the names of the only two files in the tomcat webapps folder. You need to rename them to differentiate them from those in the parent. Also when you do that, remember to maintain that new name when referencing the child URL (the http://local host…) In the parent sync config Jason file.
Let me know what you get.
@irenyak1 I did that already
Hello @dkayiwa while searching for a patient in the child instance, I noticed some uncommon behavior. I case I have not typed any search character in the search field and just hit Backspace a patient already in the child instance keeps getting replicated for as many times as I press backspace. I think there could be a bug. example Malcom Xpert is repeated for as many times as I press backspace.
CC @mozzy , @tendomart , @ssmusoke
The server side log for the child instance
@irenyak1 you seem to have given a wrong file , this is the same config as your child server
look
"general" : {
"parentFeedLocation" : "http://localhost:8081/openmrs-standalone",
"localFeedLocation" : "http://localhost:8082/openmrs-standalone-irene",
"localInstanceId" : "local2",
and here
"whitelist" : {
"enabled" : false,
"instanceIds" : [ ]
@irenyak1can you give the right exampleof a parent configfile in paste bin , you seem to have given the same child config
sorry guys you can check again. i have edited theparent sync config. thanks @mozzy.