graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #06921
[Question #692930]: no such table: auth_user
New question #692930 on Graphite:
https://answers.launchpad.net/graphite/+question/692930
Have upgraded to 1.1.7 but am unable to see the UIs - composer or dashboard
Debug is on. Stack trace from composer is pasted below. The dashboard just displays "Drop To Merge"
Running:-
- python 3.8.5 in /usr/local/ prefix
- sqlite 3.33.0
- mod_wsgi 4.7.1
I have run following django commands
PYTHONPATH=/opt/graphite/webapp /usr/local/bin/django-admin.py migrate --noinput --settings=graphite.local_settings
Operations to perform:
Apply all migrations: (none)
Running migrations:
No migrations to apply.
Stack Trace from composer :-
Environment:
Request Method: GET
Request URL: http://xxxxxx.com/composer
Django Version: 3.0.10
Python Version: 3.8.5
Installed Applications:
('graphite.account',
'graphite.browser',
'graphite.composer',
'graphite.dashboard',
'graphite.events',
'graphite.functions',
'graphite.metrics',
'graphite.render',
'graphite.tags',
'graphite.url_shortener',
'graphite.whitelist',
'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.staticfiles',
'tagging')
Installed Middleware:
('graphite.middleware.LogExceptionsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.gzip.GZipMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 396, in execute
return Database.Cursor.execute(self, query, params)
The above exception (no such table: auth_user) was the direct cause of the following exception:
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/webapp/graphite/composer/views.py", line 27, in composer
profile = getProfile(request)
File "/opt/graphite/webapp/graphite/user_util.py", line 35, in getProfile
return default_profile()
File "/opt/graphite/webapp/graphite/user_util.py", line 49, in default_profile
user, created = User.objects.get_or_create(
File "/usr/local/lib/python3.8/site-packages/django/db/models/manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 559, in get_or_create
return self.get(**kwargs), False
File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 411, in get
num = len(clone)
File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 258, in __len__
self._fetch_all()
File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1261, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 57, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1154, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 100, in execute
return super().execute(sql, params)
File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 68, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 396, in execute
return Database.Cursor.execute(self, query, params)
Exception Type: OperationalError at /composer
Exception Value: no such table: auth_user
Does anyone have any ideas what I can look at next to resolve ?
--
You received this question notification because your team graphite-dev
is an answer contact for Graphite.