{"action":"created","issue":{"url":"https://api.github.com/repos/deniszh/collectd-iostat-python/issues/23","repository_url":"https://api.github.com/repos/deniszh/collectd-iostat-python","labels_url":"https://api.github.com/repos/deniszh/collectd-iostat-python/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/deniszh/collectd-iostat-python/issues/23/comments","events_url":"https://api.github.com/repos/deniszh/collectd-iostat-python/issues/23/events","html_url":"https://github.com/deniszh/collectd-iostat-python/issues/23","id":328298752,"node_id":"MDU6SXNzdWUzMjgyOTg3NTI=","number":23,"title":"Unhandled python exception in read callback: OSError: [Errno 13] Permission denied","user":{"login":"Lotus907efi","id":10698072,"node_id":"MDQ6VXNlcjEwNjk4MDcy","avatar_url":"https://avatars2.githubusercontent.com/u/10698072?v=4","gravatar_id":"","url":"https://api.github.com/users/Lotus907efi","html_url":"https://github.com/Lotus907efi","followers_url":"https://api.github.com/users/Lotus907efi/followers","following_url":"https://api.github.com/users/Lotus907efi/following{/other_user}","gists_url":"https://api.github.com/users/Lotus907efi/gists{/gist_id}","starred_url":"https://api.github.com/users/Lotus907efi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lotus907efi/subscriptions","organizations_url":"https://api.github.com/users/Lotus907efi/orgs","repos_url":"https://api.github.com/users/Lotus907efi/repos","events_url":"https://api.github.com/users/Lotus907efi/events{/privacy}","received_events_url":"https://api.github.com/users/Lotus907efi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-31T21:11:24Z","updated_at":"2018-06-01T08:15:25Z","closed_at":null,"author_association":"NONE","body":"I have setup the collectd_iostat_python.py module in /usr/lib64/collectd/iostatpy/ and used the following config file:\r\n\r\n<LoadPlugin python>\r\n    Globals true\r\n</LoadPlugin>\r\n\r\n<Plugin python>\r\n    ModulePath \"/usr/lib64/collectd/iostat_specialpy\"\r\n    Import \"collectd_iostat_python\"\r\n\r\n    <Module collectd_iostat_python>\r\n        Path \"/usr/bin/iostat\"\r\n        Interval 30\r\n        IostatInterval 12\r\n        Count 2\r\n        Verbose false\r\n        NiceNames true\r\n        PluginName collectd_iostat_python\r\n    </Module>\r\n</Plugin>\r\n\r\nWhen I run collectd from the command line as root using the command:\r\n\r\n /usr/sbin/collectd -f -C /etc/collectd.conf\r\n\r\neverything seems fine, but when I start it with:\r\n\r\nsystemctl start collectd\r\n\r\nit starts but when I check the statususing:\r\n\r\nsystemctl status -l collectd\r\n\r\nI see this error displayed:\r\n\r\nMay 31 20:58:52 overcloud-controller-2 collectd[676789]: Unhandled python exception in read callback: OSError: [Errno 13] Permission denied\r\n\r\nIf I run the collectd_iostat_python.py module using:\r\n\r\n# python /usr/lib64/collectd/iostatpy/collectd_iostat_python.py\r\n\r\nas root or a regular user I get things like this back:\r\n\r\nsda.wrqm_s:0.0\r\nsda.rrqm_s:0.0\r\nsda.await:0.0\r\nsda.svctm:0.0\r\nsda.kB_read:0.0\r\nsda.avgrq_sz:9.09\r\nsda.w_await:0.0\r\nsda.avgqu_sz:0.0\r\nsda.r_s:0.0\r\nsda.kB_wrtn_s:72.75\r\nsda.kB_read_s:0.0\r\nsda.rkB_s:0.0\r\nsda.w_s:16.0\r\nsda.kB_wrtn:145.0\r\nsda.wkB_s:72.75\r\nsda.tps:16.0\r\nsda.r_await:0.0\r\nsda._util:0.0\r\n\r\nwhat could be causing this permission denied error? \r\nI tried adding executable permission to the collectd_iostat_python.py file I have installed in /usr/lib64/collectd/iostat_specialpy/ and checked the permissions on the directory but still getting the same error when I start the collectd service."},"comment":{"url":"https://api.github.com/repos/deniszh/collectd-iostat-python/issues/comments/393804164","html_url":"https://github.com/deniszh/collectd-iostat-python/issues/23#issuecomment-393804164","issue_url":"https://api.github.com/repos/deniszh/collectd-iostat-python/issues/23","id":393804164,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzgwNDE2NA==","user":{"login":"deniszh","id":1227222,"node_id":"MDQ6VXNlcjEyMjcyMjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1227222?v=4","gravatar_id":"","url":"https://api.github.com/users/deniszh","html_url":"https://github.com/deniszh","followers_url":"https://api.github.com/users/deniszh/followers","following_url":"https://api.github.com/users/deniszh/following{/other_user}","gists_url":"https://api.github.com/users/deniszh/gists{/gist_id}","starred_url":"https://api.github.com/users/deniszh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniszh/subscriptions","organizations_url":"https://api.github.com/users/deniszh/orgs","repos_url":"https://api.github.com/users/deniszh/repos","events_url":"https://api.github.com/users/deniszh/events{/privacy}","received_events_url":"https://api.github.com/users/deniszh/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T08:15:25Z","updated_at":"2018-06-01T08:15:25Z","author_association":"OWNER","body":"According to https://github.com/collectd/collectd/blob/master/contrib/systemd.collectd.service it probably requires some extra capabilities."}}
{"actor":{"display_login":"deniszh"}}