Hi guys I’m trying to set up OpenMRS using the SDK version 3.8.1 and a platform setting. I’m using the current SNAPSHOT as well if that matters.
The sdk set up fails as it tries to import the initial database. This is the error message: ethan [2:37 PM] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.8.1:setup (default-cli) on project standalone-pom: Failed to setup server: Failed to reset search index: Table ‘openmrs.global_property’ doesn’t exist -> [Help 1]
Here’s a longer excerpt: Failed to setup server: Failed to reset search index: Table ‘openmrs.global_property’ doesn’t exist -> [Help 1]
[2:38]
Connected to the database.
Importing an initial database from classpath://openmrs-platform.sql… [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 08:49 min [INFO] Finished at: 2017-02-15T14:36:36+01:00 [INFO] Final Memory: 28M/290M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.8.1:setup (default-cli) on project standalone-pom: Failed to setup server: Failed to reset search index: Table ‘openmrs.global_property’ doesn’t exist -> [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
STEPS I TOOK
Installed Maven, Java, Mysql Install the Sdk with mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk (ran successfully) tried to create an instance with mvn openmrs-sdk:setup selected Platform and chose the SNAPSHOT version. selected mysql database and accepted the default connection string. Entered the user name and password and the connection to the database was successful It then tries to set up the database and fails with the above error.