cancel
Showing results for 
Search instead for 
Did you mean: 

tip - problem deleting space may be due to editing lock

nadaoneal
Champ in-the-making
Champ in-the-making
This is a tip for anyone who might be Googling this issue. Hope this helps somebody.

A user was getting an error when trying to delete a site on Community version 3.3g - a demure "Could not delete site". The log sometimes but not consistently displayed an error message like this…

12:05:49,178 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 05220014 Wrapped Exception (with status template): 05221166 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/site.delete.js': 05221165 Can not perform operation since the node (id:72b47a12-4975-478b-b94c-d6b8efe8d3f6) is locked.
org.springframework.extensions.webscripts.WebScriptException: 05220014 Wrapped Exception (with status template): 05221166 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/site.delete.js': 05221165 Can not perform operation since the node (id:72b47a12-4975-478b-b94c-d6b8efe8d3f6) is locked.
[ … ]

My confusion was that I thought this was a lock on the site itself - it's actually a lock on the document within the site.

I finally figured out how to use the "node browser" in the Alfresco app (it's under the admin control panel check out your-site.com/alfresco/faces/jsp/admin/node-browser.jsp), and eventually guessed to search for:

workspace://SpacesStore/72b47a12-4975-478b-b94c-d6b8efe8d3f6

using "noderef" as the dropdown. This turned up a page that included, among other things, the title of the document that was locked for editing. As an admin, I was able in the Share interface to take the editing lock off the document, and then any manager of the site was able to delete the site.

If you happen to know a less circuitous way to figure out which particular document is locked for editing, preventing the deletion of the site, please post! Future searchers will thank you.
1 REPLY 1

nancyg
Champ in-the-making
Champ in-the-making
thanks so much for taking the time to post this tip!