cancel
Showing results for 
Search instead for 
Did you mean: 

Lock problem while deploying

jakub_hozak
Champ in-the-making
Champ in-the-making
Greetings!

I've got a problem when deploying the WCM project. There is a locked file/node '__localhost deployment report.txt'
which blocks the process. Everytime I try to deploy some content from the staging sandbox to production, only
an error message appears about the locked file and nothing happens. I tried to delete the file, change it's owner or
even delete it via FTP access but everything fails due to lock's presence. I also tried to delete the node's aspects
{http://www.alfresco.org/model/content/1.0}lockOwner and {http://www.alfresco.org/model/content/1.0}lockType in DB
but that caused Alfresco to report 'node doesn't exist' message. Changing the {http://www.alfresco.org/model/content/1.0}lockType
value to NULL didn't work either.

Is there some way to (manually?) release the lock from the file, delete the file, or take any other course
of action that will allow me to re-enable the deployment?

thanks very much  in advance

Jakub
3 REPLIES 3

kvc
Champ in-the-making
Champ in-the-making
Jakub:


We've not seen this before … at least, there's nothing yet filed in JIRA. 

If you are on subscription, can you file a support ticket so that we can get an Engineering to look into?   If not, please do raise the issue in JIRA so that we can track.


Kevin

tommorris
Champ in-the-making
Champ in-the-making
We get this file appearing the rep too.
It doesn't cause us any locking problems though.

kvc
Champ in-the-making
Champ in-the-making
In pre-2.2 release, we maintained only one deployment report for each Staging area, which was overwritten upon each subsequent deployment.

Now, one reason why you may have this locking error is that another user may have concurrently issued a deployment request, and the first deployment
is still concluding and writing back to the deployment report file.  Or, a previous deployment was interrupted writing back to the report file, and it
never released it's lock (on a side note, users can concurrently deploy; one the receiving side, however, all deployment requests stack up and serialize -
necessarily - so that we can guarantee consistent snapshots that corresond with Staging).

This should all go away with 2.2E, however - even in the case of the interrupted deployment.  In 2.2E, we maintained a configurable number of
deployment reports per Staging sandbox; the default is 10,000.  In this case, no deployment should ever attempt to write to the same file - and
so even if there's a lingering lock, that shouldn't be an issue for any subsequent request.

If also means you have some great audit trails.  You can read more on the Deployment page on the wiki.  This 2.2E feature will be rolled into the
next 2.9 Community build.

Kevin