1. Knowledge Base
  2. On-premises Add-ons

WSP files are stuck in "Deploying"/"Retracting" status

Please follow this article if the WSP files are stuck in "Deploying"/"Retracting" status in SharePoint On Premises

The reason for WSP files getting stuck in "Deploying" or "Retracting" status without any progress could be the SharePoint Admin service or SharePoint timer service being inactive. Especially this is common in farms with multiple servers, as the services may not be running on all servers in the farm. This behavior will impact all custom solutions, not just KWIZ solutions.

  

To address this problem, you may want to consider the following steps:

1. Cancel the Deployment/Retraction for the solutions.

   

       

 

2. Check if your SharePoint Admin service and SharePoint timer service is running on each of
    web front end servers. 

3. Restart the SharePoint timer service on each web front end server 

4. Try redeploying the WSP solution again to see if they will deploy/retract successfully this time.

If the problem continues, you can perform the deployment or retraction manually using PowerShell with the following commands:

To deploy the solution, use the "Install-SPSolution" command with the "Local" and "Force" parameters. You will need to execute this command for each solution on every web front-end server. 

-Install-SPSolution -Identity solution_name.wsp -GACDeployment -local -force 

Additional information on how to use this PowerShell command can be found in the link below: 

Install-SPSolution

To retract the solution, use the "Uninstall-SPSolution" command with the "Local" and "Force" parameters. You will need to execute this command for each solution on every web front-end server.

Uninstall-SPSolution -Identity contoso_solution.wsp -local -force 

Additional information on how to use this PowerShell command can be found in the link below:

Uninstall-SPSolution

After manually deploying or retracting the solutions using PowerShell, you can remove them from the central administration.

However, if the issue persists, it could be related to a problem with your SharePoint farm, rather than the solutions themselves. Here are some additional resources online that you may find helpful in addressing issues related to deploying or retracting solutions in SharePoint:

SHAREPOINT SOLUTIONS - STUCK ON RETRACTING OR DEPLOYING