Liferay 6.0 EE SP1 to SP2 upgrade error: ORA-00001Liferay 6.0 EE SP1 to SP2 upgrade error: ORA-00001https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=114311682024-03-29T07:41:30Z2024-03-29T07:41:30ZRE: Liferay 6.0 EE SP1 to SP2 upgrade error: ORA-00001Olaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=822934402016-11-11T09:45:05Z2016-11-11T09:45:05Z<div class="quote-title">Reshmi Singha Chaudhury:</div><blockquote>I am also facing slimier problem during up gradation to 6.1 from Liferay 6.0 and getting the below error during upgrade. Please suggest a way out, how to recover this and complete successful up gradation.</blockquote><br /><br />Unfortunately a stacktrace is not quite enough to give solid advice. Some things that you should consider<br /><ul><li>As you're writing about upgrade to 6.1 in 2016, I hope that this is only one step in your quest to upgrade to a current and still supported version</li><li>If You're doing this on EE, open a ticket and ask for the recommended upgrade path to use. You'll need to give your current exact version. There's a 6.0.0 in the stacktrace and I hope that you're not upgrading from 6.0 CE GA1.</li><li>You might want to run this routine in a debugger and check, when the constraint violation actually happens</li><li>Possible root causes are: Data has been manipulated manually, "Somehow" (tm) the database got inconsistent, Bug in the upgrade routines, Bug in the previous version</li></ul>Olaf Kock2016-11-11T09:45:05ZRE: Liferay 6.0 EE SP1 to SP2 upgrade error: ORA-00001Reshmi Singha Chaudhuryhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=821669932016-11-08T13:06:19Z2016-11-08T13:06:19ZHi All,<br /><br />I am also facing slimier problem during up gradation to 6.1 from Liferay 6.0 and getting the below error during upgrade. Please suggest a way out, how to recover this and complete successful up gradation.<br /><br />Please follow the below log:<br />11:46:10,545 INFO [localhost-startStop-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_0_0.UpgradeAsset<br />11:46:12,371 ERROR [localhost-startStop-1][MainServlet:217] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.sql.SQLException: ORA-00001: unique constraint (LIFERAY_GENPORTAL_UPGRADE2.SYS_C0022091) violated<br /><br />com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.sql.SQLException: ORA-00001: unique constraint (LIFERAY_GENPORTAL_UPGRADE2.SYS_C0022091) violated<br /><br />at com.liferay.portal.events.StartupAction.run(StartupAction.java:56)<br />at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1300)<br />at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:214)<br />at javax.servlet.GenericServlet.init(GenericServlet.java:160)<br />at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)<br />at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)<br />at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)<br />at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5123)<br />at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5407)<br />at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)<br />at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)<br />at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)<br />at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)<br />at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)<br />at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1636)<br />at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)<br />at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)Reshmi Singha Chaudhury2016-11-08T13:06:19ZRE: Liferay 6.0 EE SP1 to SP2 upgrade error: ORA-00001Mathias Lehmannhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=115628992011-11-23T08:26:37Z2011-11-23T08:26:37ZHello @all,<br />Any ideas or information about that. It's important to know if i can update the system.<br /><br />Best regards,<br />MathiasMathias Lehmann2011-11-23T08:26:37ZLiferay 6.0 EE SP1 to SP2 upgrade error: ORA-00001Mathias Lehmannhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=114311672011-11-11T08:44:32Z2011-11-11T08:44:32ZHello @all,<br />i tried to upgrade from SP1 to Sp2.<br /><br />I imported my database scheme (Lieray 6.0 EE SP1 ) form production to testenvironment.<br />After starting the server in testenvironment i get the following error:<br /><br /><blockquote><br />11.11.2011 08:31:06 org.apache.coyote.http11.Http11Protocol init<br />INFO: Initializing Coyote HTTP/1.1 on http-8888<br />11.11.2011 08:31:06 org.apache.catalina.startup.Catalina load<br />INFO: Initialization processed in 825 ms<br />11.11.2011 08:31:07 org.apache.catalina.core.StandardService start<br />INFO: Starting service Catalina<br />11.11.2011 08:31:07 org.apache.catalina.core.StandardEngine start<br />INFO: Starting Servlet Engine: Apache Tomcat/6.0.32<br />11.11.2011 08:31:07 org.apache.catalina.startup.HostConfig deployDescriptor<br />INFO: Deploying configuration descriptor ROOT.xml<br />Loading jar:file:/D:/Liferay%20Developer%20Studio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties<br />08:31:18,932 INFO [EasyConf:122] Refreshed the configuration of all components<br />08:31:19,463 INFO [ConfigurationLoader:56] Properties for jar:file:/D:/Liferay%20Developer%20Studio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal loaded from [file:/D:/Liferay%20Developer%20Studio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/classes/portal-developer.properties, file:/D:/Liferay%20Developer%20Studio/liferay-portal-6.0-ee-sp2/portal-ide.properties, file:/D:/Liferay%20Developer%20Studio/liferay-portal-6.0-ee-sp2/portal-ext.properties, jar:file:/D:/Liferay%20Developer%20Studio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]<br />Loading jar:file:/D:/Liferay%20Developer%20Studio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties<br />Loading file:/D:/Liferay%20Developer%20Studio/liferay-portal-6.0-ee-sp2/portal-ext.properties<br />Loading file:/D:/Liferay%20Developer%20Studio/liferay-portal-6.0-ee-sp2/portal-ide.properties<br />Loading file:/D:/Liferay%20Developer%20Studio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/classes/portal-developer.properties<br />08:31:27,807 INFO [DialectDetector:80] Determine dialect for Oracle 10<br />08:31:27,885 INFO [DialectDetector:145] Found dialect org.hibernate.dialect.Oracle10gDialect<br />08:31:34,557 INFO [PortalImpl:295] Global lib directory /D:/Liferay Developer Studio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/lib/ext/<br />08:31:34,572 INFO [PortalImpl:315] Portal lib directory /D:/Liferay Developer Studio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/<br />Starting Liferay Portal Enterprise Edition 6.0 EE SP2 (Bunyan / Build 6012 / July 27, 2011)<br />08:31:53,791 INFO [BaseDB:401] Database supports case sensitive queries<br />08:31:53,806 INFO [UpgradeProcess:199] Upgrading com.liferay.portal.upgrade.UpgradeProcess_6_0_12<br />08:31:53,806 INFO [UpgradeProcess:199] Upgrading com.liferay.portal.upgrade.v6_0_12.UpgradeSchema<br />08:31:54,400 INFO [UpgradeProcess:199] Upgrading com.liferay.portal.upgrade.v6_0_12.UpgradeAsset<br />08:31:54,525 INFO [UpgradeProcess:199] Upgrading com.liferay.portal.upgrade.v6_0_12.UpgradeBlogs<br />08:31:54,806 INFO [UpgradeProcess:199] Upgrading com.liferay.portal.upgrade.v6_0_12.UpgradeDocumentLibrary<br />08:31:54,822 INFO [UpgradeProcess:199] Upgrading com.liferay.portal.upgrade.v6_0_12.UpgradeExpando<br />08:31:54,822 INFO [UpgradeProcess:199] Upgrading com.liferay.portal.upgrade.v6_0_12.UpgradeLock<br />08:31:54,838 INFO [UpgradeProcess:199] Upgrading com.liferay.portal.upgrade.v6_0_12.UpgradeMessageBoards<br />08:32:01,900 INFO [UpgradeProcess:199] Upgrading com.liferay.portal.upgrade.v6_0_12.UpgradePermission<br />08:32:03,509 ERROR [JDBCExceptionReporter:234] ORA-00001: Unique Constraint violated (PORTAL.SYS_C00114152)<br /><br />08:32:03,509 ERROR [JDBCExceptionReporter:234] ORA-00001: Unique Constraint violated (PORTAL.SYS_C00114152)<br /><br />08:32:03,509 ERROR [MainServlet:201] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update<br />com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update<br /> at com.liferay.portal.events.StartupAction.run(StartupAction.java:57)<br /> at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1193)<br /> at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:198)<br /> at javax.servlet.GenericServlet.init(GenericServlet.java:212)<br /> at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)<br /> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)<br /> at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)<br /> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)<br /> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)<br /> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)<br /> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)<br /> at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)<br /> at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)<br /> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)<br /> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)<br /> at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)<br /> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)<br /> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)<br /> at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)<br /> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)<br /> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)<br /> at org.apache.catalina.core.StandardService.start(StandardService.java:525)<br /> at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)<br /> at org.apache.catalina.startup.Catalina.start(Catalina.java:595)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br /> at java.lang.reflect.Method.invoke(Unknown Source)<br /> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)<br /> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)<br />Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update<br /> at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:205)<br /> at com.liferay.portal.upgrade.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:80)<br /> at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:37)<br /> at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:73)<br /> at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:40)<br /> at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:99)<br /> at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:126)<br /> at com.liferay.portal.ee.license.StartupAction.doRun(Unknown Source)<br /> at com.liferay.portal.events.StartupAction.run(StartupAction.java:51)<br /> ... 29 more<br />Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update<br /> at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:205)<br /> at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:221)<br /> at com.liferay.portal.upgrade.UpgradeProcess_6_0_12.doUpgrade(UpgradeProcess_6_0_12.java:54)<br /> at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:202)<br /> ... 37 more<br />Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update<br /> at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:190)<br /> at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:467)<br /> at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:1)<br /> at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:254)<br /> at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.addResourcePermissions(ResourcePermissionLocalServiceImpl.java:186)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br /> at java.lang.reflect.Method.invoke(Unknown Source)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)<br /> at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:86)<br /> at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)<br /> at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)<br /> at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)<br /> at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:93)<br /> at $Proxy67.addResourcePermissions(Unknown Source)<br /> at com.liferay.portal.service.ResourcePermissionLocalServiceUtil.addResourcePermissions(ResourcePermissionLocalServiceUtil.java:329)<br /> at com.liferay.portal.upgrade.v6_0_12.UpgradePermission.updatePermissions_6(UpgradePermission.java:101)<br /> at com.liferay.portal.upgrade.v6_0_12.UpgradePermission.updatePermissions(UpgradePermission.java:54)<br /> at com.liferay.portal.upgrade.v6_0_12.UpgradePermission.doUpgrade(UpgradePermission.java:43)<br /> at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:202)<br /> ... 40 more<br />Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update<br /> at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:30)<br /> at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:128)<br /> at com.liferay.portal.kernel.dao.orm.ClassLoaderSession.flush(ClassLoaderSession.java:218)<br /> at com.liferay.portal.service.persistence.BatchSessionImpl.update(BatchSessionImpl.java:95)<br /> at com.liferay.portal.service.persistence.BatchSessionUtil.update(BatchSessionUtil.java:49)<br /> at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:462)<br /> ... 59 more<br />Caused by: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update<br /> at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96)<br /> at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)<br /> at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)<br /> at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268)<br /> at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)<br /> at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)<br /> at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)<br /> at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)<br /> at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:125)<br /> ... 63 more<br />Caused by: java.sql.BatchUpdateException: ORA-00001: Unique Constraint (PORTAL.SYS_C00114152) verletzt<br /><br /> at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10070)<br /> at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:213)<br /> at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)<br /> at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)<br /> at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)<br /> ... 69 more<br />Stopping the server due to unexpected startup errors<br /><br /></blockquote> <br /><br />When i start the server for the second time it seems all fine. The upgrade process works without any errors (upgrading and verifying).<br /><br />What does that mean? What is the index PORTAL.SYS_C00114152? And does the error have any effects on my tables?<br />Can i run the upgrade process in my production environment or will i get a