hopsoft / docker-graphite-statsd

Docker image for Graphite & Statsd
MIT License
867 stars 309 forks source link

mount empty volumes at /opt/graphite, /opt/graphite/conf, /opt/graphite/storage, or /opt/statsd doesn't work properly #67

Closed zhuoyikang closed 8 years ago

zhuoyikang commented 8 years ago

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 101, in get_response resolver_match = resolver.resolve(request.path_info) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 340, in resolve sub_match = pattern.resolve(new_path) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 224, in resolve return ResolverMatch(self.callback, args, kwargs, self.name) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 231, in callback self._callback = get_callable(self._callback_str) File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 31, in wrapper result = func(args) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 98, in get_callable mod = import_module(mod_name) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module import(name) File "/opt/graphite/webapp/graphite/browser/views.py", line 22, in from graphite.util import getProfile, getProfileByUsername, defaultUser, json File "/opt/graphite/webapp/graphite/util.py", line 81, in defaultUser = User.objects.get(username='default') File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 143, in get return self.get_query_set().get(_args, _kwargs) File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 398, in get num = len(clone) File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 106, in len self._result_cache = list(self.iterator()) File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 317, in iterator for row in compiler.results_iter(): File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 775, in results_iter for rows in self.execute_sql(MULTI): File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 846, in execute_sql cursor.execute(sql, params) File "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py", line 366, in execute six.reraise(utils.DatabaseError, utils.DatabaseError(*tuple(e.args)), sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py", line 362, in execute return Database.Cursor.execute(self, query, params) DatabaseError: no such table: auth_user

zhuoyikang commented 8 years ago

sorry:

i pull the images to my machine, and run it with: -v ~/source/docker/statsd/graphite-storage:/opt/graphite/storage \

it works just fine .

so, it's not the dockerfile's fault