English 中文(简体)
Getting gpgkeys host error while installing cookbook of mongodb via Opscode Chef client
原标题:

I am trying to install cookbook of mongodb using opscode chef on ubuntu 10.04 in amzaon Virtual Private Cloud. My error stack is:

[Sat, 14 Apr 2012 04:26:00 +0000] INFO: Processing ruby_block[set-env-java-home] action create (java::openjdk line 36)
[Sat, 14 Apr 2012 04:26:00 +0000] INFO: ruby_block[set-env-java-home] called
[Sat, 14 Apr 2012 04:26:00 +0000] INFO: Processing ruby_block[update-java-alternatives] action nothing (java::openjdk line 43)
[Sat, 14 Apr 2012 04:26:00 +0000] INFO: Processing package[openjdk-6-jdk] action install (java::openjdk line 79)
[Sat, 14 Apr 2012 04:28:03 +0000] INFO: package[openjdk-6-jdk] installed version 6b20-1.9.13-0ubuntu1~10.04.1
[Sat, 14 Apr 2012 04:28:03 +0000] INFO: Processing execute[apt-get update] action nothing (mongodb::10gen_repo line 28)
[Sat, 14 Apr 2012 04:28:03 +0000] INFO: Processing apt_repository[10gen] action add (mongodb::10gen_repo line 32)
[Sat, 14 Apr 2012 04:28:03 +0000] INFO: Processing execute[install-key 7F0CEB10] action run (/var/chef/cache/cookbooks/apt/providers/repository.rb line 23)
[Sat, 14 Apr 2012 04:28:03 +0000] INFO: execute[install-key 7F0CEB10] sh(apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10)
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 7F0CEB10
gpgkeys: HTTP fetch error 7: couldn t connect to host
[Sat, 14 Apr 2012 04:28:24 +0000] ERROR: execute[install-key 7F0CEB10] (/var/chef/cache/cookbooks/apt/providers/repository.rb line 23) has had an error
[Sat, 14 Apr 2012 04:28:24 +0000] ERROR: apt_repository[10gen] (mongodb::10gen_repo line 32) has had an error
[Sat, 14 Apr 2012 04:28:24 +0000] ERROR: apt_repository[10gen] (/var/chef/cache/cookbooks/mongodb/recipes/10gen_repo.rb:32:in `from_file ) had an error:
apt_repository[10gen] (mongodb::10gen_repo line 32) had an error: Chef::Exceptions::ShellCommandFailed: execute[install-key 7F0CEB10] (/var/chef/cache/cookbooks/apt/providers/repository.rb line 23) had an error: Chef::Exceptions::ShellCommandFailed: Expected process to exit with [0], but received  2 
---- Begin output of apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 ----
STDOUT: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 7F0CEB10
gpgkeys: HTTP fetch error 7: couldn t connect to host
STDERR: gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
---- End output of apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 ----
Ran apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 returned 2
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/shell_out.rb:206:in `invalid! 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/shell_out.rb:192:in `error! 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/shell_out.rb:36:in `shell_out! 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/provider/execute.rb:58:in `action_run 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource.rb:440:in `send 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource.rb:440:in `run_action 
/var/chef/cache/cookbooks/apt/providers/repository.rb:26:in `install_key_from_keyserver 
/var/chef/cache/cookbooks/apt/providers/repository.rb:73:in `class_from_file 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/provider.rb:104:in `instance_eval 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/provider.rb:104:in `action_add 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource.rb:440:in `send 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource.rb:440:in `run_action 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:45:in `run_action 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:81:in `converge 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:81:in `each 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:81:in `converge 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection.rb:94
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:76:in `converge 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:312:in `converge 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:160:in `run 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:239:in `run_application 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:in `loop 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/client.rb:229:in `run_application 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application.rb:67:in `run 
/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:26
/usr/bin/chef-client:19:in `load 
/usr/bin/chef-client:19
[Sat, 14 Apr 2012 04:28:24 +0000] ERROR: Running exception handlers
[Sat, 14 Apr 2012 04:28:24 +0000] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[Sat, 14 Apr 2012 04:28:24 +0000] ERROR: Exception handlers complete
[Sat, 14 Apr 2012 04:28:24 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[Sat, 14 Apr 2012 04:28:24 +0000] FATAL: Chef::Exceptions::ShellCommandFailed: apt_repository[10gen] (mongodb::10gen_repo line 32) had an error: Chef::Exceptions::ShellCommandFailed: execute[install-key 7F0CEB10] (/var/chef/cache/cookbooks/apt/providers/repository.rb line 23) had an error: Chef::Exceptions::ShellCommandFailed: Expected process to exit with [
0], but received  2 
---- Begin output of apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 ----
STDOUT: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 7F0CEB10
gpgkeys: HTTP fetch error 7: couldn t connect to host
STDERR: gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
---- End output of apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 ----
Ran apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 returned 2

Content of My source list file:

deb http://eu.archive.ubuntu.com/ubuntu/ lucid main universe
deb-src http://eu.archive.ubuntu.com/ubuntu/ lucid main universe
deb http://eu.archive.ubuntu.com/ubuntu/ lucid-updates main universe
deb-src http://eu.archive.ubuntu.com/ubuntu/ lucid-updates main universe
deb http://security.ubuntu.com/ubuntu lucid-security main universe
deb-src http://security.ubuntu.com/ubuntu lucid-security main universe

What could be the problem? I have googled it but hadn t find the proper solution.

最佳回答

Ok, me and my friend have done it after having some R&D. the solution is change in the cookbook receipe. I have changed the keyserver "keyserver.ubuntu.com" to "hkp://keyserver.ubuntu.com:80".

Cheers!!

问题回答

暂无回答




相关问题
SimpleDB vs Tokyo Cabinet

Has anybody compared SimpleDB and Tokyo Cabinet for performance and scalability? I m coding my project against SimpleDB at the moment and considering benchmarking TC, be nice if somebody had already ...

How to make visual studio 2008 deploy to ftp in ACTIVE mode?

I m using Amazon EC2 services and would like to publish my WCF application to this server using the visual studio 2008. Instead of opening so many ports on the amazon firewall, I ll use the ftp ACTIVE ...

Passenger and Rails on Scalr.net

I m having an issue with Passenger and Rails working together on my Scalr application server. I have Rails 2.3.5 installed and Passenger 2.2.7. I am running ruby 1.8.6 (patchlevel 111). Previous ...

Many users, many cpus, no delays. Good for cloud?

I wish to set up a CPU-intensive time-important query service for users on the internet. A usage scenario is described below. Is cloud computing the right way to go for such an implementation? If so, ...

Homemade cheap and cheerful clustering with MySQL+EC2?

I ve got a Java web service backed by MySQL + EC2 + EBS. For data integrity I ve looked into DRBD, MySQL cluster etc. but wonder if there isn t a simpler solution. I don t need high availability (can ...

What s a good way to collect logs from Amazon EC2 instances?

My app is hosted on an Amazon EC2 cluster. Each instance writes events to log files. I need to collect (and data mine) over these logs at the end of each day. What s a recommended way to collect these ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Need some help choosing between Amazon EC2 and VPS [closed]

At my company we are looking at hosting a blog and a CMS . We are still in the process of building the product and havent made it live yet. We are looking at some hosting options. We need to have ...

热门标签