graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #01461
Re: [Question #172845]: how to find corrupt whisper file?
Question #172845 on Graphite changed:
https://answers.launchpad.net/graphite/+question/172845
Status: Open => Answered
Nicholas Leskiw proposed the following answer:
There's no automated way to find it.
I usually use
find /opt/graphite/storage/whisper -print -name '*.wsp' -type f -exec
whisper-info.py {} \; | less
Then look for the files that failed.
I usually get corrupt .wsp files when I try to create new metrics when the
disk is full...
-Nick
On Fri, Sep 30, 2011 at 12:25 PM, Bruce Lsyik <
question172845@xxxxxxxxxxxxxxxxxxxxx> wrote:
> New question #172845 on Graphite:
> https://answers.launchpad.net/graphite/+question/172845
>
> I have these errors in /var/log/carbon/console.log:
>
>
> 30/09/2011 10:19:14 :: Unhandled Error
> Traceback (most recent call last):
> File "/usr/lib64/python2.4/site-packages/twisted/python/threadpool.py",
> line 161, in _worker
> context.call(ctx, function, *args, **kwargs)
> File "/usr/lib64/python2.4/site-packages/twisted/python/context.py", line
> 59, in callWithContext
> return self.currentContext().callWithContext(ctx, func, *args, **kw)
> File "/usr/lib64/python2.4/site-packages/twisted/python/context.py", line
> 37, in callWithContext
> return func(*args,**kw)
> File "/usr/lib/python2.4/site-packages/carbon/writer.py", line 164, in
> writeForever
> writeCachedDataPoints()
> --- <exception caught here> ---
> File "/usr/lib/python2.4/site-packages/carbon/writer.py", line 119, in
> writeCachedDataPoints
> whisper.update_many(dbFilePath, datapoints)
> File "/usr/lib/python2.4/site-packages/whisper.py", line 393, in
> update_many
> return file_update_many(fh, points)
> File "/usr/lib/python2.4/site-packages/whisper.py", line 400, in
> file_update_many
> header = __readHeader(fh)
> File "/usr/lib/python2.4/site-packages/whisper.py", line 127, in
> __readHeader
> raise CorruptWhisperFile("Unable to read header", fh.name)
> whisper.CorruptWhisperFile: Unable to read header
>
>
> How do I find the corrupt file?
>
> --
> 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 : graphite-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.