Hello
I am experiencing problems trying to setup the SDK using a postgres database.
Steps:
run mvn openmrs-sdk:setup
Select beta 16
Select option 4(use postgres)
Decline option to retain data in database
Error failed to drop database
If I try to use a dockerized mysql version I get this error
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:5.5.0:setup (default-cli) on project standalone-pom: Failed to setup server: Unable to execute mojo: Execution null of goal org.openmrs.maven.plugins:openmrs-sdk-docker-maven-plugin:5.5.0:run-db failed: Unsupported protocol scheme found: âhttp://127.0.0.1:2375/ **->
The docker engine does not starte unless I use the following config instead for my daemon.json
âhostsâ: [
âtcp://127.0.0.1:2375â,
âunix:///var/run/docker.sockâ
]
I assume you are having docker desktop if you are on windows. I suggest you go to settings > general > and check âExpose daemon on tcp://localhost:2375 without TLSâ. That is how mine got working.
sorry about that @piuskariuki19 . You can try locating the sdk.properties file and change the dockerHost to dockerHost=tcp://localhost:2375 from dockerHost=http://127.0.0.1:2375 and try again. The sdk.properties file is usually found in C:\Users\whatever\openmrs\sdk.properties replace âwhateverâ with appropriate name on your system. Then try again.