Service stuck after updating puppet on Windows Server 2003

110 views
Skip to first unread message

cko

unread,
May 9, 2014, 9:08:43 AM5/9/14
to puppet...@googlegroups.com
Hi,

I'm using puppet to manage the puppet agent (package, config, service) in my Windows Server 2003 boxes.

Whenever I update the package, the puppet agent service gets stuck  (STOP PENDING).

The report returns:

Fri May 09 12:13:51 +0200 2014 /Stage[main]/puppet_agent::Windows::Service/Service[puppet] (err): Failed to call refresh: Cannot start puppet, error was: Execution of 'C:/WINDOWS/system32/net.exe start puppet' returned 2: The requested service has already been started.
More help is available by typing NET HELPMSG 2182.
Fri May 09 12:13:51 +0200 2014 /Stage[main]/puppet_agent::Windows::Service/Service[puppet] (err): Cannot start puppet, error was: Execution of 'C:/WINDOWS/system32/net.exe start puppet' returned 2: The requested service has already been started.
More help is available by typing NET HELPMSG 2182.

I use the same manifest for Windows Server 2008 nodes without runnning into this problem.

My manifest looks like this:

package { 'Puppet':
   ensure          => "3.5.1",
   source          => "\\\\share\\puppet_agent\\windows\\puppet-3.5.1.msi",
   provider        => windows,
   install_options => { 'INSTALLDIR' => 'C:\puppet' } 
}

file { 'C:\Documents and Settings\All Users\Application Data\PuppetLabs\puppet\etc\puppet.conf':
   content => template("base_puppet_agent/windows/puppet_windows.erb"),                                           
   notify  => Service['puppet'],
   require => Package ['Puppet'],
}

service { 'puppet':
   ensure   => running,
   enable   => true,
   require  => Package['Puppet'],
}


Rob Reynolds

unread,
May 9, 2014, 3:45:35 PM5/9/14
to puppet...@googlegroups.com
This error is somewhat of a misnomer: "The requested service has already been started."

When you say it gets stuck, what do you mean exactly?


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0a9a5b19-b44f-47b2-9749-5bfc38c8404e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 23-24 in San Francisco
Register by May 30th to take advantage of the Early Adopter discount save $349!

cko

unread,
May 10, 2014, 6:22:46 AM5/10/14
to puppet...@googlegroups.com
After the puppet run the agent service is basically stopped.

Although when i run "sc queryex puppet" the output is "STOP_PENDING" (not stopped but not running either).

So i have to run "taskkill /f /pid 1234" and then start the service again.

cko

unread,
May 20, 2014, 7:30:49 AM5/20/14
to puppet...@googlegroups.com
Any idea?

Rob Reynolds

unread,
May 20, 2014, 12:20:45 PM5/20/14
to puppet...@googlegroups.com
Using puppet to manage puppet upgrades to the agent has been an interesting dilemma that sometimes has issues. OpenTable came out with this module: https://forge.puppetlabs.com/opentable/puppetversion to help handle upgrades. On Windows they set a scheduled task to manage the upgrade just after the run is complete.



For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages