Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When I am deleting a space from my confluence it stays at 2% completion for long time not completing

younoos
Contributor
July 21, 2020

When I am deleting a space from my confluence it stays at 2% completion for long time not completing the action. Since I wanted to import the package afresh, need to delete this space.. which I am not able to do. Please kindly help to expedite this delete process or any alternative solution to do for this.

3 answers

2 accepted

1 vote
Answer accepted
younoos
Contributor
July 21, 2020

Hi @Sachin 

Both removing space permission and Purging the Trash is not working for me as it keep rolling.

I need to import a package which has got same space key, that is the reason why i am trying to delete. What is better option to import the package with same space key.

There are couple of file entities.xml and exportDescriptor.properties in which we can modify the space key and can try to import the zip file however the entities.xml file the huge one in this case with around 2.5GB of size and 9.3millions of lines.

Please advise me better option.

Sachin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2020

I don't think there is any other way then editing the entities.xml file @younoos :/ . See How to copy or rename a space in Confluence

  1. Open the space backup file with a zip file editor and find the file entities.xml.
  2. Edit entities.xml in a text editor.
  3. Do 'Search & Replaces' for each of the space key patterns as shown below. Note carefully that letter casing matters here: The placeholder variables OLDKEY/NEWKEYrepresent to keys in UPPER or MIXED-CASE and oldkey/newkey represent keys in all-lowercase.
  4. Also edit the exportDescriptor.properties file in a text editor. Change the spaceKey value in the exportDescriptor.properties file to the new spaceKey
  5. Zip all the files, and import

If you don't need any exiting data on your confluence instance, you can try doing a full site export impot https://confluence.atlassian.com/doc/restoring-a-site-152034.html

younoos
Contributor
July 21, 2020

Hi @Sachin 

Thank you for your help.

The same url i have been referring. Since the entities.xml is huge file of size 2.5GB and contains nearly 9.3 millions of line, need to carefully search and replace as my space key is "BP", not that unique. Anyways thank you so much... 

0 votes
Answer accepted
Sachin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2020

Hello @younoos , do you see any errors in your application logs?. Meanwhile, you can also take a look at some of the workarounds from below articles:

Unable to delete a Confluence space due to "deleted object would be re-saved by cascade" error

Unable to Delete Space

Space Deletion Hangs While Flushing Index Queue

0 votes
younoos
Contributor
July 21, 2020

Hi @Sachin 

Thanks you very much, here are error logs

2020-07-22 11:03:19,260 ERROR [Long running task: Space removal long running task] [persistence.dao.filesystem.HierarchicalMultiStreamAttachmentDataFileSystem] deleteAllAttachmentVersions Could not find attachment folder to remove at [/var/opt/data/atlassian/shared-confluence-home/attachments/ver003/241/206/131956741/224/49/131799474/133435135] for title [page: 2015-09-02 Pension Categorisation Inception (The Smurfs) v.17 (131799474)].
 -- space: 131956741 | url: /spaces/doremovespace.action | traceId: f7663929931873d0 |

Sachin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2020

I have found this post , where someone had a same error as yours, and they tried below steps, which you can give it a try

- Remove all SpacePermissions and purge all in the trash(removed all pages from trash).

- Try deleting the space

Like John Idsinga likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events