Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Using CATALINA_BASE: /Library/tomcat
- Using CATALINA_HOME: /Library/tomcat
- Using CATALINA_TMPDIR: /Library/tomcat/temp
- Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home
- Using CLASSPATH: /Library/tomcat/bin/bootstrap.jar:/Library/tomcat/bin/tomcat-juli.jar
- Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=64m; support was removed in 8.0
- Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Server version: Apache Tomcat/7.0.77
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Server built: Mar 28 2017 16:01:48 UTC
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Server number: 7.0.77.0
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: OS Name: Mac OS X
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: OS Version: 10.11.6
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Architecture: x86_64
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: JVM Version: 1.8.0_77-b03
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: JVM Vendor: Oracle Corporation
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: CATALINA_BASE: /Library/tomcat
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: CATALINA_HOME: /Library/tomcat
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -Djava.util.logging.config.file=/Library/tomcat/conf/logging.properties
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -Dfile.encoding=UTF-8
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -Xms128m
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -Xmx1024m
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -XX:PermSize=64m
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -XX:MaxPermSize=256m
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -Djava.endorsed.dirs=/Library/tomcat/endorsed
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -Dcatalina.base=/Library/tomcat
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -Dcatalina.home=/Library/tomcat
- May 12, 2017 2:51:48 PM org.apache.catalina.startup.VersionLoggerListener log
- INFO: Command line argument: -Djava.io.tmpdir=/Library/tomcat/temp
- May 12, 2017 2:51:48 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
- INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/martinmartin/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
- May 12, 2017 2:51:49 PM org.apache.coyote.AbstractProtocol init
- INFO: Initializing ProtocolHandler ["http-bio-8080"]
- May 12, 2017 2:51:49 PM org.apache.coyote.AbstractProtocol init
- INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
- May 12, 2017 2:51:49 PM org.apache.catalina.startup.Catalina load
- INFO: Initialization processed in 847 ms
- May 12, 2017 2:51:49 PM org.apache.catalina.core.StandardService startInternal
- INFO: Starting service Catalina
- May 12, 2017 2:51:49 PM org.apache.catalina.core.StandardEngine startInternal
- INFO: Starting Servlet Engine: Apache Tomcat/7.0.77
- May 12, 2017 2:51:49 PM org.apache.catalina.startup.HostConfig deployDescriptor
- INFO: Deploying configuration descriptor /Library/tomcat/conf/Catalina/localhost/context.xml
- May 12, 2017 2:51:49 PM org.apache.catalina.core.StandardContext resourcesStart
- SEVERE: Error starting static Resources
- java.lang.IllegalArgumentException: Document base /Library/tomcat/webapps/context does not exist or is not a readable directory
- at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:136)
- at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5247)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5436)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
- at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
- at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
- at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
- at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)
- at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
- at java.util.concurrent.FutureTask.run(FutureTask.java:266)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- May 12, 2017 2:51:49 PM org.apache.catalina.core.ContainerBase addChildInternal
- SEVERE: ContainerBase.addChild: start:
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/context]]
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
- at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
- at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
- at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
- at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)
- at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
- at java.util.concurrent.FutureTask.run(FutureTask.java:266)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: org.apache.catalina.LifecycleException: Error in resourceStart()
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5437)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
- ... 10 more
- May 12, 2017 2:51:49 PM org.apache.catalina.startup.HostConfig deployDescriptor
- SEVERE: Error deploying configuration descriptor /Library/tomcat/conf/Catalina/localhost/context.xml
- java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/context]]
- at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
- at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
- at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
- at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)
- at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
- at java.util.concurrent.FutureTask.run(FutureTask.java:266)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- May 12, 2017 2:51:49 PM org.apache.catalina.startup.HostConfig deployDescriptor
- INFO: Deployment of configuration descriptor /Library/tomcat/conf/Catalina/localhost/context.xml has finished in 108 ms
- May 12, 2017 2:51:49 PM org.apache.catalina.startup.HostConfig deployDirectory
- INFO: Deploying web application directory /Library/tomcat/webapps/docs
- May 12, 2017 2:51:49 PM org.apache.catalina.startup.HostConfig deployDirectory
- INFO: Deployment of web application directory /Library/tomcat/webapps/docs has finished in 532 ms
- May 12, 2017 2:51:49 PM org.apache.catalina.startup.HostConfig deployDirectory
- INFO: Deploying web application directory /Library/tomcat/webapps/examples
- May 12, 2017 2:51:50 PM org.apache.catalina.startup.HostConfig deployDirectory
- INFO: Deployment of web application directory /Library/tomcat/webapps/examples has finished in 1,070 ms
- May 12, 2017 2:51:50 PM org.apache.catalina.startup.HostConfig deployDirectory
- INFO: Deploying web application directory /Library/tomcat/webapps/host-manager
- May 12, 2017 2:51:51 PM org.apache.catalina.startup.HostConfig deployDirectory
- INFO: Deployment of web application directory /Library/tomcat/webapps/host-manager has finished in 127 ms
- May 12, 2017 2:51:51 PM org.apache.catalina.startup.HostConfig deployDirectory
- INFO: Deploying web application directory /Library/tomcat/webapps/manager
- May 12, 2017 2:51:51 PM org.apache.catalina.startup.HostConfig deployDirectory
- INFO: Deployment of web application directory /Library/tomcat/webapps/manager has finished in 93 ms
- May 12, 2017 2:51:51 PM org.apache.catalina.startup.HostConfig deployDirectory
- INFO: Deploying web application directory /Library/tomcat/webapps/ROOT
- May 12, 2017 2:51:51 PM org.apache.catalina.startup.HostConfig deployDirectory
- INFO: Deployment of web application directory /Library/tomcat/webapps/ROOT has finished in 46 ms
- May 12, 2017 2:51:51 PM org.apache.coyote.AbstractProtocol start
- INFO: Starting ProtocolHandler ["http-bio-8080"]
- May 12, 2017 2:51:51 PM org.apache.coyote.AbstractProtocol start
- INFO: Starting ProtocolHandler ["ajp-bio-8009"]
- May 12, 2017 2:51:51 PM org.apache.catalina.startup.Catalina start
- INFO: Server startup in 2069 ms
- May 12, 2017 2:53:51 PM org.apache.catalina.startup.HostConfig undeploy
- INFO: Undeploying context [/context]
- May 12, 2017 2:54:25 PM org.apache.catalina.startup.HostConfig deployDescriptor
- INFO: Deploying configuration descriptor /Library/tomcat/conf/Catalina/localhost/context.xml
- May 12, 2017 2:54:37 PM org.apache.catalina.startup.TldConfig execute
- INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
- WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2113) |2017-05-12 14:54:38,258| Unable to find a runtime properties file at /Library/tomcat/bin/context-runtime.properties
- WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2141) |2017-05-12 14:54:38,310| Unable to find properties file: /Users/martinmartin/.OpenMRS/context/context-runtime.properties
- WARN - OpenmrsUtil.getRuntimeProperties(2075) |2017-05-12 14:54:38,311| Unable to find a runtime properties file. Initial setup is needed. View the webapp to run the setup wizard.
- WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2113) |2017-05-12 14:54:38,612| Unable to find a runtime properties file at /Library/tomcat/bin/context-runtime.properties
- WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2141) |2017-05-12 14:54:38,613| Unable to find properties file: /Users/martinmartin/.OpenMRS/context/context-runtime.properties
- WARN - OpenmrsUtil.getRuntimeProperties(2075) |2017-05-12 14:54:38,613| Unable to find a runtime properties file. Initial setup is needed. View the webapp to run the setup wizard.
- May 12, 2017 2:54:38 PM org.apache.catalina.startup.HostConfig deployDescriptor
- INFO: Deployment of configuration descriptor /Library/tomcat/conf/Catalina/localhost/context.xml has finished in 13,378 ms
- May 12, 2017 2:55:02 PM org.apache.catalina.startup.HostConfig deployWAR
- INFO: Deploying web application archive /Library/tomcat/webapps/openmrs.war
- May 12, 2017 2:55:11 PM org.apache.catalina.startup.TldConfig execute
- INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
- WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2113) |2017-05-12 14:55:11,536| Unable to find a runtime properties file at /Library/tomcat/bin/openmrs-runtime.properties
- WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2113) |2017-05-12 14:55:11,589| Unable to find a runtime properties file at /Library/tomcat/bin/openmrs-runtime.properties
- INFO - Listener.contextInitialized(174) |2017-05-12 14:55:11,589| Using runtime properties file: /Users/martinmartin/.OpenMRS/openmrs-runtime.properties
- INFO 5/12/17 2:55 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 2:55 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 2:55 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 2:55 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 2:55 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 2:55 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 2:55 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 2:55 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2113) |2017-05-12 14:55:16,325| Unable to find a runtime properties file at /Library/tomcat/bin/openmrs-runtime.properties
- May 12, 2017 2:55:17 PM org.apache.catalina.startup.HostConfig deployWAR
- INFO: Deployment of web application archive /Library/tomcat/webapps/openmrs.war has finished in 15,338 ms
- INFO 5/12/17 2:56 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 2:56 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 2:56 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 2:56 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 2:56 PM:liquibase: Successfully acquired change log lock
- WARNING 5/12/17 2:56 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 2:56 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 2:56 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 2:56 PM:liquibase: Reading from `liquibasechangelog`
- INFO 5/12/17 2:56 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::1-increase-privilege-col-size-privilege::dkayiwa ran successfully in 2206ms
- INFO 5/12/17 2:56 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::2-increase-privilege-col-size-rol-privilege::dkayiwa ran successfully in 846ms
- INFO 5/12/17 2:56 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::201205241728-1::mvorobey ran successfully in 916ms
- INFO 5/12/17 2:56 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::201205241728-2::mvorobey ran successfully in 809ms
- INFO 5/12/17 2:56 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::3-increase-privilege-col-size-person_attribute_type::dkayiwa ran successfully in 674ms
- INFO 5/12/17 2:56 PM:liquibase: Marking ChangeSet: liquibase-update-to-latest.xml::20101209-1353::wyclif::(Checksum: 3:9d30d1435a6c10a4b135609dc8e925ca) ran despite precondition failure due to onFail='MARK_RAN':
- liquibase-update-to-latest.xml : Column '`as_needed`' does not exist
- INFO 5/12/17 2:56 PM:liquibase: Marking ChangeSet: liquibase-update-to-latest.xml::20120503-djmod::dkayiwa and djazayeri::(Checksum: 3:d31ac18d3a40e45c0ebb399c5d116951) ran despite precondition failure due to onFail='MARK_RAN':
- liquibase-update-to-latest.xml : Not precondition failed
- INFO 5/12/17 2:56 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121007-orders_urgency::djazayeri ran successfully in 291ms
- INFO 5/12/17 2:56 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121007-test_order_laterality::djazayeri ran successfully in 172ms
- INFO 5/12/17 2:56 PM:liquibase: Marking ChangeSet: liquibase-update-to-latest.xml::20121008-order_specimen_source_fk::djazayeri::(Checksum: 3:99464e51d64e056a1e23b30c7aaaf47e) ran despite precondition failure due to onFail='MARK_RAN':
- liquibase-update-to-latest.xml : Not precondition failed
- INFO 5/12/17 2:56 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121016-1504::wyclif ran successfully in 502ms
- SEVERE 5/12/17 2:56 PM:liquibase: Change Set liquibase-update-to-latest.xml::20121020-TRUNK-3610::lluismf failed. Error: Error executing SQL UPDATE `global_property` SET `property` = 'visits.autoCloseVisitType' WHERE property='autoCloseVisits.visitType': Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY'
- liquibase.exception.DatabaseException: Error executing SQL UPDATE `global_property` SET `property` = 'visits.autoCloseVisitType' WHERE property='autoCloseVisits.visitType': Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY'
- 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)
- at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
- at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:189)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:218)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:148)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:736)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY'
- 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:411)
- at com.mysql.jdbc.Util.getInstance(Util.java:386)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 11 more
- INFO 5/12/17 2:56 PM:liquibase: Successfully released change log lock
- ERROR - UpdateFilter$UpdateFilterCompletion$1.run(753) |2017-05-12 14:56:29,099| Unable to update the database
- org.openmrs.util.DatabaseUpdateException: There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: Migration failed for change set liquibase-update-to-latest.xml::20121020-TRUNK-3610::lluismf:
- Reason: liquibase.exception.DatabaseException: Error executing SQL UPDATE `global_property` SET `property` = 'visits.autoCloseVisitType' WHERE property='autoCloseVisits.visitType': Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY':
- Caused By: Error executing SQL UPDATE `global_property` SET `property` = 'visits.autoCloseVisitType' WHERE property='autoCloseVisits.visitType': Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY':
- Caused By: Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY'
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:152)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:736)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20121020-TRUNK-3610::lluismf:
- Reason: liquibase.exception.DatabaseException: Error executing SQL UPDATE `global_property` SET `property` = 'visits.autoCloseVisitType' WHERE property='autoCloseVisits.visitType': Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY':
- Caused By: Error executing SQL UPDATE `global_property` SET `property` = 'visits.autoCloseVisitType' WHERE property='autoCloseVisits.visitType': Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY':
- Caused By: Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY'
- 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:189)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:218)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:148)
- ... 2 more
- Caused by: liquibase.exception.DatabaseException: Error executing SQL UPDATE `global_property` SET `property` = 'visits.autoCloseVisitType' WHERE property='autoCloseVisits.visitType': Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY'
- 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.MySQLIntegrityConstraintViolationException: Duplicate entry 'visits.autoCloseVisitType' for key 'PRIMARY'
- 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:411)
- at com.mysql.jdbc.Util.getInstance(Util.java:386)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 11 more
- INFO 5/12/17 2:56 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 2:56 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 2:56 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 2:56 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 3:12 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 3:12 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:12 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:12 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 3:12 PM:liquibase: Successfully acquired change log lock
- WARNING 5/12/17 3:12 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:12 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:12 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 3:12 PM:liquibase: Reading from `liquibasechangelog`
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121020-TRUNK-3610::lluismf ran successfully in 5ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121025-TRUNK-213::lluismf ran successfully in 9731ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121021-TRUNK-333::lluismf ran successfully in 86ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121109-TRUNK-3474::patandre ran successfully in 542ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121112-TRUNK-3474::patandre ran successfully in 398ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121113-TRUNK-3474::patandre ran successfully in 557ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121113-TRUNK-3474-person-attribute-type::patandre ran successfully in 668ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121113-TRUNK-3474-privilege::patandre ran successfully in 148ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121114-TRUNK-3474-role::patandre ran successfully in 311ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121114-TRUNK-3474-relationship_type::patandre ran successfully in 543ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121114-TRUNK-3474-encounter_type::patandre ran successfully in 73ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20121212-TRUNK-2768::patandre ran successfully in 1465ms
- INFO 5/12/17 3:12 PM:liquibase: ChangeSet liquibase-update-to-latest.xml::20130626-TRUNK-439::jthoenes ran successfully in 31ms
- SEVERE 5/12/17 3:13 PM:liquibase: Change Set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan failed. Error: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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)
- at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
- at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:189)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:218)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:148)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:736)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:411)
- at com.mysql.jdbc.Util.getInstance(Util.java:386)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 11 more
- INFO 5/12/17 3:13 PM:liquibase: Successfully released change log lock
- ERROR - UpdateFilter$UpdateFilterCompletion$1.run(753) |2017-05-12 15:13:00,465| Unable to update the database
- org.openmrs.util.DatabaseUpdateException: There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: Migration failed for change set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan:
- Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:152)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:736)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan:
- Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:189)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:218)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:148)
- ... 2 more
- Caused by: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_15d`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:411)
- at com.mysql.jdbc.Util.getInstance(Util.java:386)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 11 more
- INFO 5/12/17 3:13 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 3:13 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:13 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:13 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- ^[[B^[[BINFO 5/12/17 3:48 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 3:48 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:48 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:48 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 3:48 PM:liquibase: Successfully acquired change log lock
- WARNING 5/12/17 3:48 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:48 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:48 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 3:48 PM:liquibase: Reading from `liquibasechangelog`
- SEVERE 5/12/17 3:48 PM:liquibase: Change Set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan failed. Error: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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)
- at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
- at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:189)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:218)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:148)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:736)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:411)
- at com.mysql.jdbc.Util.getInstance(Util.java:386)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 11 more
- INFO 5/12/17 3:48 PM:liquibase: Successfully released change log lock
- ERROR - UpdateFilter$UpdateFilterCompletion$1.run(753) |2017-05-12 15:48:26,295| Unable to update the database
- org.openmrs.util.DatabaseUpdateException: There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: Migration failed for change set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan:
- Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:152)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:736)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan:
- Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:189)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:218)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:148)
- ... 2 more
- Caused by: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2b0`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:411)
- at com.mysql.jdbc.Util.getInstance(Util.java:386)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 11 more
- INFO 5/12/17 3:48 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 3:48 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:48 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 3:48 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 4:01 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 4:01 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 4:01 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 4:01 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 4:01 PM:liquibase: Successfully acquired change log lock
- WARNING 5/12/17 4:01 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 4:01 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 4:01 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 4:01 PM:liquibase: Reading from `liquibasechangelog`
- SEVERE 5/12/17 4:01 PM:liquibase: Change Set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan failed. Error: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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)
- at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
- at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:189)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:218)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:148)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:736)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:411)
- at com.mysql.jdbc.Util.getInstance(Util.java:386)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 11 more
- INFO 5/12/17 4:01 PM:liquibase: Successfully released change log lock
- ERROR - UpdateFilter$UpdateFilterCompletion$1.run(753) |2017-05-12 16:01:42,086| Unable to update the database
- org.openmrs.util.DatabaseUpdateException: There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: Migration failed for change set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan:
- Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:152)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:736)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan:
- Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:189)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:218)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:148)
- ... 2 more
- Caused by: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_2fb`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:411)
- at com.mysql.jdbc.Util.getInstance(Util.java:386)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 11 more
- INFO 5/12/17 4:01 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 4:01 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 4:01 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 4:01 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 4:17 PM:liquibase: Reading from `liquibasechangelog`
- WARNING 5/12/17 4:17 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 4:17 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 4:17 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 4:17 PM:liquibase: Successfully acquired change log lock
- WARNING 5/12/17 4:17 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 4:17 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- WARNING 5/12/17 4:17 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
- INFO 5/12/17 4:17 PM:liquibase: Reading from `liquibasechangelog`
- SEVERE 5/12/17 4:18 PM:liquibase: Change Set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan failed. Error: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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)
- at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
- at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:189)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:218)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:148)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:736)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:411)
- at com.mysql.jdbc.Util.getInstance(Util.java:386)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 11 more
- INFO 5/12/17 4:18 PM:liquibase: Successfully released change log lock
- ERROR - UpdateFilter$UpdateFilterCompletion$1.run(753) |2017-05-12 16:18:00,529| Unable to update the database
- org.openmrs.util.DatabaseUpdateException: There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: Migration failed for change set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan:
- Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:152)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:736)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201306141103-TRUNK-3884::susantan:
- Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`)):
- Caused By: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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:189)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:218)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:148)
- ... 2 more
- Caused by: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `encounter_provider` ADD CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- 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.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`#sql-8623_389`, CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`))
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement