I get very neat and clear log to STDIN. But I can't figure out how to
get this log when I start puppetmasterd without --no-daemonize option.
Is it possible?
To STDOUT? You can pass '--logdest console' to override the default,
which is that we log to syslog if you are daemonized, and to the
console if not.
The effect of '--verbose' is independent of where the logs are sent,
though, so you will get the same data to whatever log destination is
configured.
Regards,
Daniel
--
⎋ Puppet Labs Developer – http://puppetlabs.com
✉ Daniel Pittman <dan...@puppetlabs.com>
✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775
♲ Made with 100 percent post-consumer electrons
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
If the error hits you before a connection is made, the puppet master
wouldn't notice there is anything to log.
In such circumstances, I prefer launching an undaemonized master on a
different port and connecting to that from the client's commandline.
What's the error reported by the client?
Regards,
Felix
I don't comprehend at all. Which process do you expect to log an error
each half hour?
If the master is not running, it is only logical that the client cannot
connect and that the master (not running) cannot log an error.
I guess I'm misunderstanding this.
On 01/28/2011 02:07 PM, Romain Pelisse wrote:
> Oh, sorry, actually there is no error. The puppetmaster is not running
> yet. I just wanted to check out a little bit what the log would like
> like. However, I found that strange that if puppet can't connect to the
> puppetmaster, there is no complaint (in a log) about it...
I don't comprehend at all. Which process do you expect to log an error
each half hour?
If the master is not running, it is only logical that the client cannot
connect and that the master (not running) cannot log an error.
I guess I'm misunderstanding this.
No, the clients are supposed to pull.
What client version is this? I've seen 0.24.5 clients crash when the
master went down, and seen 0.25.5 clients end up in a (apparent) sort of
deadlock. No further logging in either scenario.
I haven't tried 2.6 yet.
You're right, though. The expected result would be a client log entry
every half hour.
Cheers,
Felix
What client version is this? I've seen 0.24.5 clients crash when the
master went down, and seen 0.25.5 clients end up in a (apparent) sort of
deadlock. No further logging in either scenario.
I haven't tried 2.6 yet.
0.25.5, lastest available for Fedora (well, actually I'm running with
CentOS with RPM from Fedora)
# puppetd --version
0.25.5 You're right, though. The expected result would be a client log entry
every half hour.
Ok, this is confirmation is actually really helpful (I now know
something is wrong and I know my premise not).
--
Romain PELISSE,
"The trouble with having an open mind, of course, is that people will
insist on coming along and trying to put things in it" -- Terry
Pratchett
http://belaran.eu/wordpress/belaran
--
Romain PELISSE,
*"The trouble with having an open mind, of course, is that people will
insist on coming along and trying to put things in it" -- Terry Pratchett*
http://belaran.eu/wordpress/belaran
On Jan 28, 2011 7:56 AM, "Romain Pelisse" <bel...@gmail.com> wrote:
>
> Ok, I found why : messages are going to /var/log/messages, not the /var/log/puppet folders...
Oh, good. Y'all found the reason. Pupput pretty uniformly defaults our logs to the console in interactive runs, and syslog if we daemonize.
You can change that, including the syslog facility, or to use a file, on the command line or equivalently (because all options work that way) in the config files.
Regards,
Daniel
--
Puppet Labs Developer –http://puppetlabs.com
Daniel Pittman <dan...@puppetlabs.com>
Contact me via gtalk, email, or phone: +1 (877) 575-9775
Sent from a mobile device. Please forgive me if this is briefer than usual.