Servers Hung at Initializing EhCache CacheManager

And the version displayed in the webapp does not surprise me because instead of using an automatically replaced variable, you hard coded it: https://github.com/METS-Programme/openmrs-module-ugandaemr-poc/blob/master/omod/src/main/resources/config.xml#L8

@dkayiwa Thanks for taking a look, please can you try again, I was expecting Ref App 2.10.0, Aijar 3.0.2-SNAPSHOT which is the current development version - not sure if the snapshots are being propagated properly

Thank you in advance, you support and assistance is highly appreciated

@ssmusoke am back to the login screen after doing it all afresh. I deleted the database and entire SDK folder. I even deleted my local maven repository instances of 'org.openmrs.module:ugandaemrpoc:1.0.2-SNAPSHOT". But i see it pulling aijar-3.0.1.omod instead of what you expect.

@dkayiwa good morning please can you delete the existing server and try again with mvn openmrs-sdk:setup -Ddistro=org.openmrs.module:ugandaemrpoc:1.0.2-SNAPSHOT -U

I have added the -U to force download of the latest versions from bintray, I have forced a redeploy

My observation is that when I am creating a server with aijar 3.0.1, everything runs fine however with 3.0.2-SNAPSHOT is when I get errors or the server hangs while building/startingā€¦ To reproduce follow steps here after doing a mvn clean install of the latest ISS module https://github.com/METS-Programme/openmrs-module-ugandaemr-iss/commit/ff3fdb8a8a1573b5df4788794ab1c0fc02c25049#diff-04c6e90faac2675aa89e2176d2eec7d8R4 The server builds fineā€¦However when you try to change the aijar module either through the admin ui to either upgraded or after first deleting the current aijar and loading 3.0.2-SNAPSHOT(the server will hung) If you do it manually by stopping the server and you delete the omod of aijar-3.0.1 from the sdk setup of the server and replace with aijar-3.0.2-SNAPSHOT(You get errors and the server hungs when you restart it) @dkayiwa @ssmusoke

I was able to login and these are the modules: https://pastebin.com/LGWqgAh6

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T19:41:47+03:00) Maven home: /usr/local/apache-maven-3.3.9 Java version: 1.8.0_152, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre Default locale: en_UG, platform encoding: UTF-8 OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"

@dkayiwa Thanks, let me look deeper

@reagan That is because of the additional module dependencies that are included in the new version

@ssmusoke What should I do then?

@reagan do you have the exact same module versions as i do?

@dkayiwa I have noticed what @ssmusoke mentionedā€¦Some of the omod I have are older than you have and also indicated in the module dependenciesā€¦Let me try to either build or download then

@reagan and also for the java.lang.ClassCastException: org.openmrs.util.MemoryAppender cannot be cast to org.apache.log4j.Appender error, in UgandaEMRSyncActivator, log as recommended here: https://wiki.openmrs.org/display/docs/Java+Conventions#JavaConventions-HowToLog

1 Like

:grinning: hmmm . interesting stuff here.

@dkayiwa says they work , yet @ssmusoke says they dont work :grinning: .

What is the status of the errors now , cc @solemabrothers

1 Like

Just in case this is related: Initialising a dataset

Hello everyone. I would say I am fairly new to OpenMRS. Our team has been trying to create a module and when depoloyed we experience this same issue. I have gone through the talks and tried what I can but nothing seems to work. The server seems to start but takes 3 hours to complete the setup. I found out it was 3 hours after I decided to leave it overnight.

Here is what I found out though. I have 3 services that are being injected as you can see in the configuration here https://pastebin.com/uvRV4AeN. If I comment my DAOs then it startsup fast. The more I add the DAOs the more it lags at a very high magnitude.

The same thing happens whether I deploy the omod in the refference application or in the platform. What can I do to improve the situation?

Here is my config xml file https://pastebin.com/gHpTQdFN

And here is the log after it run after 1 and a half hour.

Much appreciation,

Is the full module publicly available on some repository?

Yes you can check it out at https://github.com/hisptz/icare-module

Are all your changes committed? The module has compiler errors.

Yes they are. Just verified right now and it built successfully when I did ā€œmvn clean installā€.

For some reason only ā€œmvn clean testā€ fails.

Am doing mvn clean install which fails.

This is wierd. Two of my coleuges can compile. Could it be a maven version issue or a java version issue?