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.
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.
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
entities.xml
.entities.xml
in a text editor.exportDescriptor.properties
file in a text editor. Change the spaceKey value in the exportDescriptor.properties
file to the new spaceKeyIf 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.