Problem running Graphite

Asked by Frederico Almeida on 2016-05-15

Hello all.
I am pulling my hair out to make graphite run on my monitoring server.
This is a production monitoring server using omd/check_mk and now i want to change the graphs for graphite.
Can you guys please give me a help?
I have tried for a log time now and can not understand what is going on.

Here is the log for what i think is the problem:

mod_wsgi (pid=26770): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Sun May 15 10:04:18.759579 2016] [:error] [pid 26770] mod_wsgi (pid=26770): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Sun May 15 10:04:18.759607 2016] [:error] [pid 26770] Traceback (most recent call last):
[Sun May 15 10:04:18.759632 2016] [:error] [pid 26770] File "/opt/graphite/conf/graphite.wsgi", line 46, in <module>
[Sun May 15 10:04:18.759719 2016] [:error] [pid 26770] import graphite.metrics.search # noqa
[Sun May 15 10:04:18.759734 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/graphite/metrics/search.py", line 6, in <module>
[Sun May 15 10:04:18.759814 2016] [:error] [pid 26770] from graphite.storage import is_pattern, match_entries
[Sun May 15 10:04:18.759828 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/graphite/storage.py", line 9, in <module>
[Sun May 15 10:04:18.759974 2016] [:error] [pid 26770] from graphite.remote_storage import RemoteStore
[Sun May 15 10:04:18.759989 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/graphite/remote_storage.py", line 8, in <module>
[Sun May 15 10:04:18.760075 2016] [:error] [pid 26770] from graphite.util import unpickle
[Sun May 15 10:04:18.760089 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/graphite/util.py", line 81, in <module>
[Sun May 15 10:04:18.760175 2016] [:error] [pid 26770] defaultUser = User.objects.get(username='default')
[Sun May 15 10:04:18.760188 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/models/manager.py", line 151, in get
[Sun May 15 10:04:18.760300 2016] [:error] [pid 26770] return self.get_queryset().get(*args, **kwargs)
[Sun May 15 10:04:18.760314 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 304, in get
[Sun May 15 10:04:18.760818 2016] [:error] [pid 26770] num = len(clone)
[Sun May 15 10:04:18.760839 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 77, in __len__
[Sun May 15 10:04:18.760861 2016] [:error] [pid 26770] self._fetch_all()
[Sun May 15 10:04:18.760871 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 857, in _fetch_all
[Sun May 15 10:04:18.760887 2016] [:error] [pid 26770] self._result_cache = list(self.iterator())
[Sun May 15 10:04:18.760896 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line 220, in iterator
[Sun May 15 10:04:18.760911 2016] [:error] [pid 26770] for row in compiler.results_iter():
[Sun May 15 10:04:18.760920 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 713, in results_iter
[Sun May 15 10:04:18.761263 2016] [:error] [pid 26770] for rows in self.execute_sql(MULTI):
[Sun May 15 10:04:18.761278 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 786, in execute_sql
[Sun May 15 10:04:18.761305 2016] [:error] [pid 26770] cursor.execute(sql, params)
[Sun May 15 10:04:18.761316 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
[Sun May 15 10:04:18.761412 2016] [:error] [pid 26770] return self.cursor.execute(sql, params)
[Sun May 15 10:04:18.761432 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
[Sun May 15 10:04:18.761552 2016] [:error] [pid 26770] six.reraise(dj_exc_type, dj_exc_value, traceback)
[Sun May 15 10:04:18.761566 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
[Sun May 15 10:04:18.761585 2016] [:error] [pid 26770] return self.cursor.execute(sql, params)
[Sun May 15 10:04:18.761595 2016] [:error] [pid 26770] File "/usr/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 452, in execute
[Sun May 15 10:04:18.761784 2016] [:error] [pid 26770] return Database.Cursor.execute(self, query, params)
[Sun May 15 10:04:18.761811 2016] [:error] [pid 26770] OperationalError: no such table: auth_user

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Frederico Almeida
Solved:
2016-05-15
Last query:
2016-05-15
Last reply:

Please ignore as after downgrading django install and reinstall all i was able to make it go away. Now i have other problems....
The page for Graphite allows me to login but i think the content is not correct. If i click on dashboard i get a blank page with "Drop to Merge".

Also what i dont understand is when i go to syncdb after graphite install it does not ask me for a user, just says created.

Denis Zhdanov (deniszhdanov) said : #3

Hello Frederico,

Not really understand what your question is, tbh...

Ok, after a big review of my apache config file i am able to use graphite! :)
Sorry for wasting space on my questions!