Failed to setup server

Question: I have failed to setup my OpenMRS server. I have followed the steps in the Developer guide till this step: “2. MySQL 5.6 and above in SDK docker container”. After selecting option 2, it provides an error

 [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.4.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:4.4.0:create-mysql failed: Unsupported protocol scheme found: 'http://127.0.0.1:2375/ -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.4.0:setup (default-cli) on project standalone-pom: Failed to setup server

What could be the problem?

I have Docker running in the background and was trying to setup but build was unsuccessful.

Help me out on that.

Kindly, is what you have shared an entire error log? feel free to share the logs using pastebin.

Preparing 'openmrs-sdk-mysql-v3-2' DB docker container...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:47 min
[INFO] Finished at: 2022-05-25T10:29:19+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.4.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:4.4.0:create-mysql failed: Unsupported protocol scheme found: 'http://127.0.0.1:2375/ -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

How can I correct this, yet the Docker is running and everything is ok??

What could be the problem??

Hi I have the same problem. Did someone figure out a solution?

Which database would you like to use?:

  1. MySQL 5.6 and above (requires pre-installed MySQL 5.6 and above)
  2. MySQL 5.6 and above in SDK docker container (requires pre-installed Docker)
  3. Existing docker container (requires pre-installed Docker)
  4. PostgreSQL 8.2 and above

Which one do you choose? [1/2/3/4]: 2

Preparing ‘openmrs-sdk-mysql-v3-2’ DB docker container…

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 03:26 min

[INFO] Finished at: 2022-09-26T11:22:16+03:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.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:4.5.0:create-mysql failed: Unsupported protocol scheme found: 'http://127.0.0.1:2375/ → [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] MojoExecutionException - Apache Maven - Apache Software Foundation

@byaruhanga Oh sorry about this! as we wait for the help from the community members you can try option 1. MySQL 5.6 and above (requires pre-installed MySQL 5.6 and above)

1 Like

@jwnasambu Thanks much. I managed to install the server without using docker.

This is encouraging.

Hello Innocent i have the same problem help

Hi @nyyesigahenry, Sorry for the late reply. Did you finally succeed. I think I had a problem with docker so, I decided to set up the system without Docker and I was successful.

1 Like

No i haven’t

Kindly are you able to install the server without docker.

no i have been using docker let it without

Kindly follow this link OpenMRS SDK - Documentation - OpenMRS Wiki to create an SDK instance.

1 Like