Wednesday, March 11, 2009

Deployment stuck at retracting message

Scenario:
I added and deployed a solution to my farm and when I tried retracting it, its stuck and continue to show Retracting message.

Solution:
There is no perfect solution to it but there are couple of things you need to try.

Usually this problem is not with your solution but with any specific server in a multi-server farm. So before you open ticket with Microsoft, make sure you see the same behaviour for your solution on another machine.

Check few things:
1. Go to Central Administration
2. Navigate to Operations > "Global Configuration" > "Timer job status".
3. Look for Jobs name starting with either "Windows SharePoint Services Solution Retraction for "

There will be one entry for each of the front-end servers that the solution is being deployed to or retracted from. Usually one of the entries will say failed and the others will say succeeded so you can use this to help figure out which front-end is causing the problems.

Options:
1. If you are trying to retract the solution Globally , try retracting one by one from each web-application

2. If you are trying to deploying the solution using UI try command line STSADM or vise versa.

3. Try running following STSADM command.
STSADM -o execadmsvcjobs ( On all the servers )

4. If it is getting stuck only on a particular Web Application ( more commonly on Central Web Application ), then try Deploying it first on another Web Application and then retract from Web Application which had issue.

5. Restart the machine and try one more time.

6. Also if it is multi-server farm, try deploying from other machine.

Article:
STADM Commands

2 comments:

Simon Wosko March 12, 2010 at 1:44 PM  

Thanks! I was using the SharePoint installer from codeplex and it kept hanging on retracting the solution. Open #3 worked for me.

Bob C January 18, 2011 at 12:11 PM  

Yes, on all WFE servers... Of course. Thanks!