Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I started some solutions deployment with batch file and one of them was hanging. So I stopped the script and tried to retract that one solution to deploy it once again

stsadm -o retractsolution -name solutionname.wsp -immediate -allcontenturls

This gives me error message:

A deployment or retraction is already under way for the solution "solutionname.wsp", and only one deployment or retraction at a time is supported.

I tried to stop it with iisreset and by going to Services and restarting SharePoint 2010 Timer service. That didn't help.

How to stop previous solution deployment, so I can try again?

share|improve this question
add comment

1 Answer 1

up vote 6 down vote accepted

There is a stsadm -o canceldeployment -id <id>

To get the ID you have to use stsadm -o enumdeployments

Just be sure that your Timer Job is running.

share|improve this answer
5  
stsadm -o execadmsvcjobs to process current deployments could also help. –  Janis Veinbergs May 14 '12 at 9:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.