{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/chef-apt-docker/issues/13","repository_url":"https://api.github.com/repos/chef-cookbooks/chef-apt-docker","labels_url":"https://api.github.com/repos/chef-cookbooks/chef-apt-docker/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/chef-apt-docker/issues/13/comments","events_url":"https://api.github.com/repos/chef-cookbooks/chef-apt-docker/issues/13/events","html_url":"https://github.com/chef-cookbooks/chef-apt-docker/issues/13","id":258099669,"number":13,"title":"chef-apt-docker/recipes/default.rb fails. \"requesting key 0EBFCD88 from hkp server pgp.mit.edu. no valid OpenPGP data found.\"","user":{"login":"aaronkjones","id":17125755,"avatar_url":"https://avatars1.githubusercontent.com/u/17125755?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronkjones","html_url":"https://github.com/aaronkjones","followers_url":"https://api.github.com/users/aaronkjones/followers","following_url":"https://api.github.com/users/aaronkjones/following{/other_user}","gists_url":"https://api.github.com/users/aaronkjones/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronkjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronkjones/subscriptions","organizations_url":"https://api.github.com/users/aaronkjones/orgs","repos_url":"https://api.github.com/users/aaronkjones/repos","events_url":"https://api.github.com/users/aaronkjones/events{/privacy}","received_events_url":"https://api.github.com/users/aaronkjones/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-15T16:43:06Z","updated_at":"2017-09-18T19:30:04Z","closed_at":"2017-09-18T19:30:04Z","author_association":"NONE","body":"### Cookbook version\r\n2.0.2\r\n\r\n### Chef-client version\r\n12.21.1\r\n\r\n### Platform Details\r\nUbuntu 14.04.5 LTS\r\n\r\n### Scenario:\r\nExecuting chef-client\r\n\r\n### Result:\r\n\r\n\r\n```\r\n================================================================================\r\n      Error executing action `run` on resource 'execute[install-key 9DC858229FC7DD38854AE2D88D81803C0EBFCD88]'\r\n      ================================================================================\r\n\r\n      Mixlib::ShellOut::ShellCommandFailed\r\n      ------------------------------------\r\n      Expected process to exit with [0], but received '2'\r\n      ---- Begin output of apt-key adv --recv --keyserver hkp://pgp.mit.edu:80 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 ----\r\n      STDOUT: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.EOGa5nTr3K --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv --keyserver hkp://pgp.mit.edu:80 9DC858229FC7DD38854AE2D88D81803C0EBFCD88\r\n      gpgkeys: key 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 can't be retrieved\r\n      STDERR: gpg: requesting key 0EBFCD88 from hkp server pgp.mit.edu\r\n      gpg: no valid OpenPGP data found.\r\n      gpg: Total number processed: 0\r\n      ---- End output of apt-key adv --recv --keyserver hkp://pgp.mit.edu:80 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 ----\r\n      Ran apt-key adv --recv --keyserver hkp://pgp.mit.edu:80 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 returned 2\r\n\r\n      Resource Declaration:\r\n      ---------------------\r\n      # In /opt/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.21.1/lib/chef/provider/apt_repository.rb\r\n\r\n      199:         declare_resource(:execute, \"install-key #{key}\") do\r\n      200:           command cmd\r\n      201:           sensitive new_resource.sensitive\r\n      202:           not_if do\r\n      203:             present = extract_fingerprints_from_cmd(\"apt-key finger\").any? do |fp|\r\n      204:               fp.end_with? key.upcase\r\n      205:             end\r\n      206:             present && key_is_valid?(\"apt-key list\", key.upcase)\r\n      207:           end\r\n      208:           notifies :run, \"execute[apt-cache gencaches]\", :immediately\r\n      209:         end\r\n      210:\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/chef-apt-docker/issues/comments/330331019","html_url":"https://github.com/chef-cookbooks/chef-apt-docker/issues/13#issuecomment-330331019","issue_url":"https://api.github.com/repos/chef-cookbooks/chef-apt-docker/issues/13","id":330331019,"user":{"login":"aaronkjones","id":17125755,"avatar_url":"https://avatars1.githubusercontent.com/u/17125755?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronkjones","html_url":"https://github.com/aaronkjones","followers_url":"https://api.github.com/users/aaronkjones/followers","following_url":"https://api.github.com/users/aaronkjones/following{/other_user}","gists_url":"https://api.github.com/users/aaronkjones/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronkjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronkjones/subscriptions","organizations_url":"https://api.github.com/users/aaronkjones/orgs","repos_url":"https://api.github.com/users/aaronkjones/repos","events_url":"https://api.github.com/users/aaronkjones/events{/privacy}","received_events_url":"https://api.github.com/users/aaronkjones/received_events","type":"User","site_admin":false},"created_at":"2017-09-18T19:30:04Z","updated_at":"2017-09-18T19:30:04Z","author_association":"NONE","body":"This was caused by /etc/apt/trusted.gpg having fouled up keys.\r\n\r\nI followed this [askubuntu page](https://askubuntu.com/questions/719865/how-to-fix-missing-gpg-key-even-though-it-should-have-been-imported/787883)\r\n\r\n- mv /etc/apt/trusted.gpg /someplacesafe/trusted.gpg.bak\r\n- apt-key update"}}
{"actor":{"display_login":"aaronkjones"}}