Failed to install openmrs sdk

SNAPSHOT/webservices.rest-omod-2.37.0-20220927.002201-102.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14:04 min [INFO] Finished at: 2022-09-28T19:30:35+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 find/resolve artifact. Could not transfer artifact org.openmrs.module:webservices.rest-omod:jar:2.37.0-20220927.002201-102 from/to openmrs-repo (JFrog): GET request of: org/openmrs/module/webservices.rest-omod/2.37.0-SNAPSHOT/webservices.rest-omod-2.37.0-20220927.002201-102.jar from openmrs-repo failed: Connection reset → [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 PS C:\Users\Suubi>

That part of the error in the powershell

Hi @suubireagan88 which reference application version did you select while setting up?

I selected number 2

Do you mind using 2.12.2

Thank you am going to try that now

Still got the same error

@suubireagan88 before running any command on setup server ensure that your network is good and kindly share the error in pastebin.

1 Like

PS C:\Users\Suubi> mvn openmrs-sdk:setup [INFO] Scanning for projects… [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] — openmrs-sdk-maven-plugin:4.5.0:setup (default-cli) @ standalone-pom — Sep 30, 2022 9:17:11 PM org.jline.utils.Log logr WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)

Setting up a new server…

Specify server id (-DserverId) (default: ‘server1’): server1

You can setup the following servers:

  1. Distribution
  2. Platform

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

You can deploy the following versions of distribution:

  1. Reference Application 3.0.0-SNAPSHOT
  2. Reference Application 2.13.0-SNAPSHOT
  3. Reference Application 2.12.2
  4. Reference Application 2.11.0
  5. Reference Application 2.10.0
  6. Other…

Which one do you choose? [1/2/3/4/5/6]: 3 [INFO] Configured Artifact: org.openmrs.distro:referenceapplication-package:2.12.2:jar [INFO] Copying referenceapplication-package-2.12.2.jar to C:\Users\Suubi\openmrs\server1\openmrs-distro.jar [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.4.3:war [INFO] Copying openmrs-webapp-2.4.3.war to C:\Users\Suubi\openmrs\server1\openmrs-2.4.3.war [INFO] Configured Artifact: org.openmrs.module:addresshierarchy-omod:2.14.2:jar [INFO] Configured Artifact: org.openmrs.module:legacyui-omod:1.8.4:jar [INFO] Configured Artifact: org.openmrs.module:openconceptlab-omod:1.2.9:jar [INFO] Configured Artifact: org.openmrs.module:metadatadeploy-omod:1.13.0:jar [INFO] Configured Artifact: org.openmrs.module:reportingrest-omod:1.12.0:jar [INFO] Configured Artifact: org.openmrs.module:owa-omod:1.13.0:jar [INFO] Configured Artifact: org.openmrs.module:fhir2-omod:1.2.2:jar [INFO] Configured Artifact: org.openmrs.module:serialization.xstream-omod:0.2.15:omod [INFO] Configured Artifact: org.openmrs.module:registrationapp-omod:1.24.0:jar [INFO] Configured Artifact: org.openmrs:event-omod:2.10.0:jar [INFO] Configured Artifact: org.openmrs.module:uilibrary-omod:2.0.7:jar [INFO] Configured Artifact: org.openmrs.module:htmlwidgets-omod:1.10.0:jar [INFO] Configured Artifact: org.openmrs.module:dataexchange-omod:1.3.7:jar [INFO] Configured Artifact: org.openmrs.module:appui-omod:1.14.0:jar [INFO] Configured Artifact: org.openmrs.module:allergyui-omod:1.8.4:jar [INFO] Configured Artifact: org.openmrs.module:providermanagement-omod:2.13.0:jar [INFO] Configured Artifact: org.openmrs.module:appointmentschedulingui-omod:1.12.0:jar [INFO] Configured Artifact: org.openmrs.module:attachments-omod:2.5.0:jar [INFO] Configured Artifact: org.openmrs.module:formentryapp-omod:1.4.2:jar [INFO] Configured Artifact: org.openmrs.module:idgen-omod:4.7.0:jar [INFO] Configured Artifact: org.openmrs.module:metadatamapping-omod:1.4.0:jar [INFO] Configured Artifact: org.openmrs.module:htmlformentryui-omod:2.0.0:jar [INFO] Configured Artifact: org.openmrs.module:referencedemodata-omod:1.4.7:jar [INFO] Configured Artifact: org.openmrs.module:emrapi-omod:1.32.0:jar [INFO] Configured Artifact: org.openmrs.module:referenceapplication-omod:2.12.0-SNAPSHOT:jar [INFO] Configured Artifact: org.openmrs.module:htmlformentry-omod:4.1.0:jar [INFO] Configured Artifact: org.openmrs.module:appframework-omod:2.16.0:jar [INFO] Configured Artifact: org.openmrs.module:referencemetadata-omod:2.12.0:jar [INFO] Configured Artifact: org.openmrs.module:reportingui-omod:1.8.0:jar [INFO] Configured Artifact: org.openmrs.module:coreapps-omod:1.34.0:jar [INFO] Configured Artifact: org.openmrs.module:reportingcompatibility-omod:2.0.8:jar [INFO] Configured Artifact: org.openmrs.module:reporting-omod:1.23.0:jar [INFO] Configured Artifact: org.openmrs.module:adminui-omod:1.6.0:jar [INFO] Configured Artifact: org.openmrs.module:registrationcore-omod:1.11.0:jar [INFO] Configured Artifact: org.openmrs.module:appointmentscheduling-omod:1.16.0:jar [INFO] Configured Artifact: org.openmrs.module:atlas-omod:2.2.5:omod [INFO] Configured Artifact: org.openmrs.module:calculation-omod:1.3.0:jar [INFO] Configured Artifact: org.openmrs.module:webservices.rest-omod:2.32.0:jar [INFO] Configured Artifact: org.openmrs.module:spa-omod:1.0.8:jar [INFO] Configured Artifact: org.openmrs.module:uicommons-omod:2.19.0:jar [INFO] Configured Artifact: org.openmrs.module:uiframework-omod:3.22.0:jar [INFO] Configured Artifact: org.openmrs.module:metadatasharing-omod:1.8.0:jar [INFO] Copying addresshierarchy-omod-2.14.2.jar to C:\Users\Suubi\openmrs\server1\modules\addresshierarchy-2.14.2.omod [INFO] Copying legacyui-omod-1.8.4.jar to C:\Users\Suubi\openmrs\server1\modules\legacyui-1.8.4.omod [INFO] Copying openconceptlab-omod-1.2.9.jar to C:\Users\Suubi\openmrs\server1\modules\openconceptlab-1.2.9.omod [INFO] Copying metadatadeploy-omod-1.13.0.jar to C:\Users\Suubi\openmrs\server1\modules\metadatadeploy-1.13.0.omod [INFO] Copying reportingrest-omod-1.12.0.jar to C:\Users\Suubi\openmrs\server1\modules\reportingrest-1.12.0.omod [INFO] Copying owa-omod-1.13.0.jar to C:\Users\Suubi\openmrs\server1\modules\owa-1.13.0.omod [INFO] Copying fhir2-omod-1.2.2.jar to C:\Users\Suubi\openmrs\server1\modules\fhir2-1.2.2.omod [INFO] Copying serialization.xstream-omod-0.2.15.omod to C:\Users\Suubi\openmrs\server1\modules\serialization.xstream-0.2.15.omod [INFO] Copying registrationapp-omod-1.24.0.jar to C:\Users\Suubi\openmrs\server1\modules\registrationapp-1.24.0.omod [INFO] Copying event-omod-2.10.0.jar to C:\Users\Suubi\openmrs\server1\modules\event-2.10.0.omod [INFO] Copying uilibrary-omod-2.0.7.jar to C:\Users\Suubi\openmrs\server1\modules\uilibrary-2.0.7.omod [INFO] Copying htmlwidgets-omod-1.10.0.jar to C:\Users\Suubi\openmrs\server1\modules\htmlwidgets-1.10.0.omod [INFO] Copying dataexchange-omod-1.3.7.jar to C:\Users\Suubi\openmrs\server1\modules\dataexchange-1.3.7.omod [INFO] Copying appui-omod-1.14.0.jar to C:\Users\Suubi\openmrs\server1\modules\appui-1.14.0.omod [INFO] Copying allergyui-omod-1.8.4.jar to C:\Users\Suubi\openmrs\server1\modules\allergyui-1.8.4.omod [INFO] Copying providermanagement-omod-2.13.0.jar to C:\Users\Suubi\openmrs\server1\modules\providermanagement-2.13.0.omod [INFO] Copying appointmentschedulingui-omod-1.12.0.jar to C:\Users\Suubi\openmrs\server1\modules\appointmentschedulingui-1.12.0.omod [INFO] Copying attachments-omod-2.5.0.jar to C:\Users\Suubi\openmrs\server1\modules\attachments-2.5.0.omod [INFO] Copying formentryapp-omod-1.4.2.jar to C:\Users\Suubi\openmrs\server1\modules\formentryapp-1.4.2.omod [INFO] Copying idgen-omod-4.7.0.jar to C:\Users\Suubi\openmrs\server1\modules\idgen-4.7.0.omod [INFO] Copying metadatamapping-omod-1.4.0.jar to C:\Users\Suubi\openmrs\server1\modules\metadatamapping-1.4.0.omod [INFO] Copying htmlformentryui-omod-2.0.0.jar to C:\Users\Suubi\openmrs\server1\modules\htmlformentryui-2.0.0.omod [INFO] Copying referencedemodata-omod-1.4.7.jar to C:\Users\Suubi\openmrs\server1\modules\referencedemodata-1.4.7.omod [INFO] Copying emrapi-omod-1.32.0.jar to C:\Users\Suubi\openmrs\server1\modules\emrapi-1.32.0.omod [INFO] Copying referenceapplication-omod-2.12.0-SNAPSHOT.jar to C:\Users\Suubi\openmrs\server1\modules\referenceapplication-2.12.0-SNAPSHOT.omod [INFO] Copying htmlformentry-omod-4.1.0.jar to C:\Users\Suubi\openmrs\server1\modules\htmlformentry-4.1.0.omod [INFO] Copying appframework-omod-2.16.0.jar to C:\Users\Suubi\openmrs\server1\modules\appframework-2.16.0.omod [INFO] Copying referencemetadata-omod-2.12.0.jar to C:\Users\Suubi\openmrs\server1\modules\referencemetadata-2.12.0.omod [INFO] Copying reportingui-omod-1.8.0.jar to C:\Users\Suubi\openmrs\server1\modules\reportingui-1.8.0.omod [INFO] Copying coreapps-omod-1.34.0.jar to C:\Users\Suubi\openmrs\server1\modules\coreapps-1.34.0.omod [INFO] Copying reportingcompatibility-omod-2.0.8.jar to C:\Users\Suubi\openmrs\server1\modules\reportingcompatibility-2.0.8.omod [INFO] Copying reporting-omod-1.23.0.jar to C:\Users\Suubi\openmrs\server1\modules\reporting-1.23.0.omod [INFO] Copying adminui-omod-1.6.0.jar to C:\Users\Suubi\openmrs\server1\modules\adminui-1.6.0.omod [INFO] Copying registrationcore-omod-1.11.0.jar to C:\Users\Suubi\openmrs\server1\modules\registrationcore-1.11.0.omod [INFO] Copying appointmentscheduling-omod-1.16.0.jar to C:\Users\Suubi\openmrs\server1\modules\appointmentscheduling-1.16.0.omod [INFO] Copying atlas-omod-2.2.5.omod to C:\Users\Suubi\openmrs\server1\modules\atlas-2.2.5.omod [INFO] Copying calculation-omod-1.3.0.jar to C:\Users\Suubi\openmrs\server1\modules\calculation-1.3.0.omod [INFO] Copying webservices.rest-omod-2.32.0.jar to C:\Users\Suubi\openmrs\server1\modules\webservices.rest-2.32.0.omod [INFO] Copying spa-omod-1.0.8.jar to C:\Users\Suubi\openmrs\server1\modules\spa-1.0.8.omod [INFO] Copying uicommons-omod-2.19.0.jar to C:\Users\Suubi\openmrs\server1\modules\uicommons-2.19.0.omod [INFO] Copying uiframework-omod-3.22.0.jar to C:\Users\Suubi\openmrs\server1\modules\uiframework-3.22.0.omod [INFO] Copying metadatasharing-omod-1.8.0.jar to C:\Users\Suubi\openmrs\server1\modules\metadatasharing-1.8.0.omod

Downloading OWAs…

Downloading OWA: org.openmrs.owa:openmrs-owa-sysadmin:1.2 [INFO] Configured Artifact: org.openmrs.owa:sysadmin:1.2:zip [INFO] Copying sysadmin-1.2.zip to C:\Users\Suubi\openmrs\server1\owa\sysadmin-1.2.zip

What port would you like your server to use? (default: ‘8080’): 8080

If you want to enable remote debugging by default when running the server, specify the port number here (e.g. 1044). Leave blank to disable debugging. (Do not do this on a production server) (default: ‘no debugging’): 1044

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: 43.880 s [INFO] Finished at: 2022-09-30T21:17:51+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

I am getting this error, I believe what is discussed here has similarity with this issue

$ mvn openmrs-sdk:setup

[INFO] Scanning for projects…

[INFO]

[INFO] ------------------< org.apache.maven:standalone-pom >-------------------

[INFO] Building Maven Stub Project (No POM) 1

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

[INFO]

[INFO] — openmrs-sdk-maven-plugin:4.5.0:setup (default-cli) @ standalone-pom —

Setting up a new server…

Specify server id (-DserverId) (default: ‘server’): OpenMRSDistribution

You can setup the following servers:

  1. Distribution

  2. Platform

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

You can deploy the following versions of distribution:

  1. Reference Application 3.0.0-SNAPSHOT

  2. Reference Application 2.13.0-SNAPSHOT

  3. Reference Application 2.12.2

  4. Reference Application 2.11.0

  5. Reference Application 2.10.0

  6. Other…

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

[INFO] Configured Artifact: org.openmrs.distro:referenceapplication-package:3.0.0-SNAPSHOT:jar

Downloading from openmrs-repo-thirdparty: JFrog

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

[INFO] BUILD FAILURE

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

[INFO] Total time: 36.080 s

[INFO] Finished at: 2022-11-19T17:50:35+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 find/resolve artifact. Could not transfer artifact org.openmrs.distro:referenceapplication-package:jar:3.0.0-SNAPSHOT from/to openmrs-repo-thirdparty (JFrog): Transfer failed for JFrog 409 Conflict → [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

Broken links! Just adding clarification to the issue

{ “errors”: [ { “status”: 404, “message”: “Item thirdparty:org/openmrs/distro/referenceapplication-package/3.0.0-SNAPSHOT/referenceapplication-package-3.0.0-SNAPSHOT.jar does not exist” } ] }

Try choosing refrence application option 2 or 3

1 Like

I have gone with option 5 and it did work. I needed to explore the OpenMRS-3, so the issue remains unsolved! Thanks for the heads up though. @suubireagan88

I stand to be corrected but openmrs 3.0 server cannot be run using sdk.

2 Likes