New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start the module #39
Comments
Which version of OpenMRS you are currently using? |
I'm on OpenMRS v2.0.5. Cloned and built from source. |
The current version on master branch is 1.x.x which was for openmrs 1.9.x to 1.11.x. Could you try the branch/release 2.x.x of this module with your openmrs. The error "Error while trying to start module Unable to update data model using liquibase.xml. Module: Team Management Module is due to liquibase discrepency. " To reset your DB for new version Or alternatively reset your openmrs instance and install module 2.x.x again. |
Tried to checkout branch 2.x.x, after build it the output was |
Your modules screen might be looking like this 1- Delete/remove the module from openmrs
4- Upload module 2.x.x again. After uploading module it should look like this |
Man, I did as you said and .... Voila! You genius.. Thanks @maimoonak (BIG TIME!) It's been a third day trying different ways to solve this. |
Cool. This sometimes happens with OpenMRS modules. Ideally liquibase existing changesets should never be modified and if there is a modification required, it should be added as a new and subsequent changeset. Liquibase makes entries in table liquibasechangelog to keep track of executed changesets with a checksum/hash. When changeset is modified the checksum is found different and this error is encountered. In above script we removed all tables created by previous version of team module, and also deleted all liquibase entries made by this module to allow module installation start from point zero. Offcourse, if it were production server, we never had deleted the tables. Also we never delete liquibase entries to avoid already executed changesets run again (this sometimes can also cause failed installations) |
Copy that. 👍 |
Followed @maimoonak process, all DELETES found nothing safe for the one that calls for team table deletion, I got a foreign key checking error, had to do some dirty work of disabling the check, deleting the table and enabling back the checks. It worked!
|
I've tried to clone and build from sources and I had this error while trying to start the module.
This was the error:
Unable to load/find moduleActivator:
'org.openmrs.module.teammodule.BasicModuleActivator' Module: Team Management Module
Then I tried to use the .omod file from Releases page: https://github.com/OpenSRP/opensrp-server/releases
There's this new error now:
Error while trying to start module
Unable to update data model using liquibase.xml. Module: Team Management Module
The text was updated successfully, but these errors were encountered: