On 2011-11-07 05:50 , raffis wrote:
> I have a problem with a new Ubuntu server (2.6.32-33-server) and
> facter.
>
> Facter Version 1.5.6
>
> root@web002:~# facter
> /usr/lib/ruby/1.8/timeout.rb:60: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:93: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/1.8/facter/ec2.rb:10:in `can_connect?'
> from /usr/lib/ruby/1.8/facter/ec2.rb:10:in `can_connect?'
> from /usr/lib/ruby/1.8/facter/ec2.rb:33
> from /usr/lib/ruby/1.8/facter/util/loader.rb:72:in `load'
> from /usr/lib/ruby/1.8/facter/util/loader.rb:72:in `load_file'
> from /usr/lib/ruby/1.8/facter/util/loader.rb:38:in `load_all'
> from /usr/lib/ruby/1.8/facter/util/loader.rb:33:in `each'
> from /usr/lib/ruby/1.8/facter/util/loader.rb:33:in `load_all'
> from /usr/lib/ruby/1.8/facter/util/loader.rb:30:in `each'
> from /usr/lib/ruby/1.8/facter/util/loader.rb:30:in `load_all'
> from /usr/lib/ruby/1.8/facter/util/collection.rb:94:in `load_all'
> from /usr/lib/ruby/1.8/facter.rb:91:in `to_hash'
> from /usr/bin/facter:138
>
>
> facter with strace:
> It stops 1-2s, thats the output of strace.....
>
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
> fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(80),
> sin_addr=inet_addr("169.254.169.254")}, 16) = -1 EINPROGRESS
> (Operation now in progress)
> select(5, [], [3], [3], {1, 969055}^C <unfinished ...>
>
>
>
> Puppet says, there is a problem with local facts, and I'm sure thats
> the facter problem ;)
>
> And there is no problem with dns, all other servers with the same
> version of facter and puppet have no problems... The only thing I did
> on this server is an upgrade with apt-get, but facter and puppet are
> the same version as they are on the other servers
>
>
> Thanks for your help
> You'll want to keep an eye on the Ubuntu bug for this[0]. [0] https://bugs.launchpad.net/ubuntu/+source/facter/+bug/885998 -- Jacob Helwig http://about.me/jhelwig
signature.asc
Description: OpenPGP digital signature
