graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #06319
Re: [Question #333959]: graphite.wsgi cannot be loaded as Python module
Question #333959 on Graphite changed:
https://answers.launchpad.net/graphite/+question/333959
Status: Answered => Open
Blue Jakester is still having a problem:
Thanks for the suggestion Denis. I'm still encountering an error and
the web interface doesn't appear. Browser shows "The server encountered
an internal error or misconfiguration and was unable to complete your
request."
# pwd
/opt/graphite/webapp/graphite
# python ./manage.py syncdb
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
From: /opt/graphite/storage/log/webapp/error.log
[Thu Aug 11 14:49:53.296142 2016] [:error] [pid 1379] [remote 10.2.25.43:148] mod_wsgi (pid=1379): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Thu Aug 11 14:49:53.296200 2016] [:error] [pid 1379] [remote 10.2.25.43:148] mod_wsgi (pid=1379): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Thu Aug 11 14:49:53.296233 2016] [:error] [pid 1379] [remote 10.2.25.43:148] Traceback (most recent call last):
[Thu Aug 11 14:49:53.296263 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/opt/graphite/conf/graphite.wsgi", line 46, in <module>
[Thu Aug 11 14:49:53.296306 2016] [:error] [pid 1379] [remote 10.2.25.43:148] import graphite.metrics.search # noqa
[Thu Aug 11 14:49:53.296323 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/graphite/metrics/search.py", line 6, in <module>
[Thu Aug 11 14:49:53.296349 2016] [:error] [pid 1379] [remote 10.2.25.43:148] from graphite.storage import is_pattern, match_entries
[Thu Aug 11 14:49:53.296363 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/graphite/storage.py", line 9, in <module>
[Thu Aug 11 14:49:53.296401 2016] [:error] [pid 1379] [remote 10.2.25.43:148] from graphite.remote_storage import RemoteStore
[Thu Aug 11 14:49:53.296416 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/graphite/remote_storage.py", line 8, in <module>
[Thu Aug 11 14:49:53.296440 2016] [:error] [pid 1379] [remote 10.2.25.43:148] from graphite.util import unpickle
[Thu Aug 11 14:49:53.296454 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/graphite/util.py", line 81, in <module>
[Thu Aug 11 14:49:53.296477 2016] [:error] [pid 1379] [remote 10.2.25.43:148] defaultUser = User.objects.get(username='default')
[Thu Aug 11 14:49:53.296491 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get
[Thu Aug 11 14:49:53.296526 2016] [:error] [pid 1379] [remote 10.2.25.43:148] return self.get_query_set().get(*args, **kwargs)
[Thu Aug 11 14:49:53.296542 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 361, in get
[Thu Aug 11 14:49:53.296590 2016] [:error] [pid 1379] [remote 10.2.25.43:148] num = len(clone)
[Thu Aug 11 14:49:53.296608 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 85, in __len__
[Thu Aug 11 14:49:53.296661 2016] [:error] [pid 1379] [remote 10.2.25.43:148] self._result_cache = list(self.iterator())
[Thu Aug 11 14:49:53.296685 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 291, in iterator
[Thu Aug 11 14:49:53.296710 2016] [:error] [pid 1379] [remote 10.2.25.43:148] for row in compiler.results_iter():
[Thu Aug 11 14:49:53.296725 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 763, in results_iter
[Thu Aug 11 14:49:53.296749 2016] [:error] [pid 1379] [remote 10.2.25.43:148] for rows in self.execute_sql(MULTI):
[Thu Aug 11 14:49:53.296763 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 818, in execute_sql
[Thu Aug 11 14:49:53.296785 2016] [:error] [pid 1379] [remote 10.2.25.43:148] cursor.execute(sql, params)
[Thu Aug 11 14:49:53.296800 2016] [:error] [pid 1379] [remote 10.2.25.43:148] File "/usr/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 337, in execute
[Thu Aug 11 14:49:53.296824 2016] [:error] [pid 1379] [remote 10.2.25.43:148] return Database.Cursor.execute(self, query, params)
[Thu Aug 11 14:49:53.296850 2016] [:error] [pid 1379] [remote 10.2.25.43:148] DatabaseError: no such table: auth_user
[Thu Aug 11 14:49:53.468806 2016] [:error] [pid 1378] [remote 10.2.25.43:140] mod_wsgi (pid=1378): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Thu Aug 11 14:49:53.468852 2016] [:error] [pid 1378] [remote 10.2.25.43:140] mod_wsgi (pid=1378): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Thu Aug 11 14:49:53.468894 2016] [:error] [pid 1378] [remote 10.2.25.43:140] Traceback (most recent call last):
[Thu Aug 11 14:49:53.468938 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/opt/graphite/conf/graphite.wsgi", line 46, in <module>
[Thu Aug 11 14:49:53.469002 2016] [:error] [pid 1378] [remote 10.2.25.43:140] import graphite.metrics.search # noqa
[Thu Aug 11 14:49:53.469030 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/graphite/metrics/search.py", line 6, in <module>
[Thu Aug 11 14:49:53.469075 2016] [:error] [pid 1378] [remote 10.2.25.43:140] from graphite.storage import is_pattern, match_entries
[Thu Aug 11 14:49:53.469101 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/graphite/storage.py", line 9, in <module>
[Thu Aug 11 14:49:53.469161 2016] [:error] [pid 1378] [remote 10.2.25.43:140] from graphite.remote_storage import RemoteStore
[Thu Aug 11 14:49:53.469190 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/graphite/remote_storage.py", line 8, in <module>
[Thu Aug 11 14:49:53.469234 2016] [:error] [pid 1378] [remote 10.2.25.43:140] from graphite.util import unpickle
[Thu Aug 11 14:49:53.469262 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/graphite/util.py", line 81, in <module>
[Thu Aug 11 14:49:53.469308 2016] [:error] [pid 1378] [remote 10.2.25.43:140] defaultUser = User.objects.get(username='default')
[Thu Aug 11 14:49:53.469336 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get
[Thu Aug 11 14:49:53.469384 2016] [:error] [pid 1378] [remote 10.2.25.43:140] return self.get_query_set().get(*args, **kwargs)
[Thu Aug 11 14:49:53.469414 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 361, in get
[Thu Aug 11 14:49:53.469460 2016] [:error] [pid 1378] [remote 10.2.25.43:140] num = len(clone)
[Thu Aug 11 14:49:53.469488 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 85, in __len__
[Thu Aug 11 14:49:53.469532 2016] [:error] [pid 1378] [remote 10.2.25.43:140] self._result_cache = list(self.iterator())
[Thu Aug 11 14:49:53.469557 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 291, in iterator
[Thu Aug 11 14:49:53.469598 2016] [:error] [pid 1378] [remote 10.2.25.43:140] for row in compiler.results_iter():
[Thu Aug 11 14:49:53.469650 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 763, in results_iter
[Thu Aug 11 14:49:53.469712 2016] [:error] [pid 1378] [remote 10.2.25.43:140] for rows in self.execute_sql(MULTI):
[Thu Aug 11 14:49:53.469741 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 818, in execute_sql
[Thu Aug 11 14:49:53.469788 2016] [:error] [pid 1378] [remote 10.2.25.43:140] cursor.execute(sql, params)
[Thu Aug 11 14:49:53.469815 2016] [:error] [pid 1378] [remote 10.2.25.43:140] File "/usr/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 337, in execute
[Thu Aug 11 14:49:53.469859 2016] [:error] [pid 1378] [remote 10.2.25.43:140] return Database.Cursor.execute(self, query, params)
[Thu Aug 11 14:49:53.469902 2016] [:error] [pid 1378] [remote 10.2.25.43:140] DatabaseError: no such table: auth_user
--
You received this question notification because your team graphite-dev
is an answer contact for Graphite.