These days i have had hard time of retracting a solution to deploy a new version of it.
Although i have tried manually and through stsadm/code the solution retraction never completes and gives the status as retracting forever. i have jotted down some workarounds that might work when Solution deployment hungs while deploying a solution :
- Run execadmsvcjobs that will forcefully run the timer jobs
stsadm -o execadmsvcjobs
- Delete the eixsting timer job for the retraction and retry retracting
From UI central admin -> operations -> Time Job Definitions ->click on timer job and delete. For the timer jobs that do not have the delete option enabled stsadm utility can be used,
stsadm -o deletesptimerjob -title -id
To get the job id for the timer try the following
stsadm -o enumssptimerjobs
- If running out of options then stop retracting and delete the solution using override
stsadm -o execadmsvcjobs
- Delete the eixsting timer job for the retraction and retry retracting
From UI central admin -> operations -> Time Job Definitions ->click on timer job and delete. For the timer jobs that do not have the delete option enabled stsadm utility can be used,
stsadm -o deletesptimerjob -title -id
To get the job id for the timer try the following
stsadm -o enumssptimerjobs
- If running out of options then stop retracting and delete the solution using override
stsadm -o deletesolution -filename -override
Thanks for info...really helped me ...!!!
ReplyDeleteThanks. I had a solution stuck on 'deploying,'and I ran the first command on this post. It fixed it!
ReplyDeleteThat saved a hell problem!
ReplyDeleteMJ, you are a life saver!
ReplyDeleteThank you
MJ, thanks for the post, you saved my day!! I posted my experience on my blog: http://davidandrewsmith.us/2011/06/20/sharepoint-retracting-job-runs-indefinitely/
ReplyDeleteDeleting a solution is not the actual way of fixing this problem. Deleting a solution is leaving the Feature deactivated and the feature folder, as it is.
ReplyDeleteThank you:)
ReplyDelete