Advertisement
Guest User

Untitled

a guest
May 4th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 KB | None | 0 0
  1. WARN - ModuleFactory.startModuleInternal(787) |2018-05-04 16:21:13,191| Error while trying to start module: emrapi
  2. org.openmrs.module.ModuleException: Unable to update data model using liquibase.xml. Module: EMR API Module
  3. at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:1028)
  4. at org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:727)
  5. at org.openmrs.api.context.Daemon$1.run(Daemon.java:74)
  6. Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase.xml::20150109-0505::Shruthi, Sravanthi:
  7. 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:
  8. 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:
  9. Caused By: Table 'conditions' already exists
  10. at liquibase.changelog.ChangeSet.execute(ChangeSet.java:347)
  11. at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
  12. at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:191)
  13. at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
  14. at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:220)
  15. at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:1021)
  16. ... 2 more
  17. 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
  18. at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)
  19. at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)
  20. at liquibase.database.AbstractDatabase.execute(AbstractDatabase.java:1091)
  21. at liquibase.database.AbstractDatabase.executeStatements(AbstractDatabase.java:1075)
  22. at liquibase.changelog.ChangeSet.execute(ChangeSet.java:317)
  23. ... 7 more
  24. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'conditions' already exists
  25. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  26. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  27. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  28. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  29. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  30. at com.mysql.jdbc.Util.getInstance(Util.java:408)
  31. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:944)
  32. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
  33. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
  34. at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)
  35. at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)
  36. at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2480)
  37. at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2438)
  38. at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:845)
  39. at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:745)
  40. at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
  41. at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
  42. ... 11 more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement