Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WARN - ModuleFactory.startModuleInternal(787) |2018-05-04 16:21:13,191| Error while trying to start module: emrapi
- org.openmrs.module.ModuleException: Unable to update data model using liquibase.xml. Module: EMR API Module
- at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:1028)
- at org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:727)
- at org.openmrs.api.context.Daemon$1.run(Daemon.java:74)
- Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase.xml::20150109-0505::Shruthi, Sravanthi:
- Reason: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE `conditions` (`condition_id` INT AUTO_INCREMENT NOT NULL, `previous_condition_id` INT NULL, `patient_id` INT NOT NULL, `status` VARCHAR(255) NOT NULL, `concept_id` INT NOT NULL, `condition_non_coded` VARCHAR(1024) NULL, `onset_date` DATETIME NULL, `additional_detail` VARCHAR(1024) NULL, `end_date` DATETIME NULL, `end_reason` INT NULL, `creator` INT NOT NULL, `date_created` DATETIME NOT NULL, `voided` TINYINT(1) NOT NULL, `voided_by` INT NULL, `date_voided` DATETIME NULL, `void_reason` VARCHAR(255) NULL, `uuid` CHAR(38) NOT NULL, CONSTRAINT `PK_CONDITIONS` PRIMARY KEY (`condition_id`), UNIQUE (`uuid`)): Table 'conditions' already exists:
- Caused By: Error executing SQL CREATE TABLE `conditions` (`condition_id` INT AUTO_INCREMENT NOT NULL, `previous_condition_id` INT NULL, `patient_id` INT NOT NULL, `status` VARCHAR(255) NOT NULL, `concept_id` INT NOT NULL, `condition_non_coded` VARCHAR(1024) NULL, `onset_date` DATETIME NULL, `additional_detail` VARCHAR(1024) NULL, `end_date` DATETIME NULL, `end_reason` INT NULL, `creator` INT NOT NULL, `date_created` DATETIME NOT NULL, `voided` TINYINT(1) NOT NULL, `voided_by` INT NULL, `date_voided` DATETIME NULL, `void_reason` VARCHAR(255) NULL, `uuid` CHAR(38) NOT NULL, CONSTRAINT `PK_CONDITIONS` PRIMARY KEY (`condition_id`), UNIQUE (`uuid`)): Table 'conditions' already exists:
- Caused By: Table 'conditions' already exists
- at liquibase.changelog.ChangeSet.execute(ChangeSet.java:347)
- at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
- at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:191)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:220)
- at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:1021)
- ... 2 more
- Caused by: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE `conditions` (`condition_id` INT AUTO_INCREMENT NOT NULL, `previous_condition_id` INT NULL, `patient_id` INT NOT NULL, `status` VARCHAR(255) NOT NULL, `concept_id` INT NOT NULL, `condition_non_coded` VARCHAR(1024) NULL, `onset_date` DATETIME NULL, `additional_detail` VARCHAR(1024) NULL, `end_date` DATETIME NULL, `end_reason` INT NULL, `creator` INT NOT NULL, `date_created` DATETIME NOT NULL, `voided` TINYINT(1) NOT NULL, `voided_by` INT NULL, `date_voided` DATETIME NULL, `void_reason` VARCHAR(255) NULL, `uuid` CHAR(38) NOT NULL, CONSTRAINT `PK_CONDITIONS` PRIMARY KEY (`condition_id`), UNIQUE (`uuid`)): Table 'conditions' already exists
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)
- at liquibase.database.AbstractDatabase.execute(AbstractDatabase.java:1091)
- at liquibase.database.AbstractDatabase.executeStatements(AbstractDatabase.java:1075)
- at liquibase.changelog.ChangeSet.execute(ChangeSet.java:317)
- ... 7 more
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'conditions' already exists
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
- at com.mysql.jdbc.Util.getInstance(Util.java:408)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:944)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2480)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2438)
- at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:845)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:745)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 11 more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement