<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/java-sql-sqlexception-lock-wait-timeout-exceeded-try-restarting/m-p/42765#M17772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 style="color: #242729; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 22px; margin: 0px 0px 0.5em;"&gt;&lt;A href="https://stackoverflow.com/questions/13966467/how-to-avoid-lock-wait-timeout-exceeded-exception" style="color: #242729; border: 0px; font-weight: normal; text-decoration: none; font-size: 24px; margin: 0px 0px 0.5em;" rel="nofollow noopener noreferrer"&gt;How to Avoid Lock wait timeout exceeded excepti&lt;/A&gt;on?&lt;/H1&gt;&lt;P&gt;Hi we are using Alfresco Enterprise v5.0.1 in production. Sometimes users are not able to perform any action on node and when i checked the logs we are getting following error and they are able to perform action after couple of hours once the lock is released. I have researched about this error and got few suggestions like &lt;STRONG&gt;"increasing the lock wait timeout value for InnoDB by setting the&amp;nbsp;&lt;A href="http://dev.mysql.com/doc/refman/5.5/en/innodb-parameters.html#sysvar_innodb_lock_wait_timeout" rel="nofollow noopener noreferrer"&gt;innodb_lock_wait_timeout&lt;/A&gt;, default is 50 sec and increase to 120 or 500&lt;/STRONG&gt;". But I'm not sure whether this will solve our problem or not. Kindly let us know how to avoid these type of issues and help us in solving this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-12-11 13:28:00,055 ERROR&amp;nbsp; [pool-83-thread-1] We've caught an exception!&lt;BR /&gt; org.springframework.dao.ConcurrencyFailureException: Failed to update node 3331474; nested exception is org.springframework.dao.CannotAcquireLockException:&lt;BR /&gt;### Error updating database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction&lt;BR /&gt;### The error may involve alfresco.node.update_Node-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### SQL: update alf_node set version = ? , transaction_id = ? , audit_creator = ? , audit_created = ? , audit_modifier = ? , audit_modified = ? , audit_accessed = ? where id = ? and version = (? - 1)&lt;BR /&gt;### Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction&lt;BR /&gt;; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction&lt;BR /&gt; at org.alfresco.repo.domain.node.AbstractNodeDAOImpl.updateNodeImpl(AbstractNodeDAOImpl.java:1900)&lt;BR /&gt; at org.alfresco.repo.domain.node.AbstractNodeDAOImpl.touchNode(AbstractNodeDAOImpl.java:1726)&lt;BR /&gt; at org.alfresco.repo.domain.node.AbstractNodeDAOImpl.removeNodeAspects(AbstractNodeDAOImpl.java:2722)&lt;BR /&gt; at org.alfresco.repo.node.db.DbNodeServiceImpl.removeAspect(DbNodeServiceImpl.java:835)&lt;BR /&gt; at sun.reflect.GeneratedMethodAccessor1207.invoke(Unknown Source)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:483)&lt;BR /&gt; at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)&lt;BR /&gt; at org.alfresco.repo.lock.mem.LockableAspectInterceptor.invoke(LockableAspectInterceptor.java:221)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)&lt;BR /&gt; at com.sun.proxy.$Proxy13.removeAspect(Unknown Source)&lt;BR /&gt; at sun.reflect.GeneratedMethodAccessor1207.invoke(Unknown Source)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:483)&lt;BR /&gt; at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)&lt;BR /&gt; at org.alfresco.repo.audit.DisableAuditableBehaviourInterceptor.invoke(DisableAuditableBehaviourInterceptor.java:113)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at org.alfresco.repo.transaction.RetryingTransactionInterceptor$1.execute(RetryingTransactionInterceptor.java:79)&lt;BR /&gt; at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)&lt;BR /&gt; at org.alfresco.repo.transaction.RetryingTransactionInterceptor.invoke(RetryingTransactionInterceptor.java:69)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)&lt;BR /&gt; at com.sun.proxy.$Proxy13.removeAspect(Unknown Source)&lt;BR /&gt; at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)&lt;BR /&gt; at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)&lt;BR /&gt; at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)&lt;BR /&gt; at org.alfresco.repo.security.authentication.AuthenticationUtil.runAsSystem(AuthenticationUtil.java:582)&lt;BR /&gt; at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:745)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2018 10:17:28 GMT</pubDate>
    <dc:creator>dmalla</dc:creator>
    <dc:date>2018-01-05T10:17:28Z</dc:date>
    <item>
      <title>java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/java-sql-sqlexception-lock-wait-timeout-exceeded-try-restarting/m-p/42765#M17772</link>
      <description>How to Avoid Lock wait timeout exceeded exception?Hi we are using Alfresco Enterprise v5.0.1 in production. Sometimes users are not able to perform any action on node and when i checked the logs we are getting following error and they are able to perform action after couple of hours once the lock is</description>
      <pubDate>Fri, 05 Jan 2018 10:17:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/java-sql-sqlexception-lock-wait-timeout-exceeded-try-restarting/m-p/42765#M17772</guid>
      <dc:creator>dmalla</dc:creator>
      <dc:date>2018-01-05T10:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/java-sql-sqlexception-lock-wait-timeout-exceeded-try-restarting/m-p/42766#M17773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please respond to my query and help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 10:40:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/java-sql-sqlexception-lock-wait-timeout-exceeded-try-restarting/m-p/42766#M17773</guid>
      <dc:creator>dmalla</dc:creator>
      <dc:date>2018-01-11T10:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/java-sql-sqlexception-lock-wait-timeout-exceeded-try-restarting/m-p/42767#M17774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any long-running operation going on in the background which may have obtained locks and simply does not release them within the default time to wait? Then this error is to be expected and you may need to check that other operation for ways to reduce its impact. So far, I never had to modify the default timeout values for MySQL / InnoDB (at least when I used those - I prefer PostgreSQL nowadays).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 09:45:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/java-sql-sqlexception-lock-wait-timeout-exceeded-try-restarting/m-p/42767#M17774</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-01-12T09:45:35Z</dc:date>
    </item>
  </channel>
</rss>

