Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing action run on resource 'bash[add an apt's trusted key for mesosphere]' #34

Open
Tantino opened this issue Jun 17, 2015 · 0 comments

Comments

@Tantino
Copy link

Tantino commented Jun 17, 2015

Error in master installation:

$ vagrant -v
Vagrant 1.7.2
$ vagrant plugin list
vagrant-berkshelf (4.0.4)
vagrant-cachier (1.2.0)
vagrant-hosts (2.4.0)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.3, system)
==> default: ================================================================================
==> default: Error executing action `run` on resource 'bash[add an apt's trusted key for mesosphere]'
==> default: ================================================================================
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default:
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '2'
==> default: ---- Begin output of "bash"  "/tmp/chef-script20150616-1972-1265ytq" ----
==> default:
==> default: STDOUT: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.iz7l6jvFhD --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusd.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv E56151BF
==> default: STDERR: gpg: requesting key E56151BF from hkp server keyserver.ubuntu.com
==> default: gpg: keyserver timed out
==> default:
==> default: gpg: keyserver receive failed: keyserver error
==> default: ---- End output of "bash"  "/tmp/chef-script20150616-1972-1265ytq" ----
==> default: Ran "bash"  "/tmp/chef-script20150616-1972-1265ytq" returned 2
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef/f198b082ebbffd265a2cc2d7558bd66a/cookbooks/mesos/libraries/helpers.rb
==> default:
==> default:
==> default: 131:         bash "add an apt's trusted key for mesosphere" do
==> default: 132:           code <<-EOH
==> default:
==> default: 133:             apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
==> default: 134:           EOH
==> default: 135:           action :run
==> default: 136:         end
==> default: 137:
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef/f198b082ebbffd265a2cc2d7558bd66a/cookbooks/mesos/libraries/helpers.rb:131:in `install_mesos'
==> default:
==> default: bash("add an apt's trusted key for mesosphere") do
==> default:   action [:run]
==> default:   retries 0
==> default:   retry_delay 2
==> default:   default_guard_interpreter :default
==> default:   command "add an apt's trusted key for mesosphere"
==> default:   backup 5
==> default:   returns 0
==> default:   code "            apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF\n"
==> default:   interpreter "bash"
==> default:   declared_type :bash
==> default:   cookbook_name :mesos
==> default:
==> default:   recipe_name "mesosphere"
==> default: end
==> default:
==> default:
==> default: [2015-06-16T14:22:05+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2015-06-16T14:22:05+00:00] ERROR: Running exception handlers
==> default: [2015-06-16T14:22:05+00:00] ERROR: Exception handlers complete
==> default: [2015-06-16T14:22:05+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2015-06-16T14:22:05+00:00] ERROR: bash[add an apt's trusted key for mesosphere] (mesos::mesosphere line 131) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected processo exit with [0], but received '2'
==> default: ---- Begin output of "bash"  "/tmp/chef-script20150616-1972-1265ytq" ----
==> default: STDOUT: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.iz7l6jvFhD --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusd.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv E56151BF
==> default: STDERR: gpg: requesting key E56151BF from hkp server keyserver.ubuntu.com
==> default: gpg: keyserver timed out
==> default: gpg: keyserver receive failed: keyserver error
==> default: ---- End output of "bash"  "/tmp/chef-script20150616-1972-1265ytq" ----
==> default: Ran "bash"  "/tmp/chef-script20150616-1972-1265ytq" returned 2
==> default: [2015-06-16T14:22:05+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Change or review the value in file https://github.com/everpeace/cookbook-mesos/blob/master/libraries/helpers.rb
this line 133

apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF

by

sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xdf7d54cbe56151bf

Thanks and sorry by my english

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant