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

'tuple' object has no attribute 'rss' #958

Closed
estahn opened this issue May 22, 2014 · 8 comments
Closed

'tuple' object has no attribute 'rss' #958

estahn opened this issue May 22, 2014 · 8 comments
Labels
Milestone

Comments

@estahn
Copy link

estahn commented May 22, 2014

When i enable process.yaml with a couple of default processes i receive this error messages:

    process
    -------
      - instance #0 [ERROR]: AttributeError("'tuple' object has no attribute 'rss'",)
      - instance #1 [ERROR]: AttributeError("'tuple' object has no attribute 'rss'",)
      - instance #2 [ERROR]: AttributeError("'tuple' object has no attribute 'rss'",)
      - Collected 3 metrics & 0 events

Python info:

# python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil
<module 'psutil' from '/usr/lib/pymodules/python2.6/psutil/__init__.pyc'>
@remh
Copy link
Contributor

remh commented May 23, 2014

Hi @estahn
Thanks a lot for your feedback!
Can you tell me what version of psutil you are using ?
Also coyld you reach out to support@datadoghq.com with the content of your log file /var/log/datadog/collector.log

Thanks!

@estahn
Copy link
Author

estahn commented May 23, 2014

@remh python-psutil 0.1.3-1 ... It's the one installed via apt-get.

Exception in /var/log/datadog/collector.log:

2014-05-24 03:11:07 EST | ERROR | dd.collector | checks.process(__init__.py:470) | Check 'process' instance #0 failed
Traceback (most recent call last):
  File "/usr/share/datadog/agent/checks/__init__.py", line 461, in run
    self.check(instance)
  File "/usr/share/datadog/agent/checks.d/process.py", line 197, in check
    psutil, cpu_check_interval)))
  File "/usr/share/datadog/agent/checks.d/process.py", line 134, in get_process_metrics
    rss += mem.rss
AttributeError: 'tuple' object has no attribute 'rss'

@estahn
Copy link
Author

estahn commented May 29, 2014

@remh Is this information enough?

@estahn
Copy link
Author

estahn commented May 29, 2014

#936 might be related.

@remh
Copy link
Contributor

remh commented Jun 10, 2014

Hi @estahn
Sorry for the delay.
It's definitely a bug in the Agent. It will be fixed in the next version.
As a quick work around could you install version 1.2.1 of psutil ?
You can do it with easy_install:
sudo easy_install psutil==1.2.1

Thanks for the feedback!

@remh remh added this to the 5.0 milestone Jun 10, 2014
@estahn
Copy link
Author

estahn commented Jun 19, 2014

Unfortunately we can't use the workaround. Do you know when the next version will be released?

@remh
Copy link
Contributor

remh commented Jun 19, 2014

Hi @estahn .
Would you be interested in beta testing the new version of the Agent ? It would solve your issue.

It's pretty stable now but will probably won't be out before a few more weeks.

@remh remh added the 3 - Done label Jul 10, 2014
@remh
Copy link
Contributor

remh commented Aug 22, 2014

Fixed with Agent 5.0.0

@remh remh closed this as completed Aug 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants