{"action":"created","issue":{"url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/157","labels_url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/157/comments","events_url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/157/events","html_url":"https://github.com/escapestudios-cookbooks/newrelic/issues/157","id":58997491,"number":157,"title":"Using :upgrade with server_monitor_agent fails","user":{"login":"welearnednothing","id":3671841,"avatar_url":"https://avatars.githubusercontent.com/u/3671841?v=3","gravatar_id":"","url":"https://api.github.com/users/welearnednothing","html_url":"https://github.com/welearnednothing","followers_url":"https://api.github.com/users/welearnednothing/followers","following_url":"https://api.github.com/users/welearnednothing/following{/other_user}","gists_url":"https://api.github.com/users/welearnednothing/gists{/gist_id}","starred_url":"https://api.github.com/users/welearnednothing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welearnednothing/subscriptions","organizations_url":"https://api.github.com/users/welearnednothing/orgs","repos_url":"https://api.github.com/users/welearnednothing/repos","events_url":"https://api.github.com/users/welearnednothing/events{/privacy}","received_events_url":"https://api.github.com/users/welearnednothing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-26T00:41:51Z","updated_at":"2015-06-22T18:38:15Z","closed_at":null,"body":"On a machine that already has the server agent installed, changing `node['newrelic']['server_monitor_agent']['agent_action']` from the default `:install` to `:upgrade` fails with the following:\r\n\r\n```\r\nSetting up newrelic-sysmond (2.0.2.111) ...\r\nSTDERR: Configuration file `/etc/newrelic/nrsysmond.cfg'\r\n ==> Modified (by you or by a script) since installation.\r\n ==> Package distributor has shipped an updated version.\r\n   What would you like to do about it ?  Your options are:\r\n    Y or I  : install the package maintainer's version\r\n    N or O  : keep your currently-installed version\r\n      D     : show the differences between the versions\r\n      Z     : start a shell to examine the situation\r\n The default action is to keep your current version.\r\n*** nrsysmond.cfg (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing newrelic-sysmond (--configure):\r\n EOF on stdin at conffile prompt\r\nErrors were encountered while processing:\r\n newrelic-sysmond\r\nE: Sub-process /usr/bin/dpkg returned an error code (1)\r\n---- End output of apt-get -q -y install newrelic-sysmond=2.0.2.111 ----\r\nRan apt-get -q -y install newrelic-sysmond=2.0.2.111 returned 100\r\n[2015-02-25T16:27:49-08:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n```\r\n\r\nIt does successfully install the latest version, but the Chef run doesn't exit cleanly."},"comment":{"url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/comments/114211364","html_url":"https://github.com/escapestudios-cookbooks/newrelic/issues/157#issuecomment-114211364","issue_url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/157","id":114211364,"user":{"login":"ghempton","id":8994,"avatar_url":"https://avatars.githubusercontent.com/u/8994?v=3","gravatar_id":"","url":"https://api.github.com/users/ghempton","html_url":"https://github.com/ghempton","followers_url":"https://api.github.com/users/ghempton/followers","following_url":"https://api.github.com/users/ghempton/following{/other_user}","gists_url":"https://api.github.com/users/ghempton/gists{/gist_id}","starred_url":"https://api.github.com/users/ghempton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghempton/subscriptions","organizations_url":"https://api.github.com/users/ghempton/orgs","repos_url":"https://api.github.com/users/ghempton/repos","events_url":"https://api.github.com/users/ghempton/events{/privacy}","received_events_url":"https://api.github.com/users/ghempton/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T18:38:15Z","updated_at":"2015-06-22T18:38:15Z","body":"This seems pretty bad, does anyone have a workaround?"}}