Failed to setup openmrs server

Hello OpenMrs community, when setting the openmrs server i am getting an error

After trying to do some research on the error this is what i could get

Is there a chance i could have made a mistake somewhere because i was keen to follow all the steps

So sorry @osuta . Kindly which command are you running? besides do you mind sharing the error in the terminal using pastebin please? Also share the link to the document you are share just incase any.

Hey @osuta !

If your focus or the goal is to do Backend development you can go with the Docker path as well.

Here is the documentation for that : https://openmrs.atlassian.net/wiki/x/AYBwQQ

1 Like

here it is Setting server - Pastebin.com

thank you this is a life saver :+1:

i faced this problem sometime back and i tried these steps and one of them worked so i hope it works for you as well;

-Delete the temp files and try again. go to: C:\Users\HP\AppData\Local\Temp, find and delete any folders starting with openmrs-sdk-node. Re-run mvn openmrs-sdk:setup again.

-The tool might be having trouble because the version of Node.js is a bit old. take time and check whether it’s up to date.

-Try setting up a new distribution version like 3.8.0 which might avoid the bug entirely

-Try running the command without the “legacy” flag. i also did this also it was kinda disturbing and advanced.

in case they all dont work out, feel free to reach out once more.

The “legacy” flag is there for a good reason and the command won’t work correctly without it. We don’t just add flags automatically without having a good reason to do so.

1 Like

Thanks @ibacher for the correction. it’s something I did when I was desperate.

1 Like

Hey all, I’m having a different issue with openmrs server setup. Specifically, when following the recommended instructions for the OpenMRS server with docker and SDK on Windows, version 3.8.0 (recommended most recent), I ran into an error, wherein maven couldn’t find the following artifact: org.openmrs:distro-emr-frontend:zip:3.8.0.

First I got the following warning:

[WARNING] The POM for org.openmrs:distro-emr-frontend:zip:3.8.0 is missing, no dependency information available

Then I got the following Error: [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:6.8.0:setup (default-cli) on project standalone-pom: Failed to setup server: Unable to find/resolve artifact. The following artifacts could not be resolved: org.openmrs:distro-emr-frontend:zip:3.8.0 (absent): org.openmrs:distro-emr-frontend:zip:3.8.0 was not found in JFrog during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of openmrs-repo has elapsed or updates are forced

A screenshot is below. Any assistance would be very welcome!

Thanks for sharing the details. From the error, it looks like the SDK is able to resolve distro-emr-configuration:3.8.0, but the corresponding distro-emr-frontend:zip:3.8.0 artifact cannot be found in the OpenMRS Maven repository. Since the failure is specifically that the 3.8.0 frontend artifact is unavailable, I think this doesn’t appear to be a local Maven or Windows configuration issue. Could you try selecting the currently released 3.x version like 3.7.1 instead of 3.8.0 and see if the setup completes successfully? If you specifically need 3.8.0, it may be worth checking with @dkayiwa and @ibacher whether the frontend artifact for that version has been published.

Hope this helps!

2 Likes

3.8.0 has not been released. I’ve deleted the mistaken artifacts there.

2 Likes