Issue #14979 has been reported by Banio Carpenter.
----------------------------------------
Bug #14979: inconsistent server 400 error: undefined method `parent' for
nil:NilClass
https://projects.puppetlabs.com/issues/14979
Author: Banio Carpenter
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
I see this server 400 error intermittently when run as a cron. I'm not able to
reproduce it running puppet manually. I have tried many times to reproduce it
using:
puppetd -t
puppet agent -t
puppet agent --no-daemonize --onetime --verbose
puppetd --no-daemonize --onetime --verbose
The error is:
Could not retrieve catalog from remote server: Error 400 on SERVER: Failed
to parse template admissions/zz_admissions_vhost.conf.erb: undefined method
`parent' for nil:NilClass at
/etc/puppet/modules/admissions/manifests/apache.pp:84 on node nodee.mydomain.com
the relevant part of apache.pp (content is line 84):
file { "/etc/httpd/conf.d/zz_admissions_vhost.conf":
ensure => present,
owner => root,
group => root,
mode => 640,
content => template('admissions/zz_admissions_vhost.conf.erb'),
} ->
the only fact/variable I have in the template
(admissions/zz_admissions_vhost.conf.erb) is this:
ServerName <%= domain %>
Versions:
# puppetd --version
2.7.14
# ruby --version
ruby 1.8.5 (2006-08-25) [i386-linux]
# facter --version
1.6.9
Again I can't reproduce this manually, only happens when run as a cron, and
even then only sometimes--percentage ranges from 10% to 75% depending on the
day. The cron is:
puppet agent --no-daemonize --onetime --verbose
--
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.