Issue #21043 has been updated by Shane Madden.
Thanks Josh!
Verified that there's no whitespace at the end of those lines; also tried
converting from the CRLF line endings I have the Windows `puppet.conf` files in
to LF line endings; no change.
Did some further debugging in `daemon.rb`, looks like I'm getting empty strings
back from every `%x{}`.
log_debug("Using '#{puppet}'")
begin
runinterval = %x{ "#{puppet}" agent --configprint runinterval }.to_i
# added debugging lines:
log_debug( %x{ "#{puppet}" agent --configprint runinterval }.class )
log_debug( %x{ "#{puppet}" agent --configprint runinterval }.length )
log_debug( %x{ cmd /c "echo a" }.class )
log_debug( %x{ cmd /c "echo a" }.length )
Output from that:
2013-06-03 20:07:02 -0600 Puppet (debug): Using 'c:/Program Files
(x86)/Puppet Labs/Puppet/bin/puppet.bat'
2013-06-03 20:07:06 -0600 Puppet (debug): String
2013-06-03 20:07:08 -0600 Puppet (debug): 0
2013-06-03 20:07:08 -0600 Puppet (debug): String
2013-06-03 20:07:08 -0600 Puppet (debug): 0
2013-06-03 20:07:08 -0600 Puppet (err): Failed to determine runinterval,
defaulting to 1800 seconds
Something odd going on in the upgraded version of Ruby, maybe?
----------------------------------------
Bug #21043: runinterval setting in puppet.conf ignored on Windows in Puppet
3.2.1
https://projects.puppetlabs.com/issues/21043#change-92102
* Author: Shane Madden
* Status: Needs More Information
* Priority: Normal
* Assignee:
* Category: agent
* Target version:
* Affected Puppet version: 3.2.1
* Keywords:
* Branch:
----------------------------------------
Windows agents seem to no longer pay attention to `runinterval` as of 3.2.1.
Currently my Windows agents have `runinterval` set in both the `[agent]` and
`[main]` sections as a leftover workaround from #17554 - neither section works.
Commenting out `runinterval` from one section or the other has no effect.
It's returning the configuration correctly using (as far as I can tell) the
same command as `daemon.rb` is using to try to retrieve it:
C:\>"c:/Program Files (x86)/Puppet Labs/Puppet/bin/puppet.bat" agent
--configprint runinterval
600
But `daemon.rb` is somehow getting a `0` as the result to that command:
2013-06-03 16:32:26 -0600 Puppet (notice): Starting service: --debug
2013-06-03 16:32:26 -0600 Puppet (notice): Service running
2013-06-03 16:32:26 -0600 Puppet (debug): Using 'c:/Program Files
(x86)/Puppet Labs/Puppet/bin/puppet.bat'
2013-06-03 16:32:28 -0600 Puppet (err): Failed to determine runinterval,
defaulting to 1800 seconds
2013-06-03 16:32:28 -0600 Puppet (debug): Process created: 3100
2013-06-03 16:32:28 -0600 Puppet (debug): Service waiting for 1800 seconds
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.