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.

When i deploy anything to a variety of sharepoint servers i get problems with some packages failing, from what i can see the only error given is as below.

The timer job for this operation has been created, but it will fail because the
administrative service for this server is not enabled. If the timer job is sched
uled to run at a later time, you can run the jobs all at once using stsadm.exe -
o execadmsvcjobs. To avoid this problem in the future, enable the Windows ShareP
oint Services administrative service, or run your operation through the STSADM.e
xe command line utility.

Is this a known problem? I googled for the text but got only one other person with the problem who simply worked round it. I'm trying to batch deploy solutions programmatically and so these errors render the whole code worthless if you have to go back and redo bits by hand afterwards.

Is batch deployment simply not possible?

Thanks!

share|improve this question

migrated from stackoverflow.com Jan 7 '10 at 9:12

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

Batch deployment is possible

@echo off
for %%f in (*.wsp) do (
    echo File %%f
    "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o addsolution -filename "%%f"
    "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o deploysolution -name "%%f" -allowgacdeployment -immediate -force
)

"%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o copyappbincontent
"%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o execadmsvcjobs
iisreset.exe

As you can see in error message, use stsadm -o execadmsvcjobs. And also check IIS if all application pools and web sites are running.

share|improve this answer
    
i've tried running execadmsvcjobs between each job even just to see if it cures it, im using c# and the object model but the theory is the same surely? –  Nathan Jan 7 '10 at 9:03
    
I've seen the comment ... "Also, in order to stop getting this service related errors, go to the services managment snapin and enable this service: 'Windows SharePoint Services Administration service'" –  SteveC Dec 30 '10 at 11:41
add comment

Your Answer

 
discard

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