Bamboo throws 'HHH000315: Exception executing batch' error when deleting a deployment environment

Still need help?

The Atlassian Community is here for you.

Ask the community


Problem

Bamboo presents an internal server error when deleting a deployment environment.

Diagnosis

The following appears in the $BAMBOO_HOME/logs/atlassian-bamboo.log

2017-03-24 08:57:29,575 INFO [http-nio-8085-exec-43] [DefaultStopBuildManager] 48693249-48562178-109019855: Request to stop '48693249-48562178-109019855' received from admin@******.com
2017-03-24 08:57:29,575 INFO [http-nio-8085-exec-43] [BuildQueueManagerImpl] Attempting to remove from queue: 48693249-48562178-109019855
2017-03-24 08:57:29,581 WARN [http-nio-8085-exec-43] [DeploymentsInProgressServiceImpl] Not found deployment in progress record for result id: 109019855
2017-03-24 08:57:29,616 ERROR [http-nio-8085-exec-43] [BatchingBatch] HHH000315: Exception executing batch [Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1]
2017-03-24 08:57:29,617 ERROR [http-nio-8085-exec-43] [ExceptionMappingInterceptor] Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

Cause

Deployment has not completed successfully and is in an inconsistent state.

Workaround

  1. Restart Bamboo.
  2. Delete the environment.

Last modified on Dec 20, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.