error in carbon 0.9.5 logs

Asked by spliff

We are getting this error in our console.log file many times (even multiple times per second)

The system is fc11 64-bit. Any ideas

11/02/2010 07:46:48 :: Unhandled Error
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib64/python2.6/site-packages/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/opt/graphite/carbon/lib/carbon/writer.py", line 144, in writeForever
    writeCachedDataPoints()
--- <exception caught here> ---
  File "/opt/graphite/carbon/lib/carbon/writer.py", line 103, in writeCachedDataPoints
    whisper.update_many(dbFilePath, datapoints)
  File "/usr/lib/python2.6/site-packages/whisper.py", line 300, in update_many
    header = __readHeader(fh)
  File "/usr/lib/python2.6/site-packages/whisper.py", line 93, in __readHeader
    (lastUpdate,maxRetention,xff,archiveCount) = struct.unpack(metadataFormat,packedMetadata)
struct.error: unpack requires a string argument of length 16

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
chrismd (chrismd) said :
#1

This error happens when one or more of your .wsp files is zero bytes in size (possibly from being created right as the filesystem filled up). Deleting the empty file is a simple workaround. It should be pretty easy for me to detect this in the code and automatically delete and recreate files like this in the future.

Can you help with this problem?

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

To post a message you must log in.