@dkayiwa I am having the same issue as @sharif and I wanted to drop this old RA standalone and download a fresh one. I downloaded a fresh one but when I run the jar to start the server I get an error that the jar is corrupted.
@sharif I had a similar error but what I did is set the localInstanceId to “sync2” as you can see in this wiki resource and that worked just fine. You can change that in the load configuration for the sync module
@odorajonathan @dkayiwa i downloaded the Atom Feed module and compiled it but am getting the error when i upload it in the RA
@gcliff Are you using the standalone? It’s easier to use the standalone for this than the RefApp. Although am not sure what the error means
cc @dkayiwa
Yeah @odorajonathan am using standalone 2.9
@dkayiwa my parent sync config is this and my child sync config is this . what should be the " localInstanceId" ?
@gcliff you will need to use copy and paste method format when actually uploading those modules, just pick any of the two assume you have picked sync2, then go to RA you want to upload go to modules-> then upload them.
Whatever name that you want. As long as you will pass it on in the parent’s whitelist config
For those who are saying that you are getting errors, it would take a magician to help you without sharing the server side log.
@dkayiwa could u share the sync2 configs ur using to successfully sync for ur child and parent instances…
Hello @dkayiwa after loading the sync2 module and the atom feed 1.0.13 SNAPSHOT, the atomfeed loads successfully but the sync2 fails and I get this error. Using atom feed 1.0.13 SNAPSHOT, could it be a problem?
@dkayiwa my errors are here https://pastebin.com/jPi1kSuV
POST request for "http://localhost:8081/openmrs-standalone/ws/rest/sync2" resulted in 401 (Unauthorized)
Means that you have not correctly set the parent user name and password. Or simply that your child instance id is not in the whitelist of the parent.
Hello @dkayiwa I have done the following though still blocked.
-
I have setup the two instances and are successfully running
-
Checked on the sync2 settings, they are similar for both parent and child as here (I did not change a thing)
-
Registered a patient in the parent instance
-
Successfully loaded the sync2 and atom feed modules in both the parent and child instances
-
Restarted both instances
-
While in the child instance, I tried **Manual Pull from Parent ** and I got this error
-
Audit log for both parent and child instances is similar like here
-
Atom feed config for parent and child. I did not edit anything in these two files.
-
Question: What could be causing the connection error? My internet is up and running super fast.
@irenyak1 change your urls from ‘openmrs’ to ‘openmrs-standalone’
For instance ‘http://localhost:8081/openmrs’ becomes ‘http://localhost:8081/openmrs-standalone’
Following the discussion, I have managed to stage two instances (parent and child) which seem to be communicating perfecting. Am now trying to more children to see how it goes