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 the SharePoint Services Administration command when the user does retract a 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 “xyz.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 deployment by 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”
Thanks alot
Thanks
Thanks
Thanks, the command “stsadm -o execadmsvcjobs” fixed my issue.