We are using Tridion 2013 SP1 and implemented Web Deployer. But when we try to publish full web site we get very frequently following error. Unable to get the root cause of the same and resolve. Please suggest.
ERROR DeployPipelineExecutor - Unable to start processing deployment package with transactionId: tcm:0-1120538-66560
com.tridion.deployer.ProcessingException: Phase: Deployment Prepare Commit Phase failed.
Unable to prepare transaction: tcm:0-1120538-66560
at com.tridion.deployer.phases.DeployPipelineExecutor.runMainExecutePhase(DeployPipelineExecutor.java:209) [cd_deployer.jar:na]
at com.tridion.deployer.phases.DeployPipelineExecutor.doExecute(DeployPipelineExecutor.java:100) [cd_deployer.jar:na]
at com.tridion.deployer.phases.DeployPipelineExecutor.execute(DeployPipelineExecutor.java:64) [cd_deployer.jar:na]
at com.tridion.deployer.TransactionManager.handleDeployPackage(TransactionManager.java:82) [cd_deployer.jar:na]
at com.tridion.deployer.queue.QueueLocationHandler$1.run(QueueLocationHandler.java:180) [cd_deployer.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.7.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_60]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_60]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_60]
Caused by: javax.persistence.OptimisticLockException: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
at org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1402) ~[hibernate-entitymanager.jar:4.0.1.Final]
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308) ~[hibernate-entitymanager.jar:4.0.1.Final]
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) ~[hibernate-entitymanager.jar:4.0.1.Final]
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:261) ~[hibernate-entitymanager.jar:4.0.1.Final]
at com.tridion.storage.persistence.JPABaseDAO.executeQueryListResult(JPABaseDAO.java:281) ~[cd_datalayer.jar:na]
at com.tridion.storage.persistence.JPABaseDAO.executeQueryListResult(JPABaseDAO.java:249) ~[cd_datalayer.jar:na]
at com.tridion.storage.persistence.JPABaseDAO.executeQueryListResult(JPABaseDAO.java:220) ~[cd_datalayer.jar:na]
at com.tridion.storage.persistence.JPATaxonomyDAO.findTaxonomyKeyword(JPATaxonomyDAO.java:157) ~[cd_datalayer.jar:na]
at com.tridion.storage.services.TaxonomyCounterService.updateKeywordReferenceCount(TaxonomyCounterService.java:66) ~[cd_datalayer.jar:na]
at com.tridion.storage.services.TaxonomyCounterService.updateKeywordReferenceCount(TaxonomyCounterService.java:86) ~[cd_datalayer.jar:na]
at com.tridion.storage.services.TaxonomyCounterService.updateKeywordsReferenceCount(TaxonomyCounterService.java:49) ~[cd_datalayer.jar:na]
at com.tridion.storage.services.TaxonomyCounterService.updateKeywordsReferenceCount(TaxonomyCounterService.java:35) ~[cd_datalayer.jar:na]
at com.tridion.storage.deploy.workers.PageWorker.doDeploy(PageWorker.java:78) ~[cd_datalayer.jar:na]
at com.tridion.deployer.model.transaction.TransactionLogItemWorker.doWork(TransactionLogItemWorker.java:27) ~[cd_model.jar:na]
at com.tridion.deployer.phases.PreCommitPhase.runPrepare(PreCommitPhase.java:155) ~[cd_deployer.jar:na]
at com.tridion.deployer.phases.PreCommitPhase.execute(PreCommitPhase.java:101) ~[cd_deployer.jar:na]
at com.tridion.deployer.phases.DeployPipelineExecutor.runMainExecutePhase(DeployPipelineExecutor.java:198) [cd_deployer.jar:na]
... 9 common frames omitted
Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1