{"action":"created","issue":{"url":"https://api.github.com/repos/C3S/redmine_openpgp/issues/1","labels_url":"https://api.github.com/repos/C3S/redmine_openpgp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/C3S/redmine_openpgp/issues/1/comments","events_url":"https://api.github.com/repos/C3S/redmine_openpgp/issues/1/events","html_url":"https://github.com/C3S/redmine_openpgp/issues/1","id":105665195,"number":1,"title":"Error loading /pgp after generating key","user":{"login":"ageis","id":1161532,"avatar_url":"https://avatars.githubusercontent.com/u/1161532?v=3","gravatar_id":"","url":"https://api.github.com/users/ageis","html_url":"https://github.com/ageis","followers_url":"https://api.github.com/users/ageis/followers","following_url":"https://api.github.com/users/ageis/following{/other_user}","gists_url":"https://api.github.com/users/ageis/gists{/gist_id}","starred_url":"https://api.github.com/users/ageis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ageis/subscriptions","organizations_url":"https://api.github.com/users/ageis/orgs","repos_url":"https://api.github.com/users/ageis/repos","events_url":"https://api.github.com/users/ageis/events{/privacy}","received_events_url":"https://api.github.com/users/ageis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-09T19:13:30Z","updated_at":"2015-09-10T18:49:01Z","closed_at":null,"body":"Thanks for this plugin! It's pretty great.\r\n\r\nBut I'm now getting this error on loading /pgp. That page worked before I generated the main key. I used the rake task `generate_redmine_pgpkey` to do so. Let me know if you can reproduce this.\r\n\r\n```\r\nStarted GET \"/pgp\" for 162.158.255.86 at 2015-09-09 12:08:06 -0700\r\nProcessing by PgpkeysController#index as HTML\r\n  Current user: kevin (id=6)\r\n  Rendered plugins/openpgp/app/views/pgpkeys/index.html.erb within layouts/base (244.9ms)\r\nCompleted 500 Internal Server Error in 252ms (ActiveRecord: 0.8ms)\r\n\r\nActionView::Template::Error (EOFError):\r\n    65:             </p>\r\n    66:             <p>\r\n    67:               <%= label_tag 'metadata', l(:label_metadata) %>\r\n    68:               <%= text_area_tag 'meta', @server_pgpkey.metadata, rows: \"4\", readonly: true %>\r\n    69:             </p>\r\n    70:             <p>\r\n    71:               <%= label_tag 'key', l(:label_public_key) %>\r\n  lib/redmine/sudo_mode.rb:63:in `sudo_mode'\r\n```\r\n\r\nUpdate: I tried using `update_redmine_pgpkey` with an existing key and I'm still getting this error."},"comment":{"url":"https://api.github.com/repos/C3S/redmine_openpgp/issues/comments/139342126","html_url":"https://github.com/C3S/redmine_openpgp/issues/1#issuecomment-139342126","issue_url":"https://api.github.com/repos/C3S/redmine_openpgp/issues/1","id":139342126,"user":{"login":"ageis","id":1161532,"avatar_url":"https://avatars.githubusercontent.com/u/1161532?v=3","gravatar_id":"","url":"https://api.github.com/users/ageis","html_url":"https://github.com/ageis","followers_url":"https://api.github.com/users/ageis/followers","following_url":"https://api.github.com/users/ageis/following{/other_user}","gists_url":"https://api.github.com/users/ageis/gists{/gist_id}","starred_url":"https://api.github.com/users/ageis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ageis/subscriptions","organizations_url":"https://api.github.com/users/ageis/orgs","repos_url":"https://api.github.com/users/ageis/repos","events_url":"https://api.github.com/users/ageis/events{/privacy}","received_events_url":"https://api.github.com/users/ageis/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T18:49:00Z","updated_at":"2015-09-10T18:49:00Z","body":"I agree the instructions should be updated to specify that rake tasks should be run as the user owning the Redmine process, and think that was the main issue here considering that I used the built-in key generation. \r\n\r\nWhen I went to try key importation on the other hand, there may have been a separate user error involving the key file I was importing - which contained multiple private keys - and that may have caused a problem as well, though I can't be sure because I haven't investigated or tried to reproduce it enough to rule out the permissions factor - but I think the `update_redmine_pgpkey` task should probably do some checking to make sure it only imports one private key, and that's an other recommendation."}}