Space Deletion Hangs While Flushing Index Queue

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Unable to remove a Confluence space, and the process stalls without any progress after a period of time. The message displayed in the process is bar is "Flushing index queue before space removal", as seen in the attachment below:

(Auto-migrated image: description temporarily unavailable)

The following appears in the atlassian-confluence.log:

1 2 3 4 5 2014-08-17 15:30:33,567 ERROR [Long running task: Space removal long running task] [officeconnector.index.excel.ExcelXMLTextExtractor] endDocument expected [ 201 ] entries but read [ 205 ] -- space: 40402945 | url: /confluence/spaces/doremovespace.action | userName: admin | referer: http://localhost:8090/confluence/spaces/removespace.action?key=~test | action: doremovespace 2014-08-17 15:30:45,509 WARN [Long running task: Space removal long running task] [bonnie.search.extractor.BaseAttachmentContentExtractor] addFields Error indexing attachment (Attachment: test.xls v.1 (1920998888) admin) -- space: 40402945 | url: /confluence/spaces/doremovespace.action | userName: admin | referer: http://localhost:8090/confluence/spaces/removespace.action?key=~test | action: doremovespace com.atlassian.bonnie.search.extractor.ExtractorException: Error reading content of Excel document: Invalid header signature; read 0x6D78206C6D74683C, expected 0xE11AB1A1E011CFD0

Cause

The cause of the issue is due to a bug in Confluence attachment indexing logged here: CONFSERVER-23376 - Mixed formatting in single cell in Excel document causes Confluence indexing errors.

Resolution

  1. Go to the Confluence administration page and Disable attachment indexing.

  2. Once it's disabled, try to Rebuild indices from scratch

  3. Try to remove the space again

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.