2012-04-14 2 views
1

Je suis en train d'installer cookbook de mongodb en utilisant chef opscode sur Ubuntu 10.04 dans amzaon Virtual Private Cloud. Ma pile d'erreur est:Obtenir l'erreur hôte gpgkeys lors de l'installation cookbook de mongodb via Opscode Chef client

[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 

Contenu de mon fichier de liste source:

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 

Quel pourrait être le problème? Je l'ai googlé mais je n'ai pas trouvé la bonne solution.

Répondre

4

Ok, moi et mon ami l'avons fait après avoir R & D. la solution est le changement dans la recette de livre de cuisine. J'ai changé le serveur de clés "keyserver.ubuntu.com" en "hkp: //keyserver.ubuntu.com: 80".

À la vôtre !!

+0

Merci, cette modification a résolu un problème que j'avais lorsque ma commande apt-key était simplement suspendue sans sortie –

Questions connexes