Skip to content

Error when running setup.py in raspberry pi #103

@fertrevino

Description

@fertrevino

The following error appears when running setup.py in a raspberry pi. After this, collectd is unable to start as shown below. Deleting the /etc/collectd-cloudwatch.conf makes collectd usable again. The generated cloudwatch conf is shown below. What is the possible cause and solution for this?

Error:

Plugin configuration written successfully.
CloudWatch collectd plugin is already configured in the existing collectd.conf file.
Stopping collectd process ... NOT OK
Starting collectd process ... NOT OK
Installation cancelled due to an error.
Executed command: '/usr/sbin/collectd'.
Error output: '[2022-03-24 11:46:29] plugin_load: plugin "logfile" successfully loaded.
Error: Parsing the config file failed!'.

Running sudo collectd generates this:

[2022-03-24 11:51:09] plugin_load: plugin "logfile" successfully loaded.
Error: Parsing the config file failed!
cat /etc/collectd-cloudwatch.conf 
LoadPlugin python

<Plugin python>
    ModulePath "/opt/collectd-plugins/"
    LogTraces true
    Interactive false
    Import "cloudwatch_writer"
</Plugin>

collectd version:

sudo apt-cache policy collectd
collectd:
  Installed: 5.12.0-7+rpi1
  Candidate: 5.12.0-7+rpi1
  Version table:
 *** 5.12.0-7+rpi1 500
        500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
        100 /var/lib/dpkg/status

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions