I am using SDK , the errors are not in one place the pop up as it is setting up.The screenshot would be better but it is failing to upload .This is part of it .
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Could not connect to Docker at unix:///var/run/docker.sock.
If the Docker host URL is not correct, please reset it by running setup with the -DdockerHost parameter
or set it manually by adding -DdockerHost=“tcp://correct/url”
at org.openmrs.maven.plugins.AbstractDockerMojo.resolveDocker (AbstractDockerMojo.java:85)
at org.openmrs.maven.plugins.AbstractDockerMojo.execute (AbstractDockerMojo.java:50)
at org.openmrs.maven.plugins.CreateMySql.execute (CreateMySql.java:26)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo (MojoExecutor.java:120)
at org.openmrs.maven.plugins.utility.DockerHelper.createMySqlContainer (DockerHelper.java:96)
at org.openmrs.maven.plugins.utility.DefaultWizard.promptForDockerizedSdk
The distribution requires a MySQL database. Please specify database uri (-DdbUri) (default: ‘jdbc:mysql://localhost:3306/@DBNAME@’): jdbc:mysql://localhost:3306/@BNAME@
Please specify database username (-DdbUser) (default: ‘root’): root
Please specify database password (-DdbPassword): ********
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:01 min
[INFO] Finished at: 2022-05-15T21:49:51+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: The database name is not in the correct format (it should only have alphanumeric, dash and underscore signs): @BNAME@ → [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
Hey team,
Am getting this error : Could not connect to Docker at unix:///var/run/docker.sock. [ERROR] [ERROR] If the Docker host URL is not correct, please reset it by running setup with the -DdockerHost parameter [ERROR] or set it manually by adding -DdockerHost="tcp://correct/url": java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied after running mvn openmrs-sdk:setup command and going through the steps to choosing 3) Existing docker container (requires pre-installed Docker)
@jwnasambu I totally understand! Your previous solution has worked for me as well. I just chose option 1 and then set up the database details, even if the database is running in docker it’s still exposed on port 3306. Thanks a lot.