Issue #3101 has been updated by martin krafft.
File trace.gz added
Status changed from Closed to Re-opened
Affected version changed from 0.25.4rc2 to 0.25.4
Just need to chime in: I am trying to set up puppetmaster&puppet on my laptop
for easy offline hacking, and I am running into the same problem, in addition
to two other weird errors that seem related (+trace attached):
# puppetd --no-daemonize --onetime --verbose
err: Could not retrieve catalog from remote server: undefined method
`closed?' for nil:NilClass
notice: Using cached catalog
info: Applying configuration version '1268237961'
err: //puppet/File[/etc/default/puppet]: Failed to retrieve current state
of resource: undefined method `closed?' for nil:NilClass Could not retrieve
file metadata for puppet:///modules/puppet/etc_default_puppet: undefined method
`closed?' for nil:NilClass at /etc/puppet/modules/puppet/manifests/init.pp:75
err: //puppet::server/File[/etc/puppet/auth.conf]: Failed to retrieve
current state of resource: undefined method `closed?' for nil:NilClass Could
not retrieve file metadata for puppet:///modules/puppet/auth.conf: undefined
method `closed?' for nil:NilClass at
/etc/puppet/modules/puppet/manifests/server.pp:75
notice: //puppet/Service[puppet]: Dependency file[/etc/default/puppet] has
1 failures
warning: //puppet/Service[puppet]: Skipping because of failed dependencies
notice: Finished catalog run in 0.63 seconds
The configuration is identical to what's running on puppetmaster.madduck.net,
where everything is working fine.
I specifically configured DNS to make everything work backwards and forwards:
% facter fqdn
lapse.rw.madduck.net
% dig @localhost +short a lapse.rw.madduck.net
127.0.0.1
% dig @localhost +short -x 127.0.0.1
lapse.rw.madduck.net.
localhost.
% dig @localhost +short a localhost
127.0.0.1
Therefore, DNS cannot be the real cause of this problem, right?
PS: the WYSIWIG markup editor is useless and doesn't let me do pre-formatted
text. Sorry about that.
----------------------------------------
Bug #3101: Unhelpful message "undefined method `closed?' for nil:NilClass" when
DNS misconfigured
http://projects.reductivelabs.com/issues/3101
Author: Derek Lewis
Status: Re-opened
Priority: Normal
Assigned to: Derek Lewis
Category: error reporting
Target version: 0.25.5
Affected version: 0.25.4
Keywords:
Branch:
Getting the following trace from puppetd:
debug: Using cached certificate_revocation_list for ca, good until
debug: catalog supports formats: b64_zlib_yaml marshal pson raw yaml; using pson
/opt/chsfw/lib/ruby/1.8/net/http.rb:1060:in `request'
/opt/chsfw/lib/ruby/1.8/net/http.rb:772:in `get'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:69:in `find'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:195:in `find'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/configurer.rb:106:in `retrieve_catalog'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/util.rb:418:in `thinmark'
/opt/chsfw/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/util.rb:417:in `thinmark'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/configurer.rb:105:in `retrieve_catalog'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/configurer.rb:158:in `run'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run'
/opt/chsfw/lib/ruby/1.8/sync.rb:230:in `synchronize'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/agent.rb:53:in `run'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/agent.rb:130:in `with_client'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/agent.rb:51:in `run'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/application/puppetd.rb:103:in `onetime'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/opt/chsfw/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/opt/chsfw/sbin/puppetd:159
err: Could not retrieve catalog from remote server: undefined method `closed?'
for nil:NilClass
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
Debug output from puppetmasterd:
[r...@vulcan classes]# puppetmasterd --debug --no-daemonize
debug: Failed to load library 'selinux' for feature 'selinux'
debug: Failed to load library 'shadow' for feature 'libshadow'
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does
not exist
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist
debug: Failed to load library 'ldap' for feature 'ldap'
debug: /File[/var/puppet/state]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/lib]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/facts]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/var/puppet/log]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring
File[/etc/puppet/ssl/certs]
debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring
File[/etc/puppet/ssl]
debug: /File[/etc/puppet/manifests/site.pp]: Autorequiring
File[/etc/puppet/manifests]
debug: /File[/var/puppet/yaml]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/manifests]: Autorequiring File[/etc/puppet]
debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/var/puppet/run]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/bucket]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/private_keys/vulcan.solnetworks.net.pem]:
Autorequiring File[/etc/puppet/ssl/private_keys]
debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/var/puppet/rrd]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/certs/vulcan.solnetworks.net.pem]: Autorequiring
File[/etc/puppet/ssl/certs]
debug: /File[/etc/puppet/ssl/public_keys/vulcan.solnetworks.net.pem]:
Autorequiring File[/etc/puppet/ssl/public_keys]
debug: /File[/var/puppet/reports]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet]
debug: /File[/var/puppet/log/masterhttp.log]: Autorequiring
File[/var/puppet/log]
debug: Finishing transaction -614092538 with 0 changes
debug: /File[/etc/puppet/ssl/ca/private/ca.pass]: Autorequiring
File[/etc/puppet/ssl/ca/private]
debug: /File[/etc/puppet/ssl/ca/ca_crl.pem]: Autorequiring
File[/etc/puppet/ssl/ca]
debug: /File[/etc/puppet/ssl/ca/ca_crt.pem]: Autorequiring
File[/etc/puppet/ssl/ca]
debug: /File[/etc/puppet/ssl/ca/private]: Autorequiring File[/etc/puppet/ssl/ca]
debug: /File[/etc/puppet/ssl/ca/serial]: Autorequiring File[/etc/puppet/ssl/ca]
debug: /File[/etc/puppet/ssl/ca/requests]: Autorequiring
File[/etc/puppet/ssl/ca]
debug: /File[/etc/puppet/ssl/ca/inventory.txt]: Autorequiring
File[/etc/puppet/ssl/ca]
debug: /File[/etc/puppet/ssl/ca/ca_pub.pem]: Autorequiring
File[/etc/puppet/ssl/ca]
debug: /File[/etc/puppet/ssl/ca/ca_key.pem]: Autorequiring
File[/etc/puppet/ssl/ca]
debug: /File[/etc/puppet/ssl/ca/signed]: Autorequiring File[/etc/puppet/ssl/ca]
debug: Finishing transaction -614333248 with 0 changes
debug: Using cached certificate for ca, good until Wed Jan 21 23:08:42 UTC 2015
debug: Using cached certificate for ca, good until Wed Jan 21 23:08:42 UTC 2015
debug: Using cached certificate for vulcan.solnetworks.net, good until Wed Jan
21 23:08:42 UTC 2015
notice: Starting Puppet server version 0.25.4
debug: No file server configuration file; autocreating modules mount with
default permissions
debug: No file server configuration file; autocreating plugins mount with
default permissions
debug: Creating interpreter
debug: Finishing transaction -615169438 with 0 changes
debug: Finishing transaction -615171408 with 0 changes
--
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://reductivelabs.com/redmine/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.