Issue #17855 has been reported by Per Cederqvist.
----------------------------------------
Bug #17855: facter fails with "in `open': execution expired (Timeout::Error)"
when using ruby 1.8.7
https://projects.puppetlabs.com/issues/17855
Author: Per Cederqvist
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Keywords:
Branch:
Affected Facter version: 1.6.15
On one of my nodes, facter 1.6.15 gives a backtrace. facter 1.6.14 worked. If
I run "ruby1.9.1 /usr/bin/facter" it works.
The backtrace I get is:
<pre>/usr/lib/ruby/1.8/timeout.rb:64:in `open': execution expired
(Timeout::Error)
from /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
from /usr/lib/ruby/1.8/timeout.rb:53:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:101:in `timeout'
from /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
from /usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:542:in `start'
from /usr/lib/ruby/1.8/open-uri.rb:242:in `open_http'
from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /usr/lib/ruby/1.8/open-uri.rb:518:in `open'
from /usr/lib/ruby/1.8/open-uri.rb:30:in `open'
from /usr/lib/ruby/vendor_ruby/facter/util/ec2.rb:15:in `can_connect?'
from /usr/lib/ruby/vendor_ruby/facter/util/ec2.rb:15:in `can_connect?'
from /usr/lib/ruby/vendor_ruby/facter/ec2.rb:30
from /usr/lib/ruby/vendor_ruby/facter/util/loader.rb:81:in `load'
from /usr/lib/ruby/vendor_ruby/facter/util/loader.rb:81:in `load_file'
from /usr/lib/ruby/vendor_ruby/facter/util/loader.rb:43:in `load_all'
from /usr/lib/ruby/vendor_ruby/facter/util/loader.rb:38:in `each'
from /usr/lib/ruby/vendor_ruby/facter/util/loader.rb:38:in `load_all'
from /usr/lib/ruby/vendor_ruby/facter/util/loader.rb:35:in `each'
from /usr/lib/ruby/vendor_ruby/facter/util/loader.rb:35:in `load_all'
from /usr/lib/ruby/vendor_ruby/facter/util/collection.rb:93:in
`load_all'
from /usr/lib/ruby/vendor_ruby/facter.rb:100:in `to_hash'
from /usr/lib/ruby/vendor_ruby/facter/application.rb:26:in `run'
from /usr/bin/facter:71</pre>
I'm using the deb packages from http://apt.puppetlabs.com/.
Is facter 1.6.15 supposed to be compatible with ruby 1.8.7? If so, there
is a problem. If not, the .deb is broken: it should require ruby1.9.1, and
facter should start "#!/usr/bin/ruby1.9.1" instead of "#!/usr/bin/ruby".
I'm running Debian GNU/Linux 6.0.6 (squeeze) on the affected machine.
(Issue #17820 seems to indicate that Puppet 3.x requires Ruby 1.9. I
think the same packaging changes needs to be done to Puppet.)
--
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.