Sharepoint Deployment Error: A deployment or retraction is already under way for the solution "abc.wsp" , and only one deployment or retraction at a time is supported

Sometimes this error pops out from SharePoint Services Administration command when the user do retract solution or deploy a solution like the following:

stsadm -o retractsolution -name "%PackageName%" -local -url %TargetWebUrl%
 
or

stsadm -o deploysolution -name "%PackageName%" -local -allowGacDeployment -url %TargetWebUrl%

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

It occurs if anomalies deployment is running for the same package in the back end due to some previous deployment has been crashed before for some reason. Check services and start the "Windows SharePoint Services Administration" service if it's stopped and then run the following command:

stsadm -o execadmsvcjobs

To Fix this problem do the following:

  • Look for the deploy jobId to break the running by the following command: 
    • stsadm-o enumdeployments
  • Cancel the deploy typing the following command:
    • stsadm -o canceldeployment -id "GUID jobId"
  • Check that deploy has been canceled by typing the following command:
    • stsadm -o enumdeployments
Update: SharePoint2010 provides the user interface to cancel any existing deployments which are in a stuck state. Go to Central Admin >> System Settings >> Manage farm solutions >> from here, you can pick the one which is in a stuck state and cancel the deployment. Once done, you can do the deployment of your solution again!.

Related post: SharePoint WSP Solution Deployment Stuck at "Deploying" 

4 comments:

Please Login and comment to get your questions answered!

Powered by Blogger.