Bug #3083
Failed to retrieve current state of resource: undefined method `closed?' for nil:NilClass
| Status: | Closed | Start: | 01/17/2010 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | 0.25.5 | |||
| Affected version: | 0.25.4rc1 | Branch: | http://github.com/MarkusQ/puppet/tree/ticket/0.25.x/3083 | |
| Keywords: | undefined method `closed?' for nil:NilClass,
Could not retrieve file metadata |
|||
| Votes: | 1 |
Description
After upgrade from 0.24.8 to 0.25.x clients begun to log error:
Failed to retrieve current state of resource: undefined method `closed?' for nil:NilClass Could not retrieve file metadata for puppet:///aliases/default/aliases: undefined method `closed?' for nil:NilClass at /usr/local/etc/puppet/modules/aliases/manifests/init.pp:18
The error appears only on resources having sourced with multiple destinations (line counters preserved):
8 class aliases { 9 10 file { “/etc/mail/aliases”: 11 ensure => file, 12 notify => Exec[“newaliases”], 13 owner => “root”, 14 group => “mail”, 15 mode => 0440, 16 source => [ “puppet:///aliases/${fqdn}/aliases”, 17 “puppet:///aliases/default/aliases” ]; 18 } 19 20 exec { “newaliases”: 21 require => File[“/etc/mail/aliases”], 22 refreshonly => true, 23 command => “/usr/bin/newaliases”; 24 } 25 }
Those errors appears randomly through all classes with similar resources within node definition:
The client log:
Jan 17 14:11:30 net-mgmt-1 puppetd[80881]: Starting Puppet client version 0.25.2 Jan 17 14:11:46 net-mgmt-1 puppetd[80881]: Finished catalog run in 9.70 seconds Jan 17 14:12:58 net-mgmt-1 puppetd[80881]: Finished catalog run in 10.35 seconds Jan 17 14:14:10 net-mgmt-1 puppetd[80881]: Finished catalog run in 10.50 seconds Jan 17 14:15:12 net-mgmt-1 puppetd[80881]: (//sysctl/File[/etc/sysctl.conf]) Failed to retrieve current state of resource: undefined method `closed?' for nil:NilClass Could not retrieve file metadata for puppet:///sysctl/default/sysctl.conf: undefined method `closed?' for nil:NilClass at /usr/local/etc/puppet/modules/sysctl/manifests/init.pp:17 Jan 17 14:15:12 net-mgmt-1 puppetd[80881]: (//sysctl/Exec[sysctl apply]) Dependency file[/etc/sysctl.conf] has 1 failures Jan 17 14:15:12 net-mgmt-1 puppetd[80881]: (//sysctl/Exec[sysctl apply]) Skipping because of failed dependencies Jan 17 14:15:22 net-mgmt-1 puppetd[80881]: Finished catalog run in 10.33 seconds Jan 17 14:16:26 net-mgmt-1 puppetd[80881]: (//ntpdate/File[/etc/rc.conf.d/ntpdate]) Failed to retrieve current state of resource: undefined method `closed?' for nil:NilClass Could not retrieve file metadata for puppet:///ntpdate/default/ntpdate.rc: undefined method `closed?' for nil:NilClass at /usr/local/etc/puppet/modules/ntpdate/manifests/init.pp:16 Jan 17 14:16:34 net-mgmt-1 puppetd[80881]: Finished catalog run in 10.39 seconds
The master node log:
Jan 17 14:11:35 puppet-1 puppetmasterd[79612]: Compiled catalog for net-mgmt-1.renatasystems.org in 0.19 seconds Jan 17 14:12:46 puppet-1 puppetmasterd[79612]: Compiled catalog for net-mgmt-1.renatasystems.org in 0.15 seconds Jan 17 14:13:58 puppet-1 puppetmasterd[79612]: Compiled catalog for net-mgmt-1.renatasystems.org in 0.19 seconds Jan 17 14:15:11 puppet-1 puppetmasterd[79612]: Compiled catalog for net-mgmt-1.renatasystems.org in 0.19 seconds Jan 17 14:16:23 puppet-1 puppetmasterd[79612]: Compiled catalog for net-mgmt-1.renatasystems.org in 0.14 seconds Jan 17 14:17:35 puppet-1 puppetmasterd[79612]: Compiled catalog for net-mgmt-1.renatasystems.org in 0.19 seconds
As it can seen – sometimes catalog finished without errors, sometimes it fails on sysctl module, sometimes not but fails on another (“ntpdate”) module and so on.. The tracebacks from client and master nodes attached.
I’ve tried up to 0.25.4rc1 versions on both master and client nodes, no effect, the same error exists.
Related issues
| related to Puppet - Bug #3019: Failed to generate resources / Could not retieve file met... | Needs more information | 01/08/2010 | ||
| duplicates Puppet - Bug #3101: Unhelpful message "undefined method `closed?' for nil:Nil... | Closed | 01/23/2010 | ||
| duplicated by Puppet - Bug #3041: undefined method `name=' for #<Puppet::FileServing::Conte... | Closed | 01/12/2010 |
History
Updated by Alexey Degtyarev 8 months ago
Forgot to mention the details:
net-mgmt-1# ruby --version ruby 1.8.7 (2009-12-24 patchlevel 248) [amd64-freebsd8] net-mgmt-1# puppetd --version 0.25.2 net-mgmt-1# uname -mrsi FreeBSD 8.0-RELEASE-p2 amd64 GENERIC
Both master and client has the same configuration.
Updated by Alexey Degtyarev 8 months ago
If I downgrade the client to 0.24.8 – no messages appears in the logs and catalog always finished OK, so I assume the problem is on the client side.
Updated by James Turnbull 8 months ago
- Status changed from Unreviewed to Investigating
- Assignee set to Markus Roberts
Markus – assigned to you for comment – feel free to sling at someone else.
Updated by Markus Roberts 7 months ago
- Target version set to 0.25.4
Updated by Markus Roberts 7 months ago
- Status changed from Investigating to Needs more information
- Assignee changed from Markus Roberts to Alexey Degtyarev
- Branch set to http://github.com/MarkusQ/puppet/tree/ticket/0.25.x/3083
Alexey —
I have been unable to reproduce this and the —trace output does not provide sufficient detail to locate the cause. Could you try again with the attached branch, which will produce additional information when run with —trace, and attach the output?
Thanks, —Markus
Updated by Markus Roberts 7 months ago
- Status changed from Needs more information to Duplicate
Updated by Markus Roberts 7 months ago
- Status changed from Duplicate to Needs more information
Alexey —
3101 turned out to be a DNS problem, though the message is far from helpful in determining that (see that ticket for details). Can you determine if there may be an analogous problem in your case?
— Markus
Updated by Alexey Degtyarev 7 months ago
Markus,
I think no, it is not the DNS related problem in my case. At least for that reasons:
the debug trace in my case starts from Puppet related sources: “puppet/parameter.rb:401:in fail'", but in #3101 it starts from Ruby related "net/http.rb:1060:inrequest'”.
if I downgrade the puppet client from 0.25.x to 0.24.8 the problem went away.
the problem exists on all my puppet 0.25.x clients, located on a different datacenters and so using different DNS resolvers, which I can’t consider to be problem.
no other application reports about DNS related problems for a years.
Today I will create an output with the branch you provided. Also, I can give you shell access to one of the boxes if you want to see it much closer.
Updated by Markus Roberts 7 months ago
- Status changed from Needs more information to Investigating
Updated by James Turnbull 7 months ago
- Target version changed from 0.25.4 to 0.25.5
Updated by Markus Roberts 7 months ago
- Status changed from Investigating to Closed
Updated by Alexey Degtyarev 7 months ago
- Status changed from Closed to Re-opened
Sorry for a delay, right now I have not enough time.. But I’ll try.
Markus, tell me please, am I correct in what I should do:
git clone git://github.com/MarkusQ/puppet.git cd puppet ruby install.rb
this installs binaries and other suite.. Correct? If so, here is the output:
# puppetd --version
0.25.0
# /usr/local/sbin/puppetd --trace --no-daemonize --debug --verbose
debug: Failed to load library 'ldap' for feature 'ldap'
debug: Failed to load library 'shadow' for feature 'libshadow'
debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet]
debug: /File[/var/puppet/state/classes.txt]: Autorequiring File[/var/puppet/state]
debug: /File[/etc/puppet/ssl/private_keys/puppet.renatasystems.org.pem]: Autorequiring File[/etc/puppet/ssl/private_keys]
debug: /File[/var/puppet/state/graphs]: Autorequiring File[/var/puppet/state]
debug: /File[/var/puppet/facts]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/public_keys/puppet.renatasystems.org.pem]: Autorequiring File[/etc/puppet/ssl/public_keys]
debug: /File[/var/puppet/run]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/lib]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/state/state.yaml]: Autorequiring File[/var/puppet/state]
debug: /File[/var/puppet/log]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/client_yaml]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/var/puppet/clientbucket]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/state]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/puppet/ssl]
debug: Finishing transaction 452885940 with 0 changes
/usr/local/lib/ruby/1.8/net/http.rb:1060:in `request': undefined method `closed?' for nil:NilClass (NoMethodError)
from /usr/local/lib/ruby/1.8/net/http.rb:772:in `get'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:67:in `find'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:198:in `find'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:174:in `certificate'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:238:in `wait_for_cert'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/application/puppetd.rb:243:in `run_setup'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:216:in `run'
from /usr/local/sbin/puppetd:159
Please note, if I downgrade the client to 0.24.8 just before that – everything goes fine:
Feb 1 21:25:51 puppet puppetd[31563]: Reopening log files Feb 1 21:25:51 puppet puppetd[31563]: Starting Puppet client version 0.24.8 Feb 1 21:25:54 puppet puppetd[31563]: Starting catalog run Feb 1 21:26:02 puppet puppetd[31563]: Finished catalog run in 7.57 seconds
Updated by James Turnbull 7 months ago
Before you cloned Markus' repo did you delete all traces of Puppet from your host? i.e. ensured all old puppet files deleted?
Updated by Alexey Degtyarev 7 months ago
OK, to be sure, I delete now all puppet libs and run dirs (except certs in /etc/puppet/ssl):
# pkg_delete -f puppet-0.24.8 # rm -r /usr/local/lib/ruby/site_ruby/1.8/puppet # rm -r /var/puppet /var/run/puppet # cd puppet/ # ruby install.rb install -c -m 0755 ./_tmp /usr/local/sbin/puppetca install -c -m 0755 ./_tmp /usr/local/sbin/puppetd install -c -m 0755 ./_tmp /usr/local/sbin/puppetmasterd install -c -m 0755 ./_tmp /usr/local/sbin/puppetqd ... # find /etc/puppet/ssl/ /etc/puppet/ssl/ /etc/puppet/ssl/certs /etc/puppet/ssl/private /etc/puppet/ssl/certificate_requests /etc/puppet/ssl/public_keys /etc/puppet/ssl/public_keys/puppet.renatasystems.org.pem /etc/puppet/ssl/private_keys /etc/puppet/ssl/private_keys/puppet.renatasystems.org.pem
The trace:
# /usr/local/sbin/puppetd --trace --no-daemonize --debug --verbose
debug: Failed to load library 'ldap' for feature 'ldap'
debug: Failed to load library 'shadow' for feature 'libshadow'
debug: /File[/var/puppet/facts]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/public_keys/puppet.renatasystems.org.pem]: Autorequiring File[/etc/puppet/ssl/public_keys]
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/public_keys]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/var/puppet/run]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/var/puppet/state/graphs]: Autorequiring File[/var/puppet/state]
debug: /File[/var/puppet/clientbucket]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet]
debug: /File[/var/puppet/lib]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/private_keys/puppet.renatasystems.org.pem]: Autorequiring File[/etc/puppet/ssl/private_keys]
debug: /File[/var/puppet/client_yaml]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/state]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet]: Changing ensure
debug: /File[/var/puppet]: 1 change(s)
debug: /File[/var/puppet]/ensure: created
debug: /File[/var/puppet/client_yaml]: Changing ensure
debug: /File[/var/puppet/client_yaml]: 1 change(s)
debug: /File[/var/puppet/client_yaml]/ensure: created
debug: /File[/var/puppet/state]: Changing ensure
debug: /File[/var/puppet/state]: 1 change(s)
debug: /File[/var/puppet/state]/ensure: created
debug: /File[/var/puppet/state/graphs]: Changing ensure
debug: /File[/var/puppet/state/graphs]: 1 change(s)
debug: /File[/var/puppet/state/graphs]/ensure: created
debug: /File[/var/puppet/lib]: Changing ensure
debug: /File[/var/puppet/lib]: 1 change(s)
debug: /File[/var/puppet/lib]/ensure: created
debug: /File[/var/puppet/clientbucket]: Changing ensure
debug: /File[/var/puppet/clientbucket]: 1 change(s)
debug: /File[/var/puppet/clientbucket]/ensure: created
debug: /File[/var/puppet/run]: Changing ensure
debug: /File[/var/puppet/run]: 1 change(s)
debug: /File[/var/puppet/run]/ensure: created
debug: /File[/var/puppet/log]: Changing ensure
debug: /File[/var/puppet/log]: 1 change(s)
debug: /File[/var/puppet/log]/ensure: created
debug: /File[/var/puppet/facts]: Changing ensure
debug: /File[/var/puppet/facts]: 1 change(s)
debug: /File[/var/puppet/facts]/ensure: created
debug: Finishing transaction 452924520 with 9 changes
/usr/local/lib/ruby/1.8/net/http.rb:1060:in `request': undefined method `closed?' for nil:NilClass (NoMethodError)
from /usr/local/lib/ruby/1.8/net/http.rb:772:in `get'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:67:in `find'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:198:in `find'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:174:in `certificate'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:238:in `wait_for_cert'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/application/puppetd.rb:243:in `run_setup'
from /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:216:in `run'
from /usr/local/sbin/puppetd:159
Updated by Patrick Mohr 7 months ago
- File preseed.txt added
I’ve got this exact same problem. I’m using the latest Ubuntu Lucid Alpha. I wiped the computer and started clean to test and and I still get the problem. What would help? Would traces of dubug logs of the client or server help?
This is my site.pp file
file { “/tmp/puppet_test”:
ensure => present,
}
My puppet version is 0.25.4-2ubuntu2_all
Updated by Patrick Mohr 7 months ago
I forgot to add two things. I get the same error if I point it to itself or if I point it at a working 0.24.8 server.
I also wiped the computer reinstalled it again and got the same error.
Updated by Peter Meier 7 months ago
Patrick Mohr wrote:
I forgot to add two things. I get the same error if I point it to itself or if I point it at a working 0.24.8 server.
What do you mean with pointing to itself? Pointing the client to a master running on the same box?
And newer clients are not supposed to work against older masters. Always upgrade the master first.
What would help? Would traces of dubug logs of the client or server help?
Both, send anything you can. :)
Updated by Patrick Mohr 7 months ago
- File etc_puppet.tar.gz added
- File puppetd.log added
- File puppetmaster.log added
- File var_puppet.tar.gz added
- File hosts added
I was running the server and the client on the same box.
First I ran rm -Rf /var/lib/puppet
I ran the client with “puppetd —trace —verbose —debug —test ubuntu-testclient-004 | tee puppetd.log I ran the server with "puppetmasterd —no-daemonize —verbose —debug —trace | tee puppetmaster.log
I’m appending both logs and a copy of /etc/puppet, /etc/hosts, and /var/puppet just in case that helps.
Updated by Patrick Mohr 6 months ago
I tried running the version of puppetmaster and puppetd on Debian testing (squeeze) and get the same errors.
The puppet version is 0.25.4-1.
Would uninstalling puppet and ruby, installing ruby and gems from source, and then installing puppet using gems help? Should I use Ubuntu or Debian?
Updated by Patrick Mohr 6 months ago
After getting a lot of help from deet, I learned what the problem was. As far as I can tell, in 0.25.x the puppetmaster does a reverse lookup on the client’s ipaddress, and I get the above error if the client’s IP doesn’t match the reverse lookup.
This was happening to me in my normal usage because the client connects through a VPN that uses NAT. That makes the reverse lookup fail. That means the client was never able to get it’s certificate.
The discussion is here: http://groups.google.com/group/puppet-users/browse_thread/thread/d31811e3d9f883f4/348e4f48a7fd66e1
Although the reverse lookup is a useful security feature, is there anyway to bypass it?
Also, any chance of getting a better error message.
Updated by Patrick Mohr 6 months ago
After getting a lot of help from deet, I learned what the problem was. As far as I can tell, in 0.25.x the puppetmaster does a reverse lookup on the client’s ipaddress, and I get the above error if the client’s IP doesn’t match the reverse lookup. This doesn’t match comment 2.
This was happening to me in my normal usage because the client connects through a VPN that uses NAT. That makes the lookup fail. That means the client was never able to get it’s certificate.
The discussion is here: http://groups.google.com/group/puppet-users/browse_thread/thread/d31811e3d9f883f4/348e4f48a7fd66e1
Although what ever it’s doing is probably a useful security feature, is there anyway to bypass it?
Also, any chance of getting a better error message? It’s really cryptic and breaks backwords comparability.
Updated by Andrew Pollock 6 months ago
I’m seeing this problem also on Ubuntu 10.04, but my DNS (forward and reverse) is correct.
Updated by James Turnbull 5 months ago
- Status changed from Re-opened to Accepted
- Assignee changed from Alexey Degtyarev to Markus Roberts
- Priority changed from Normal to High
I’m seeing the same issue and it’s not DNS.
On the client:
info: Retrieving plugin debug: Using cached certificate for ca, good until Wed Mar 25 04:57:53 UTC 2015 debug: Using cached certificate for dxul.puppetlabs.com, good until Wed Mar 25 04:57:53 UTC 2015 debug: Using cached certificate_revocation_list for ca, good until debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml; using pson debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml; using pson /usr/lib/ruby/1.8/puppet/parameter.rb:401:in `fail' /usr/lib/ruby/1.8/puppet/type/file/source.rb:160:in `init_metadata' /usr/lib/ruby/1.8/puppet/util/cacher.rb:106:in `send' /usr/lib/ruby/1.8/puppet/util/cacher.rb:106:in `cached_value' /usr/lib/ruby/1.8/puppet/util/cacher.rb:46:in `metadata' /usr/lib/ruby/1.8/puppet/type/file/source.rb:111:in `copy_source_values' /usr/lib/ruby/1.8/puppet/type/file.rb:630:in `retrieve' /usr/lib/ruby/1.8/puppet/type.rb:726:in `evaluate' /usr/lib/ruby/1.8/puppet/transaction.rb:62:in `apply' /usr/lib/ruby/1.8/puppet/transaction.rb:251:in `eval_children_and_apply_resource' /usr/lib/ruby/1.8/puppet/util.rb:418:in `thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/lib/ruby/1.8/puppet/util.rb:417:in `thinmark' /usr/lib/ruby/1.8/puppet/transaction.rb:250:in `eval_children_and_apply_resource' /usr/lib/ruby/1.8/puppet/transaction.rb:207:in `eval_resource' /usr/lib/ruby/1.8/puppet/transaction.rb:296:in `evaluate' /usr/lib/ruby/1.8/puppet/util.rb:418:in `thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/lib/ruby/1.8/puppet/util.rb:417:in `thinmark' /usr/lib/ruby/1.8/puppet/transaction.rb:295:in `evaluate' /usr/lib/ruby/1.8/puppet/transaction.rb:289:in `collect' /usr/lib/ruby/1.8/puppet/transaction.rb:289:in `evaluate' /usr/lib/ruby/1.8/puppet/resource/catalog.rb:142:in `apply' /usr/lib/ruby/1.8/puppet/configurer/downloader.rb:32:in `evaluate' /usr/lib/ruby/1.8/timeout.rb:62:in `timeout' /usr/lib/ruby/1.8/puppet/configurer/downloader.rb:31:in `evaluate' /usr/lib/ruby/1.8/puppet/configurer/plugin_handler.rb:12:in `download_plugins' /usr/lib/ruby/1.8/puppet/configurer.rb:85:in `prepare' /usr/lib/ruby/1.8/puppet/configurer.rb:152:in `run' /usr/lib/ruby/1.8/puppet/agent.rb:53:in `run' /usr/lib/ruby/1.8/puppet/agent/locker.rb:21:in `lock' /usr/lib/ruby/1.8/puppet/agent.rb:53:in `run' /usr/lib/ruby/1.8/sync.rb:230:in `synchronize' /usr/lib/ruby/1.8/puppet/agent.rb:53:in `run' /usr/lib/ruby/1.8/puppet/agent.rb:134:in `with_client' /usr/lib/ruby/1.8/puppet/agent.rb:51:in `run' /usr/lib/ruby/1.8/puppet/agent.rb:106 /usr/lib/ruby/1.8/puppet/external/event-loop/signal-system.rb:97:in `call' /usr/lib/ruby/1.8/puppet/external/event-loop/signal-system.rb:97:in `__signal__' /usr/lib/ruby/1.8/puppet/external/event-loop/signal-system.rb:97:in `each' /usr/lib/ruby/1.8/puppet/external/event-loop/signal-system.rb:97:in `__signal__' (eval):2:in `signal' /usr/lib/ruby/1.8/puppet/external/event-loop/event-loop.rb:321:in `sound_alarm' /usr/lib/ruby/1.8/puppet/agent.rb:110:in `start' /usr/lib/ruby/1.8/puppet/daemon.rb:127:in `start' /usr/lib/ruby/1.8/puppet/application/puppetd.rb:116:in `main' /usr/lib/ruby/1.8/puppet/application.rb:226:in `send' /usr/lib/ruby/1.8/puppet/application.rb:226:in `run_command' /usr/lib/ruby/1.8/puppet/application.rb:217:in `run' /usr/lib/ruby/1.8/puppet/application.rb:306:in `exit_on_fail' /usr/lib/ruby/1.8/puppet/application.rb:217:in `run' /usr/sbin/puppetd:159 err: /File[/var/lib/puppet-demo/lib]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://dxul.puppetlabs.com/plugins
On the master:
info: access[^/catalog/([^/]+)$]: allowing 'method' find info: access[^/catalog/([^/]+)$]: allowing $1 access info: access[/certificate_revocation_list/ca]: allowing 'method' find info: access[/certificate_revocation_list/ca]: allowing * access info: access[/report]: allowing 'method' save info: access[/report]: allowing * access info: access[/file]: allowing * access info: access[/certificate/ca]: adding authentication no info: access[/certificate/ca]: allowing 'method' find info: access[/certificate/ca]: allowing * access info: access[/certificate/]: adding authentication no info: access[/certificate/]: allowing 'method' find info: access[/certificate/]: allowing * access info: access[/certificate_request]: adding authentication no info: access[/certificate_request]: allowing 'method' find info: access[/certificate_request]: allowing 'method' save info: access[/certificate_request]: allowing * access info: access[/]: adding authentication any info: Could not find filesystem info for file 'plugins' in environment production info: Could not find file_metadata for 'plugins' info: Expiring the node cache of dxul.puppetlabs.com info: Not using expired node for dxul.puppetlabs.com from cache; expired at Sat Mar 27 05:29:23 +0000 2010 info: Caching node for dxul.puppetlabs.com notice: Compiled catalog for dxul.puppetlabs.com in 0.00 seconds
Changing:
pluginsync=true
pluginsync=false
Makes the error go away.
Updated by James Turnbull 5 months ago
- Status changed from Accepted to Closed
Fixes issue for me also + Jesse.
Pushing in commit:“ae0b0bf23e418e8c6665e9dc135148b78bdbd913” in branch 0.25.x