← Back to team overview

graphite-dev team mailing list archive

Re: [Question #229355]: Disappeared data in webapp after coping db files.

 

Question #229355 on Graphite changed:
https://answers.launchpad.net/graphite/+question/229355

Xel posted a new comment:
I found that webapp getting error while retieving treeview nodes:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "./webapp/graphite/metrics/views.py", line 134, in find_view
    matches = list( store.find(query) )
  File "./webapp/graphite/storage.py", line 49, in find
    for match in self.find_all(query):
  File "./webapp/graphite/storage.py", line 80, in find_all
    for match in find(directory, query):
  File "./webapp/graphite/storage.py", line 166, in find
    yield GzippedWhisperFile(absolute_path, metric_path)
  File "./webapp/graphite/storage.py", line 284, in __init__
    start = time.time() - whisper.info(self.fs_path)['maxRetention']
  File "/usr/local/lib/python2.7/dist-packages/whisper.py", line 630, in info
    info = __readHeader(fh)
  File "/usr/local/lib/python2.7/dist-packages/whisper.py", line 187, in __readHeader
    raise CorruptWhisperFile("Unable to read archive %d metadata" % i, fh.name)
CorruptWhisperFile: Unable to read archive 321 metadata (/graphite/storage/whisper/TestRandom/test123.wsp.gz)

This error message I'm getting for all nodes in treeview, i.e. for all my graphs.
I know that new statistics is sended to Graphite constantly and maybe files are updated in wrong way, but I may be wrong, please correct me.
Anyway, I want to know: what is the right way to backup whisper data and restore them?

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