SharePoint deploy timer job stuck “Deploying”

A developer on our team was trying to upgrade his solution and asked for my help since the job was showing "Deploying" and he was receiving an error when trying to execute the upgradesolution stsadm command. The error he received was:

Sharepoint Service Error: A deployment or retraction is already under way for the solution “solutionname.wsp”, and only one deployment or retraction at a time is supported

I was able to resolve the issue by running the stsadm -o enumdeployments.

This gave me a listing of all deployments that were pending on the server. There were a few and it turned out a failed deployment from another developer was blocking this new deployment.

The enumdeployments output gives you the GUID ID for each pending job. I captured each ID and then ran the following command to clear the jobs:

stsadm -o canceldeployment -id <ID>

Once complete, verified that no jobs remained by rerunning enumdeployments command. After that, the original solution upgrade could be completed.

Final note is that if this issue arises, it is not a good practice to repeatedly try stsadm -o execadmsvcjobs. Sometimes this command is run to force a timer job to run when a -immediate is done on a deployment. If you don’t want to wait for the timer, use -local and deploy to each SharePoint farm box individually. The execadmsvcjobs can have unintended consequences.

Our Nation’s Capital Goes Green, Did Anyone Notice?

So at least our nation’s law makers are giving it a go….

Nancy Pelosi swept into the speakership in 2007 with an ambitious plan to reduce House energy consumption by 50 percent in 10 years. At the time, the House alone was responsible for producing 91,000 tons of greenhouse gases, an output equivalent to the emissions from 17,200 cars. Now, sugarcane plates and cornstarch cups have replaced Styrofoam and plastic in congressional cafeterias, waste is composted, and the food is often local and organic. Four hybrids have been introduced into the Capitol fleet, energy-saving vending machines have been installed, and the Capitol and House office buildings draw part of their electricity from wind power.

Well, some of them have… Senators Robert Byrd (D-W.Va.) and Mitch McConnell (R-Ky.), both from major coal-producing states, have blocked any effort of changing the fuel source of the Capitol Power Plant, DC’s only coal plant and a serial violator of the Clean Air Act.