setting up openMRS 3.0 server

I get a build failure when setting up O3 server. How can I resolve this?

@reganmakanga Do you have a good internet connection ?

@tendomart , I think it’s good and stable sometimes because I was able to set up reference application 2.12.2. could that be the only reason I get a build failure?

1 Like

You used an alpha 3.0.1-SNAPSHOT-alpha version with choice 1.

Try using Reference Application 3.0.0-SNAPSHOT with option 2 and let us know what you get.

alpha releases usually have issues, and are not intended for production

I tried option 2 and still got a build failure. Have a look at it here Microsoft Windows [Version 10.0.18363.628](c) 2019 Microsoft Corporation. All - Pastebin.com

hello i have the same problem

There is no functional 3.x package which can setup a version of 3.x from the SDK Setup command.

1 Like

What can i do solve it

okay. Thank you @ibacher

@nyyesigahenry and @reganmakanga kindly select the 3rd option.(Reference Application 2.12.2)

1 Like

Thank you @jwnasambu . It’s up and running

hello i have tried 3rd option it has also failed but it has allowed me reach some steps

reganmakanga me it has failed

install JDK set up maven set up mysql server Then set up openmrs SDK by running mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk

after that you will set up server

@nyyesigahenry Kindly let me know if you are available for a sync

hello available now

@nyyesigahenry Oh sorry! are you still available? I only have 10min.

Good morning after while iam back

Also getting errors while doing server setup


[INFO] Configured Artifact: org.openmrs.distro:referenceapplication-distro:3.0.0-SNAPSHOT:zip
Downloading from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication-distro/3.0.0-SNAPSHOT/maven-metadata.xml
Downloading from mks-nexus-public: https://nexus.mekomsolutions.net/repository/maven-public/org/openmrs/distro/referenceapplication-distro/3.0.0-SNAPSHOT/maven-metadata.xml
Downloading from openmrs-repo-thirdparty: https://mavenrepo.openmrs.org/thirdparty/org/openmrs/distro/referenceapplication-distro/3.0.0-SNAPSHOT/maven-metadata.xml
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication-distro/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication-distro/3.0.0-SNAPSHOT/maven-metadata.xml (804 B at 320 B/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication-distro/3.0.0-SNAPSHOT/maven-metadata.xml (804 B at 296 B/s)
Downloaded from mks-nexus-public: https://nexus.mekomsolutions.net/repository/maven-public/org/openmrs/distro/referenceapplication-distro/3.0.0-SNAPSHOT/maven-metadata.xml (798 B at 294 B/s)
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/maven-metadata.xml
Downloading from mks-nexus-public: https://nexus.mekomsolutions.net/repository/maven-public/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/maven-metadata.xml
Downloading from openmrs-repo-thirdparty: https://mavenrepo.openmrs.org/thirdparty/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/maven-metadata.xml
Downloading from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from mks-nexus-public: https://nexus.mekomsolutions.net/repository/maven-public/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/maven-metadata.xml (617 B at 1.1 kB/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/maven-metadata.xml (621 B at 322 B/s)
Downloaded from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/maven-metadata.xml (621 B at 192 B/s)
[INFO] Copying referenceapplication-distro-3.0.0-SNAPSHOT.zip to /root/openmrs/server/openmrs-distro.jar
[INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.6.3:war
[INFO] Copying openmrs-webapp-2.6.3.war to /root/openmrs/server/openmrs-2.6.3.war
[INFO] Configured Artifact: org.openmrs.module:addresshierarchy-omod:2.17.0:jar
[INFO] Configured Artifact: org.openmrs.module:legacyui-omod:1.16.0:jar
[INFO] Configured Artifact: org.openmrs.module:reportingrest-omod:1.14.0:jar
[INFO] Configured Artifact: org.openmrs.module:openconceptlab-omod:2.1.0:jar
[INFO] Configured Artifact: org.openmrs.module:owa-omod:1.14.0:jar
[INFO] Configured Artifact: org.openmrs.module:fhir2-omod:1.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:ordertemplates-omod:1.0.2:jar
[INFO] Configured Artifact: org.openmrs.module:serialization.xstream-omod:0.2.16:omod
[INFO] Configured Artifact: org.openmrs.module:htmlwidgets-omod:1.11.0:jar
[INFO] Configured Artifact: org.bahmni.module:appointments-omod:2.0.0-20231101.130425-7:jar
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/bahmni/module/appointments/2.0.0-SNAPSHOT/maven-metadata.xml
Downloading from archetype: https://mavenrepo.openmrs.org/public/org/bahmni/module/appointments/2.0.0-SNAPSHOT/maven-metadata.xml
Downloading from openmrs-repo-thirdparty: https://mavenrepo.openmrs.org/thirdparty/org/bahmni/module/appointments/2.0.0-SNAPSHOT/maven-metadata.xml
Downloading from mks-nexus-public: https://nexus.mekomsolutions.net/repository/maven-public/org/bahmni/module/appointments/2.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from archetype: https://mavenrepo.openmrs.org/public/org/bahmni/module/appointments/2.0.0-SNAPSHOT/maven-metadata.xml (606 B at 507 B/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/bahmni/module/appointments/2.0.0-SNAPSHOT/maven-metadata.xml (606 B at 366 B/s)
[INFO] Configured Artifact: org.openmrs.module:patientflags-omod:3.0.5:jar
[INFO] Configured Artifact: org.openmrs.module:initializer-omod:2.6.0:jar
[INFO] Configured Artifact: org.openmrs.module:queue-omod:2.0.0:jar
[INFO] Configured Artifact: org.openmrs.module:attachments-omod:3.0.0:jar
[INFO] Configured Artifact: org.bahmni.module:teleconsultation-omod:2.0.0-20230831.113926-1:jar
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/bahmni/module/teleconsultation/2.0.0-SNAPSHOT/maven-metadata.xml
Downloading from mks-nexus-public: https://nexus.mekomsolutions.net/repository/maven-public/org/bahmni/module/teleconsultation/2.0.0-SNAPSHOT/maven-metadata.xml
Downloading from archetype: https://mavenrepo.openmrs.org/public/org/bahmni/module/teleconsultation/2.0.0-SNAPSHOT/maven-metadata.xml
Downloading from openmrs-repo-thirdparty: https://mavenrepo.openmrs.org/thirdparty/org/bahmni/module/teleconsultation/2.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/bahmni/module/teleconsultation/2.0.0-SNAPSHOT/maven-metadata.xml (610 B at 530 B/s)
Downloaded from archetype: https://mavenrepo.openmrs.org/public/org/bahmni/module/teleconsultation/2.0.0-SNAPSHOT/maven-metadata.xml (610 B at 517 B/s)
[INFO] Configured Artifact: org.openmrs.module:idgen-omod:4.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:metadatamapping-omod:1.6.0:jar
[INFO] Configured Artifact: org.openmrs.module:cohort-omod:3.6.0:jar
[INFO] Configured Artifact: org.openmrs.module:referencedemodata-omod:2.4.0:jar
[INFO] Configured Artifact: org.openmrs.module:reporting-omod:1.25.0:jar
[INFO] Configured Artifact: org.openmrs.module:calculation-omod:1.3.0:jar
[INFO] Configured Artifact: org.openmrs.module:webservices.rest-omod:2.41.0:jar
[INFO] Configured Artifact: org.openmrs.module:spa-omod:1.0.10-SNAPSHOT:jar
Downloading from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/module/spa-omod/1.0.10-SNAPSHOT/maven-metadata.xml
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/module/spa-omod/1.0.10-SNAPSHOT/maven-metadata.xml
Downloading from mks-nexus-public: https://nexus.mekomsolutions.net/repository/maven-public/org/openmrs/module/spa-omod/1.0.10-SNAPSHOT/maven-metadata.xml
Downloading from openmrs-repo-thirdparty: https://mavenrepo.openmrs.org/thirdparty/org/openmrs/module/spa-omod/1.0.10-SNAPSHOT/maven-metadata.xml
Downloaded from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/module/spa-omod/1.0.10-SNAPSHOT/maven-metadata.xml (779 B at 403 B/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/module/spa-omod/1.0.10-SNAPSHOT/maven-metadata.xml (779 B at 401 B/s)
Downloading from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/module/spa/1.0.10-SNAPSHOT/maven-metadata.xml
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/module/spa/1.0.10-SNAPSHOT/maven-metadata.xml
Downloading from openmrs-repo-thirdparty: https://mavenrepo.openmrs.org/thirdparty/org/openmrs/module/spa/1.0.10-SNAPSHOT/maven-metadata.xml
Downloading from mks-nexus-public: https://nexus.mekomsolutions.net/repository/maven-public/org/openmrs/module/spa/1.0.10-SNAPSHOT/maven-metadata.xml
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/module/spa/1.0.10-SNAPSHOT/maven-metadata.xml (600 B at 297 B/s)
Downloaded from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/module/spa/1.0.10-SNAPSHOT/maven-metadata.xml (600 B at 281 B/s)
[INFO] Configured Artifact: org.openmrs.module:o3forms-omod:2.2.0:jar
[INFO] Configured Artifact: org.openmrs.module:metadatasharing-omod:1.9.0:jar
[INFO] Copying addresshierarchy-omod-2.17.0.jar to /root/openmrs/server/modules/addresshierarchy-2.17.0.omod
[INFO] Copying legacyui-omod-1.16.0.jar to /root/openmrs/server/modules/legacyui-1.16.0.omod
[INFO] Copying reportingrest-omod-1.14.0.jar to /root/openmrs/server/modules/reportingrest-1.14.0.omod
[INFO] Copying openconceptlab-omod-2.1.0.jar to /root/openmrs/server/modules/openconceptlab-2.1.0.omod
[INFO] Copying owa-omod-1.14.0.jar to /root/openmrs/server/modules/owa-1.14.0.omod
[INFO] Copying fhir2-omod-1.10.0.jar to /root/openmrs/server/modules/fhir2-1.10.0.omod
[INFO] Copying ordertemplates-omod-1.0.2.jar to /root/openmrs/server/modules/ordertemplates-1.0.2.omod
[INFO] Copying serialization.xstream-omod-0.2.16.omod to /root/openmrs/server/modules/serialization.xstream-0.2.16.omod
[INFO] Copying htmlwidgets-omod-1.11.0.jar to /root/openmrs/server/modules/htmlwidgets-1.11.0.omod
[INFO] Copying appointments-omod-2.0.0-SNAPSHOT.jar to /root/openmrs/server/modules/appointments-2.0.0-20231101.130425-7.omod
[INFO] Copying patientflags-omod-3.0.5.jar to /root/openmrs/server/modules/patientflags-3.0.5.omod
[INFO] Copying initializer-omod-2.6.0.jar to /root/openmrs/server/modules/initializer-2.6.0.omod
[INFO] Copying queue-omod-2.0.0.jar to /root/openmrs/server/modules/queue-2.0.0.omod
[INFO] Copying attachments-omod-3.0.0.jar to /root/openmrs/server/modules/attachments-3.0.0.omod
[INFO] Copying teleconsultation-omod-2.0.0-SNAPSHOT.jar to /root/openmrs/server/modules/teleconsultation-2.0.0-20230831.113926-1.omod
[INFO] Copying idgen-omod-4.10.0.jar to /root/openmrs/server/modules/idgen-4.10.0.omod
[INFO] Copying metadatamapping-omod-1.6.0.jar to /root/openmrs/server/modules/metadatamapping-1.6.0.omod
[INFO] Copying cohort-omod-3.6.0.jar to /root/openmrs/server/modules/cohort-3.6.0.omod
[INFO] Copying referencedemodata-omod-2.4.0.jar to /root/openmrs/server/modules/referencedemodata-2.4.0.omod
[INFO] Copying reporting-omod-1.25.0.jar to /root/openmrs/server/modules/reporting-1.25.0.omod
[INFO] Copying calculation-omod-1.3.0.jar to /root/openmrs/server/modules/calculation-1.3.0.omod
[INFO] Copying webservices.rest-omod-2.41.0.jar to /root/openmrs/server/modules/webservices.rest-2.41.0.omod
[INFO] Copying spa-omod-1.0.10-SNAPSHOT.jar to /root/openmrs/server/modules/spa-1.0.10-SNAPSHOT.omod
[INFO] Copying o3forms-omod-2.2.0.jar to /root/openmrs/server/modules/o3forms-2.2.0.omod
[INFO] Copying metadatasharing-omod-1.9.0.jar to /root/openmrs/server/modules/metadatasharing-1.9.0.omod

Downloading Configs...


Downloading Config: org.openmrs.distro:referenceapplication-distro:3.0.0-SNAPSHOT
[INFO] Configured Artifact: org.openmrs.distro:referenceapplication-distro:3.0.0-SNAPSHOT:zip
[INFO] Copying referenceapplication-distro-3.0.0-SNAPSHOT.zip to /root/openmrs/server/configuration/referenceapplication-distro-3.0.0-SNAPSHOT.zip
[INFO] Installing node version v16.15.0
[INFO] Unpacking /root/.m2/repository/com/github/eirslett/node/16.15.0/node-16.15.0-linux-x64.tar.gz into /tmp/openmrs-sdk-node3403893430977687692/node/tmp
[INFO] Copying node binary from /tmp/openmrs-sdk-node3403893430977687692/node/tmp/node-v16.15.0-linux-x64/bin/node to /tmp/openmrs-sdk-node3403893430977687692/node/node
[INFO] Installed node locally.
[INFO] Installing npm version 8.5.5
[INFO] Unpacking /root/.m2/repository/com/github/eirslett/npm/8.5.5/npm-8.5.5.tar.gz into /tmp/openmrs-sdk-node3403893430977687692/node/node_modules
[INFO] Installed npm locally.
[INFO] npm not inheriting proxy config from Maven
[INFO] Running 'npm --legacy-peer-deps --cache=/tmp/openmrs-sdk-node3403893430977687692/npm-cache exec -- openmrs@next --version' in /root
[INFO] npm WARN exec The following package was not found and will be installed: openmrs@next
[INFO] npm notice 
[INFO] npm notice New major version of npm available! 8.5.5 -> 10.3.0
[INFO] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.3.0>
[INFO] npm notice Run `npm install -g npm@10.3.0` to update!
[INFO] npm notice 
[INFO] npm ERR! code ERR_SOCKET_TIMEOUT
[INFO] npm ERR! network Socket timeout
[INFO] npm ERR! network This is a problem related to network connectivity.
[INFO] npm ERR! network In most cases you are behind a proxy or have bad network settings.
[INFO] npm ERR! network 
[INFO] npm ERR! network If you are behind a proxy, please make sure that the
[INFO] npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
[INFO] 
[INFO] npm ERR! A complete log of this run can be found in:
[INFO] npm ERR!     /tmp/openmrs-sdk-node3403893430977687692/npm-cache/_logs/2024-01-19T14_51_57_133Z-debug-0.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:18 min
[INFO] Finished at: 2024-01-19T17:52:44+03:00
[INFO] ------------------------------------------------------------------------
[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: Failed to run task: 'npm --legacy-peer-deps --cache=/tmp/openmrs-sdk-node3403893430977687692/npm-cache exec -- openmrs@next --version' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [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