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? On Fri, May 9, 2014 at 8:08 AM, cko <[email protected]> wrote: > 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'],* > *}* > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/0a9a5b19-b44f-47b2-9749-5bfc38c8404e%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/0a9a5b19-b44f-47b2-9749-5bfc38c8404e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2014 <http://puppetconf.com>**, September 23-24 in San Francisco* *Register by May 30th to take advantage of the Early Adopter discount <http://links.puppetlabs.com/puppetconf-early-adopter> **--**save $349!* -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4aDGt5VDAbvLzK%2BwvhuJE2iuZ95EaqD9sDidmmEAwkVA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
