STAND-126: Improve Windows Compatibility and Safe Data Directory Reuse for Standalone 3.x#84
Conversation
…e for Standalone 3.x
|
@dkayiwa still trying this on windows gonna update to draft after the CI Tests but at now its not ready for review |
|
cc @dkayiwa @wikumChamith |
|
Its now ready for review |
|
When building, does this allow me to specify the exact version of O3 that i would like to build the standalone for? |
let me check it out in a minute |
|
Can we also remove the version duplication? |
|
oh yes @dkayiwa |
Oh yes let me take it to the Industry standard |
|
By the way, do we have a CI pipeline to build the standalone and output it as an artifact? |
|
I notice the running the O3 standalone for the first time takes a lot of time. Can't we have this happen during the build such that we publish a standalone zip that is already initialised? |
The problem with this is mariadb generates machine-specific metadata, including the mysql system database which defines users, permissions, and hostname bindings. hence work only on the built machine and cannot work on another machine no matter the os more had discussed here https://talk.openmrs.org/t/gsoc-2025-replacing-openmrs-standalone-with-a-modern-user-friendly-alternative-updates-and-discussion/46024/51?u=jonathan |
Am not aware of this maybe @Ruhanga has an idea on this but at the moment i dont think so |
|
Would it work with an sql dump that we just load? |
Oh yes and i think currently we are doing this and thats why the load time is longer in my guess |
|
Can't we use an already initialised database to create the sql dump? |
I think this can work probably this means to use a zipped sql demo to load it at runtime as demo (with patient data) |
A separate sql dump for it? |
So this means I spin up an sdk 3.x version and from it extract the demo dump which also creates the openmrs schema by default. |
|
Tru dat, man!!! |
|
Oh great, Oops gonna take a nap and by morning will jump into this so we get it to work as expected 😊 ....Good night @dkayiwa this as been really helpful hope this approach reduces the load time for our users experience |
|
Sure. In the meantime, i will merge this because it works. Then you will improve it with that. 😊 |

See https://openmrs.atlassian.net/browse/STAND-126
Description
This PR improves Windows support for the OpenMRS Standalone launcher by addressing issues related to MariaDB startup and file system behavior, particularly around data directory handling and platform-specific constraints.
It addresses On Windows, MariaDB startup fails with:
ERROR : Data directory ... is not empty. Only new or empty existing directories are accepted for --datadirScreenShots on Windows