Skip to content

Unhandled python exception in read callback: OSError: [Errno 13] Permission denied #23

@Lotus907efi

Description

@Lotus907efi

I have setup the collectd_iostat_python.py module in /usr/lib64/collectd/iostatpy/ and used the following config file:

Globals true ModulePath "/usr/lib64/collectd/iostat_specialpy" Import "collectd_iostat_python"
<Module collectd_iostat_python>
    Path "/usr/bin/iostat"
    Interval 30
    IostatInterval 12
    Count 2
    Verbose false
    NiceNames true
    PluginName collectd_iostat_python
</Module>

When I run collectd from the command line as root using the command:

/usr/sbin/collectd -f -C /etc/collectd.conf

everything seems fine, but when I start it with:

systemctl start collectd

it starts but when I check the statususing:

systemctl status -l collectd

I see this error displayed:

May 31 20:58:52 overcloud-controller-2 collectd[676789]: Unhandled python exception in read callback: OSError: [Errno 13] Permission denied

If I run the collectd_iostat_python.py module using:

python /usr/lib64/collectd/iostatpy/collectd_iostat_python.py

as root or a regular user I get things like this back:

sda.wrqm_s:0.0
sda.rrqm_s:0.0
sda.await:0.0
sda.svctm:0.0
sda.kB_read:0.0
sda.avgrq_sz:9.09
sda.w_await:0.0
sda.avgqu_sz:0.0
sda.r_s:0.0
sda.kB_wrtn_s:72.75
sda.kB_read_s:0.0
sda.rkB_s:0.0
sda.w_s:16.0
sda.kB_wrtn:145.0
sda.wkB_s:72.75
sda.tps:16.0
sda.r_await:0.0
sda._util:0.0

what could be causing this permission denied error?
I 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions