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

dogstatsd error #894

Closed
clofresh opened this issue Apr 3, 2014 · 10 comments
Closed

dogstatsd error #894

clofresh opened this issue Apr 3, 2014 · 10 comments
Assignees

Comments

@clofresh
Copy link
Contributor

clofresh commented Apr 3, 2014

 2014-04-03 12:22:57 UTC | ERROR | dd.dogstatsd | dogstatsd(dogstatsd:288) | Error receiving datagram
 Traceback (most recent call last):
   File "/usr/bin/dogstatsd", line 276, in start
     aggregator_submit(message)
   File "/usr/share/datadog/agent/aggregator.py", line 410, in submit_packets
     self.submit_metric(name, value, mtype, tags=tags, sample_rate=sample_rate)
   File "/usr/share/datadog/agent/aggregator.py", line 513, in submit_metric
     if context not in metric_by_context:
 TypeError: argument of type 'NoneType' is not iterable
@clutchski
Copy link
Contributor

@dcoleman17 might be related to your bucketing work

@dcoleman17
Copy link
Contributor

Looks like it is the bucketing changes. I think that self.current_mbc should be initialized to {} instead of None at https://github.com/DataDog/dd-agent/blob/master/aggregator.py#L471 and https://github.com/DataDog/dd-agent/blob/master/aggregator.py#L580
I'll look a bit more.

@dcoleman17 dcoleman17 self-assigned this Apr 3, 2014
@dcoleman17
Copy link
Contributor

d8e8b3e

@alq666
Copy link
Member

alq666 commented Apr 7, 2014

@dcoleman17 this issue has started to pop up in the field (https://datadog.desk.com/agent/case/9575). Can you make sure it gets fixed and release soon?

cc @remh

@alq666
Copy link
Member

alq666 commented May 8, 2014

Fixed a while back.

@alq666 alq666 closed this as completed May 8, 2014
@sirshurf
Copy link

I am still getting this:

mysql
-----
  - instance #0 [ERROR]: TypeError("argument of type 'NoneType' is not iterable",)
  - Collected 28 metrics & 0 events
  - Dependencies:
      - MySQLdb: 1.2.3

Collector 4.2.1 just installed... :(

@rawkode
Copy link

rawkode commented May 28, 2014

I'm getting this also, version 4.3.0

2014-05-28 10:12:06 BST | ERROR | dd.collector | checks.mysql(__init__.py:515) | Check 'mysql' instance #0 failed
Traceback (most recent call last):
  File "/usr/share/datadog/agent/checks/__init__.py", line 506, in run
    self.check(copy.deepcopy(instance))
  File "/usr/share/datadog/agent/checks.d/mysql.py", line 72, in check
    self._collect_metrics(host, db, tags, options)
  File "/usr/share/datadog/agent/checks.d/mysql.py", line 136, in _collect_metrics
    if 'galera_cluster' in options and options['galera_cluster']:
TypeError: argument of type 'NoneType' is not iterable

@clofresh
Copy link
Contributor Author

Do you have an options value in your mysql.yaml but don't specify anything for it? Is it fixed when you remove the options value altogether?

@rawkode
Copy link

rawkode commented May 29, 2014

Removing the empty options array worked a treat.

Thanks, @clofresh.

@sirshurf
Copy link

Same here... removed empty options...

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

6 participants