← Back to team overview

graphite-dev team mailing list archive

[Question #219613]: Carbon exceptions.NameError longwhisper

 

New question #219613 on Graphite:
https://answers.launchpad.net/graphite/+question/219613

Hello,

I try to install graphite + carbon + whisper for graphing Shinken data and I get a problem, carbos has creates directories for hosts/services but no data is written in the files. Example in the "/opt/graphite/storage/whisper/k2000/Memory" directory are some files with zero bytes :

-rw-r--r--  1 root root    0 2013-01-19 17:28 ram_used_crit.wsp
-rw-r--r--  1 root root    0 2013-01-19 17:28 ram_used_warn.wsp
-rw-r--r--  1 root root    0 2013-01-19 17:28 ram_used.wsp
-rw-r--r--  1 root root    0 2013-01-19 17:28 swap_used_crit.wsp
-rw-r--r--  1 root root    0 2013-01-19 17:28 swap_used_warn.wsp
-rw-r--r--  1 root root    0 2013-01-19 17:28 swap_used.wsp

The console log contains many Python Tracebacks like :

Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.6/dist-packages/twisted/python/threadpool.py", line 207, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/opt/graphite/lib/carbon/writer.py", line 158, in writeForever
    writeCachedDataPoints()
  File "/opt/graphite/lib/carbon/writer.py", line 118, in writeCachedDataPoints
    whisper.create(dbFilePath, archiveConfig, xFilesFactor, aggregationMethod, settings.WHISPER_SPARSE_CREATE)
  File "/usr/local/lib/python2.6/dist-packages/whisper.py", line 336, in create
    archiveCount = struct.pack(longwhisper.pyFormat, len(archiveList))
exceptions.NameError: global name 'longwhisper' is not defined

I don't know why the "longwhisper" format is not found: 
missing package ?
bad version match ?
..... my fault (bad parameters .....)?

Regards

JP P




-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.