Graphite 0.9.10: settings.DATABASES is improperly configured

Asked by Alexandr

Hello,

I'm installing graphite 0.9.10 on Debian wheezy (testing) server. All dependencies are met, installation was smooth. But when I run web interface I got a bunch of green error messages and the main error at the end, as I understand, is:

File "/usr/lib/python2.7/dist-packages/django/db/backends/dummy/base.py", line 15, in complain
    raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.

I found that the new database setting could be done in /opt/graphite/webapp/graphite/local.settings.py and I uncommented the following there:

DATABASES = {
    'default': {
        'NAME': '/opt/graphite/storage/graphite.db',
        'ENGINE': 'django.db.backends.sqlite3',
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
        'PORT': ''
    }
}

But, I do not see database file /opt/graphite/storage/graphite.db , so, these settings didn't help. Looks like sqlite database /opt/graphite/storage/graphite.db was not created during the installation for some reasons. How can I creat it now?

(I have graphite 0.9.9 installed and running and I didn't had such a problems with that version).

Thanks,
  Alexandr

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Alexandr
Solved:
Last query:
Last reply:
Revision history for this message
Alexandr (alexandr-bravo) said :
#1

Sorry, I should read docs carefully. manage.py syncdb solved the problem.

May be the only question is why that was not done during installation?

Alexandr

Revision history for this message
Lance Norskog (lance-norskog) said :
#2

Hi- I'm a newbie on Python/Django and tripped over this. It really led me into the weeds of Django-land. If you could please include an auto-build for an sqlite DB that would be great.

Also, please state in the docs exactly what level of expertise you expect people to have in the various technologies you use in Graphite.