Issue #14710 has been updated by Brent Hensarling.

Yes, we are running the cronjob as root.  Here is the output of 
/etc/puppet/puppet.conf:


[main]
        # The Puppet log directory.
        # The default value is '$vardir/log'.
        logdir = /var/log/puppet

        # Where Puppet PID files are kept.
        # The default value is '$vardir/run'.
        rundir = /var/run/puppet
        factpath = $vardir/lib/puppet/facter

        # Where SSL certificates are kept.
        # The default value is '$confdir/ssl'.
        ssldir = $vardir/ssl
        pluginsync = true

[agent]
        # The file in which puppetd stores a list of the classes
        # associated with the retrieved configuratiion.  Can be loaded in
        # the separate ``puppet`` executable using the ``--loadclasses``
        # option.
        # The default value is '$confdir/classes.txt'.
        classfile = $vardir/classes.txt

        # Where puppetd caches the local configuration.  An
        # extension indicating the cache format is added automatically.
        # The default value is '$confdir/localconfig'.
        localconfig = $vardir/localconfig

[master]
        dbname = puppet_prod_new
        dbuser = puppet
        dbconnections = 0
        dbadapter = mysql
        dbserver = sv-tools01.luma-pictures.com
        dbpassword = p_pp_t
        # added for dashboard
        # storeconfigs = true
        storeconfigs = false
        #reports = http, store, log
        reports = http, log
        # added for passenger/httpd
        ssl_client_header = SSL_CLIENT_S_DN
        ssl_client_verify_header = SSL_CLIENT_VERIFY

[dev]
        manifest = /etc/puppet/dev/manifests/site.pp
        modulepath = /etc/puppet/dev/modules



Cheers,
JP
----------------------------------------
Bug #14710: Facter outputs an error when a script that runs "facter -p" is 
launched via Cron.
https://projects.puppetlabs.com/issues/14710#change-64133

Author: Brent Hensarling
Status: Needs More Information
Priority: Normal
Assignee: Brent Hensarling
Category: 
Target version: 
Keywords: 
Branch: 
Affected Facter version: 1.6.6


Hello,

I have noticed that our puppetmaster outputs a strange error when it tries to 
run a BASH script via Cron that runs "facter -p" within the script.  Here is 
the error that Cron sends to us via email:

Cron Daemon [email protected]
/var/lib/puppet/lib/puppet/facter: Is a directory - 
/var/lib/puppet/lib/puppet/facter (Errno::EISDIR)
       from /usr/bin/facter:19:in `load'
       from /usr/bin/facter:19
/var/lib/puppet/lib/puppet/facter: Is a directory - 
/var/lib/puppet/lib/puppet/facter (Errno::EISDIR)
       from /usr/bin/facter:19:in `load'
       from /usr/bin/facter:19

I have attached 2 examples of scripts that generate this issue.  Our 
puppetmaster has Facter 1.6.6 and Puppet 2.7.9 installed.  O/S is CentOS 5.5.  
Google searches didn't reveal much information about the  problem.  The only 
threads I found that even referenced the same error output can be found here:

http://www.puppetlogs.com/puppet/%23puppet-2011-06-27.log.html
http://groups.google.com/group/puppet-users/browse_thread/thread/7a1b95adca7c17af/2cceda3ad28422ae

It should be noted that running "facter -p" on the machine via the command line 
produces no issues at all.  Nor do any errors occur when running the script 
from the command line as well.  We only see this issue when the attached 
scripts are launched via Cron.

Can you please advise if this is a possible bug in Facter, or if it's something 
we're doing wrong on our end.  Let me know if you need any further debugging 
information from me

Thanks!
JP Baysari
Luma Pictures


-- 
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to