I want to deploy SharePoint solution using stsadm in SharePoint 2010. I used following command: stsadm -o deploysolution -name solutionname.wsp -immediate -url siteurl -force -allowgacdeployment.

using this command solution not deploying. it stuck at "Deploying" Status. When I deploy solution manually from central admin it works fine and deployed successfully.

  • 1
    Check that the Timer Job service is running on at least one server in the farm. Why are you choosing to use stsadm in favor of the PowerShell cmdlets in this case, out of curiousity? – Robert Lindgren Jul 12 '14 at 9:34

I'd also suggest to make sure the timer service is running on every sharepoint server. Restarting the service sometimes helps. Or a less invasive action would be to force job exection running stsadm -o execadmsvcjobs (I don't know if there's a powershell equivalent to that - didn't have any issues with solutions not deploying since 2007).

Also I had situations where an assembly in the GAC was locked by IIS and could therefore not be replaced. Maybe run "net stop/start w3svc" or iisreset.

| improve this answer | |

If you have multiple front-end servers then it must be one of two reasons:

  1. Check if the 14 folder is read only
  2. Check if the SharePoint Administration Service is started on all front-ends

Start Administration Service: here

Sharepoint 14 folder location (This directory is the installation directory for core SharePoint Server files): Program Files\Common files\Microsoft Shared\Web Server Extensions\14

I've had this problem a few days ago and it was the administration services. If it's not on for all front-ends it can't deploy on all, just the once that are on. And in the central administration it stays as "Deploying"

| improve this answer | |
  1. restart Sharepoint Administration Service and then SharePoint timer service in all non-db servers on your farm
  2. if not worked check related stuck in deploying solution in central admin Farm Solutions with below URL and try to cancel deployment and redeploy it


| improve this answer | |
  • it works for me for the 3rd times – Iman Mar 5 '16 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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