DatabaseError: no such table: auth_user

Asked by boolean2 on 2012-02-08

I am receiving the following trace on a fresh install of all 0.9.9. Any ideas?

Ubuntu 10.10
Python 2.6.6
py2cairo 1.10.0
python-django 1.2.3
django-tagging 0.3.1
python-twisted 10.1.0
Apache mod_wsgi

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 91, in get_response
    request.path_info)
  File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py", line 217, in resolve
    sub_match = pattern.resolve(new_path)
  File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py", line 123, in resolve
    return self.callback, args, kwargs
  File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py", line 129, in _get_callback
    self._callback = get_callable(self._callback_str)
  File "/usr/lib/pymodules/python2.6/django/utils/functional.py", line 124, in wrapper
    result = func(*args)
  File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py", line 56, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)
  File "/usr/lib/pymodules/python2.6/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/opt/graphite/webapp/graphite/browser/views.py", line 20, in <module>
    from graphite.util import getProfile, getProfileByUsername, defaultUser, json
  File "/opt/graphite/webapp/graphite/util.py", line 55, in <module>
    defaultUser = User.objects.get(username='default')
  File "/usr/lib/pymodules/python2.6/django/db/models/manager.py", line 132, in get
    return self.get_query_set().get(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 336, in get
    num = len(clone)
  File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 81, in __len__
    self._result_cache = list(self.iterator())
  File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 269, in iterator
    for row in compiler.results_iter():
  File "/usr/lib/pymodules/python2.6/django/db/models/sql/compiler.py", line 672, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/usr/lib/pymodules/python2.6/django/db/models/sql/compiler.py", line 727, in execute_sql
    cursor.execute(sql, params)
  File "/usr/lib/pymodules/python2.6/django/db/backends/sqlite3/base.py", line 200, in execute
    return Database.Cursor.execute(self, query, params)
DatabaseError: no such table: auth_user

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Nicholas Leskiw
Solved:
2012-02-08
Last query:
2012-02-08
Last reply:
2012-02-08
Best Nicholas Leskiw (nleskiw) said : #1

Go to /opt/graphite/webapp/graphite/
Run python ./manage.py syncdb

See if that helps.

-Nick

On Feb 7, 2012, at 11:45 PM, boolean2 <email address hidden> wrote:

> New question #187148 on Graphite:
> https://answers.launchpad.net/graphite/+question/187148
>
> I am receiving the following trace on a fresh install of all 0.9.9. Any ideas?
>
> Ubuntu 10.10
> Python 2.6.6
> py2cairo 1.10.0
> python-django 1.2.3
> django-tagging 0.3.1
> python-twisted 10.1.0
> Apache mod_wsgi
>
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 91, in get_response
> request.path_info)
> File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py", line 217, in resolve
> sub_match = pattern.resolve(new_path)
> File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py", line 123, in resolve
> return self.callback, args, kwargs
> File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py", line 129, in _get_callback
> self._callback = get_callable(self._callback_str)
> File "/usr/lib/pymodules/python2.6/django/utils/functional.py", line 124, in wrapper
> result = func(*args)
> File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py", line 56, in get_callable
> lookup_view = getattr(import_module(mod_name), func_name)
> File "/usr/lib/pymodules/python2.6/django/utils/importlib.py", line 35, in import_module
> __import__(name)
> File "/opt/graphite/webapp/graphite/browser/views.py", line 20, in <module>
> from graphite.util import getProfile, getProfileByUsername, defaultUser, json
> File "/opt/graphite/webapp/graphite/util.py", line 55, in <module>
> defaultUser = User.objects.get(username='default')
> File "/usr/lib/pymodules/python2.6/django/db/models/manager.py", line 132, in get
> return self.get_query_set().get(*args, **kwargs)
> File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 336, in get
> num = len(clone)
> File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 81, in __len__
> self._result_cache = list(self.iterator())
> File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 269, in iterator
> for row in compiler.results_iter():
> File "/usr/lib/pymodules/python2.6/django/db/models/sql/compiler.py", line 672, in results_iter
> for rows in self.execute_sql(MULTI):
> File "/usr/lib/pymodules/python2.6/django/db/models/sql/compiler.py", line 727, in execute_sql
> cursor.execute(sql, params)
> File "/usr/lib/pymodules/python2.6/django/db/backends/sqlite3/base.py", line 200, in execute
> return Database.Cursor.execute(self, query, params)
> DatabaseError: no such table: auth_user
>
> --
> 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 : <email address hidden>
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help : https://help.launchpad.net/ListHelp

boolean2 (drewnh) said : #2

Fixed, thanks!

boolean2 (drewnh) said : #3

Thanks Nicholas Leskiw, that solved my question.