Wednesday, February 2, 2011

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

Sometime this error pops out from SharePoint Services Administration command when the user do retractsolution or deploysolution 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 avoid this problem do the followings:

  • 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 is in stuck state. Go to Central Admin >> System Settings >> Manage farm solutions >> from here, you can pick the one which is in 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" 



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

3 comments :

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...