Issue #10641 has been updated by Josh Cooper.

Status changed from Unreviewed to Investigating

Hi Mike,

Puppet thinks that it is running in an EC2 instance, and is trying to connect 
to `http://169.254.169.254` to retrieve EC2 meta and user data. If you are not 
actually running in an EC2 instance, can you run the following command:

<pre>
facter arp macaddress --debug
</pre>

----------------------------------------
Bug #10641: Could not retrieve local facts: execution expired
https://projects.puppetlabs.com/issues/10641

Author: Mike Spinzer
Status: Investigating
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Hello,

I suddenly started to have a weird error when I run puppet on some of my client:

     # puppetd --debug --trace --no-daemonize
     debug: Failed to load library 'rubygems' for feature 'rubygems'
     debug: Failed to load library 'selinux' for feature 'selinux'
     debug: Puppet::Type::User::ProviderPw: file pw does not exist
     debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl 
does not exist
     ...
     notice: Starting Puppet client version 2.7.6
     debug: Finishing transaction -611858328
     debug: Loaded state in 0.01 seconds
     /usr/lib/ruby/1.8/timeout.rb:60:in `open'
     /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
     /usr/lib/ruby/1.8/timeout.rb:53:in `timeout'
     /usr/lib/ruby/1.8/timeout.rb:93:in `timeout'
     /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
     /usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
     /usr/lib/ruby/1.8/net/http.rb:542:in `start'
     /usr/lib/ruby/1.8/open-uri.rb:242:in `open_http'
     /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
     /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
     /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
     /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
     /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
     /usr/lib/ruby/1.8/open-uri.rb:518:in `open'
     /usr/lib/ruby/1.8/open-uri.rb:30:in `open'
     /usr/lib/ruby/1.8/facter/ec2.rb:10:in `can_connect?'
     /usr/lib/ruby/1.8/facter/ec2.rb:10:in `can_connect?'
     /usr/lib/ruby/1.8/facter/ec2.rb:33
     /usr/lib/ruby/1.8/facter/util/loader.rb:72:in `load'
     /usr/lib/ruby/1.8/facter/util/loader.rb:72:in `load_file'
     /usr/lib/ruby/1.8/facter/util/loader.rb:38:in `load_all'
     /usr/lib/ruby/1.8/facter/util/loader.rb:33:in `each'
     /usr/lib/ruby/1.8/facter/util/loader.rb:33:in `load_all'
     /usr/lib/ruby/1.8/facter/util/loader.rb:30:in `each'
     /usr/lib/ruby/1.8/facter/util/loader.rb:30:in `load_all'
     /usr/lib/ruby/1.8/facter/util/collection.rb:94:in `load_all'
     /usr/lib/ruby/1.8/facter.rb:183:in `loadfacts'
     /usr/local/lib/site_ruby/1.8/puppet/configurer/fact_handler.rb:66:in 
`reload_facter'
     /usr/local/lib/site_ruby/1.8/puppet/configurer/fact_handler.rb:18:in 
`find_facts'
     /usr/local/lib/site_ruby/1.8/puppet/configurer/fact_handler.rb:34:in 
`facts_for_uploading'
     /usr/local/lib/site_ruby/1.8/puppet/configurer.rb:143:in `run'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:39
     /usr/local/lib/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:39
     /usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:39
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:103:in `with_client'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:37
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:172:in `call'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:172:in `controlled_run'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:35:in `run'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:78
     
/usr/local/lib/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`call'
     
/usr/local/lib/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`__signal__'
     
/usr/local/lib/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`each'
     
/usr/local/lib/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`__signal__'
     (eval):2:in `signal'
     
/usr/local/lib/site_ruby/1.8/puppet/external/event-loop/event-loop.rb:317:in 
`sound_alarm'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:82:in `start'
     /usr/local/lib/site_ruby/1.8/puppet/daemon.rb:125:in `start'
     /usr/local/lib/site_ruby/1.8/puppet/application/agent.rb:354:in `main'
     /usr/local/lib/site_ruby/1.8/puppet/application/agent.rb:311:in 
`run_command'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:306:in `run'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:410:in `hook'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:306:in `run'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:401:in `exit_on_fail'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:306:in `run'
     /usr/sbin/puppetd:4
     debug: Value of 'preferred_serialization_format' (pson) is invalid for 
report, using default (yaml)
     debug: report supports formats: b64_zlib_yaml marshal raw yaml; using yaml
     debug: Using cached certificate for ca
     debug: Using cached certificate_revocation_list for ca
     /usr/local/lib/site_ruby/1.8/puppet/configurer/fact_handler.rb:29:in 
`find_facts'
     /usr/local/lib/site_ruby/1.8/puppet/configurer/fact_handler.rb:34:in 
`facts_for_uploading'
     /usr/local/lib/site_ruby/1.8/puppet/configurer.rb:143:in `run'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:39
     /usr/local/lib/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:39
     /usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:39
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:103:in `with_client'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:37
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:172:in `call'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:172:in `controlled_run'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:35:in `run'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:78
     
/usr/local/lib/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`call'
     
/usr/local/lib/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`__signal__'
     
/usr/local/lib/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`each'
     
/usr/local/lib/site_ruby/1.8/puppet/external/event-loop/signal-system.rb:95:in 
`__signal__'
     (eval):2:in `signal'
     
/usr/local/lib/site_ruby/1.8/puppet/external/event-loop/event-loop.rb:317:in 
`sound_alarm'
     /usr/local/lib/site_ruby/1.8/puppet/agent.rb:82:in `start'
     /usr/local/lib/site_ruby/1.8/puppet/daemon.rb:125:in `start'
     /usr/local/lib/site_ruby/1.8/puppet/application/agent.rb:354:in `main'
     /usr/local/lib/site_ruby/1.8/puppet/application/agent.rb:311:in 
`run_command'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:306:in `run'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:410:in `hook'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:306:in `run'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:401:in `exit_on_fail'
     /usr/local/lib/site_ruby/1.8/puppet/application.rb:306:in `run'
     /usr/sbin/puppetd:4
     err: Could not run Puppet configuration client: Could not retrieve local 
facts: execution expired

By sniffing the network, I saw that the servers where puppet is not anymore 
working are trying to connect to 169.254.169.254:80 (which failed in timeout). 
It seems to be related to Amazon EC2. Do you have any idea how to fix that?

puppet version: 2.7.6

OS: ubuntu 10.04 LTS

ruby: 1.8

Thanks,

Mike






-- 
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