Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to get collectd-types to work #51

Closed
jimdigriz opened this issue Feb 19, 2015 · 3 comments
Closed

unable to get collectd-types to work #51

jimdigriz opened this issue Feb 19, 2015 · 3 comments

Comments

@jimdigriz
Copy link

If I try to use collectd-types, I get the following:

(wheezy)root@extinctvm:~# bucky --collectd-types=/opt/telemetry/statsbox/types.db
Traceback (most recent call last):
  File "/usr/local/bin/bucky", line 9, in <module>
    load_entry_point('bucky==2.2.2', 'console_scripts', 'bucky')()
  File "/usr/local/lib/python2.7/dist-packages/bucky-2.2.2-py2.7.egg/bucky/main.py", line 216, in main
    parser.parse_args(values=cfg)
  File "/usr/lib/python2.7/optparse.py", line 1399, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib/python2.7/optparse.py", line 1439, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib/python2.7/optparse.py", line 1514, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib/python2.7/optparse.py", line 788, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/lib/python2.7/optparse.py", line 800, in take_action
    values.ensure_value(dest, []).append(value)
AttributeError: 'module' object has no attribute 'ensure_value'

The workaround I am using is to symlink /usr/local/share/collectd/types.db to /opt/telemetry/statsbox/types.db

No idea how to fix this.

This occurs for both the 'pip install' version and the version from git.

@trbs
Copy link
Owner

trbs commented Feb 19, 2015

This is a bug in bucky, thanks for reporting it.

I have committed a fix for this in the git version, could you please try and see if this fixes your issue ?

@jimdigriz
Copy link
Author

Looks good to me "ship it!"

(wheezy)root@extinctvm:~# /usr/local/bin/bucky --collectd-types=/opt/telemetry/statsbox/types.db
[2015-02-19 15:18:49,587][INFO] udpserver - Bound socket socket 127.0.0.1:23632
[2015-02-19 15:18:49,591][INFO] udpserver - Bound socket socket 127.0.0.1:25826
[2015-02-19 15:18:49,597][INFO] collectd - Loaded collectd types from /opt/telemetry/statsbox/types.db
[2015-02-19 15:18:49,605][INFO] udpserver - Bound socket socket 127.0.0.1:8125
[2015-02-19 15:18:49,608][ERROR] carbon - Failed to connect to 127.0.0.1:2003: [Errno 111] Connection refused
[2015-02-19 15:18:50,610][ERROR] carbon - Failed to connect to 127.0.0.1:2003: [Errno 111] Connection refused

Thanks!

@trbs
Copy link
Owner

trbs commented Feb 19, 2015

We have a new release :) v2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants