Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've been trying to remove my solution from Sharepoint 2007 but getting an error on the Central Admin page and when I do

stsadm -o deletesolution -name MySolution.wsp -override

from command line it returns the follwoing error message

"The solution cannot be removed when a job is scheduled or running"

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

The best solution I found was from this link: Removing malfunctioning Windows SharePoint Services solutions. I basically didn't have WSS Administration service running.

  1. Do

    stsadm -o enumsolutions
    
  2. Copy id from the retraction SolutionDeploymentJob

  3. Do

    stsadm -o canceldeployment -id [SolutionDeploymentJob id]
    
  4. Start WSS Administration service and change it to start automatically

  5. Run

    stsadm -o execadmsvcjobs
    
  6. Retract and remove solution from Central Admin as you meant to do it before

share|improve this answer
add comment

Often, deletesolution is preceded by retractsolution. However, as the error message states, retractsolution can take awhile to run even when not scheduled for later execution. To force, retractsolution to run and finish, call execadmsvcjobs before trying other operations.

stsadm -o retractsolution -name MySolution.wsp -immediate
stsadm -o execadmsvcjobs
stsadm -o deletesolution -name MySolution.wsp
share|improve this answer
1  
I tried to retract solution from Central Admin first. That what put the whole system in the error state. The problem was in WSS Administration service being not started (very nooby mistake I believe). But thanks, your answer was very close. –  Oleg Sakharov May 18 '12 at 0:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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