Consistent carbon error in Ubuntu 13.10, graphite 0.9.12

Asked by Arild Jensen

I'm running Ubuntu 13.10 and installed Graphite 0.9.12 via apt-get. In /var/log/carbon/console.log I get this error whenever I try to feed data to port 2003:

21/12/2013 16:43:37 :: Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 761, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 172, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/carbon/writer.py", line 149, in writeForever
    writeCachedDataPoints()
  File "/usr/lib/python2.7/dist-packages/carbon/writer.py", line 121, in writeCachedDataPoints
    settings.WHISPER_FALLOCATE_CREATE)
exceptions.TypeError: create() takes at most 5 arguments (6 given)

This happens when I try simple test data such as:

echo "local.random.diceroll 5 `date +%s`" | nc -q0 192.168.1.254 2003

The graphite-web component works fine and does display graphs under graphite.carbon.agents but not anywhere else.

I'm at a loss and would appreciate any help.

Thank you!

-Arild Jensen

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Brian Hatfield (bmhatfield) said :
#1

Make sure Whisper, Carbon and Graphite-Web are all the same version. This
strikes me as an issue that could occur if you upgraded Graphite + Carbon
but not Whisper.

On Sat, Dec 21, 2013 at 8:01 PM, Arild Jensen <
<email address hidden>> wrote:

> New question #241125 on Graphite:
> https://answers.launchpad.net/graphite/+question/241125
>
> I'm running Ubuntu 13.10 and installed Graphite 0.9.12 via apt-get. In
> /var/log/carbon/console.log I get this error whenever I try to feed data to
> port 2003:
>
> 21/12/2013 16:43:37 :: Unhandled Error
> Traceback (most recent call last):
> File "/usr/lib/python2.7/threading.py", line 761, in run
> self.__target(*self.__args, **self.__kwargs)
> File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py",
> line 172, in _worker
> result = context.call(ctx, function, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line
> 118, in callWithContext
> return self.currentContext().callWithContext(ctx, func, *args, **kw)
> File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line
> 81, in callWithContext
> return func(*args,**kw)
> --- <exception caught here> ---
> File "/usr/lib/python2.7/dist-packages/carbon/writer.py", line 149, in
> writeForever
> writeCachedDataPoints()
> File "/usr/lib/python2.7/dist-packages/carbon/writer.py", line 121, in
> writeCachedDataPoints
> settings.WHISPER_FALLOCATE_CREATE)
> exceptions.TypeError: create() takes at most 5 arguments (6 given)
>
> This happens when I try simple test data such as:
>
> echo "local.random.diceroll 5 `date +%s`" | nc -q0 192.168.1.254 2003
>
> The graphite-web component works fine and does display graphs under
> graphite.carbon.agents but not anywhere else.
>
> I'm at a loss and would appreciate any help.
>
> Thank you!
>
> -Arild Jensen
>
> --
> You received this question notification because you are a member of
> graphite-dev, which is an answer contact for Graphite.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Arild Jensen (arildjensen) said :
#2

Thank you for the reply Brian.

I've confirmed, using dpkg, the versions are correct:

$ dpkg -l | grep whisper
ii python-whisper 0.9.12-1 all database engine for fast, reliable fixed-sized databases
$ dpkg -l | grep graphite
ii graphite-carbon 0.9.12-1 all backend data caching and persistence daemon for Graphite
ii graphite-web 0.9.12+debian-1 all Enterprise Scalable Realtime Graphing

To be in the safe side I reinstalled python-whisper and restarted carbon-cache, same issue.

Some questions:
- At launchpad.net the latest version is 0.9.10, not 0.9.12. Which is correct?
- If I want to do a full reinstall of graphite, apart from removing the packages, how do I completely delete the data/whisper files?

Thanks!

Can you help with this problem?

Provide an answer of your own, or ask Arild Jensen for more information if necessary.

To post a message you must log in.