← Back to team overview

graphite-dev team mailing list archive

Re: [Question #81840]: search not working in webUI

 

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

    Status: Open => Answered

chrismd proposed the following answer:
So the 500.html not found error is a completely unrelated bug. It just
means you don't have DEBUG = True in your local_settings.py and there is
a server-side error so instead of displaying the standard Django error
page (which is what you get with DEBUG = True) it is trying to return a
custom error page that I am supposed to get off my lazy ass and write
one of these days :)

I created Bug #424672 so I don't forget to finally fix this in the next
release. I keep forgetting because I always use DEBUG = True.

As for why the search feature does not work, well that is because I am
very indecisive and like to procrastinate fixing features that I don't
use myself :)

Basically the only problem is that is preventing this feature from
working is that an index file needs to be created. The index file should
contain a list of all the metrics stored on your graphite server. They
should be in a file called $GRAPHITE_ROOT/storage/index and its contents
should look like this:

foo.bar.metric1
foo.bar.metric2
...

The reason this doesn't work out of the box is because I have kept
changing my mind about how to create and maintain this index file. First
it was a cron job but that got annoying, so then it became part of
carbon (there used to be a carbon daemon that did maintenance tasks),
but then carbon got rewritten and this functionality didn't survive. And
so on and so forth, I just need to write a stupid script and at least
put it in the documentation. An error message for the user saying
something like "Tell your administrator to run the create-index script"
or whatever would be nice too. I will create another bug for this so I
don't forget to complete it for the next release either.

This is why open source is great. People are nice and submit bug reports
and ask questions, which makes me feel bad for being lazy, thus
resulting in me fixing bugs that would otherwise sit around forever :)

Thanks

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