Space Deletion Hangs While Flushing Index Queue
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:
The following appears in the atlassian-confluence.log
:
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
- Go to the Confluence administration page and Disable attachment indexing.
- Once it's disabled, try to Rebuild indices from scratch
Try to remove the space again