New question #407913 on Graphite:
https://answers.launchpad.net/graphite/+question/407913
I am a completely new user to Graphite-Web and fairly new to Apache/Django as
well. So please bear with me and entertain my newbie questions with answers
which would help me to set things up.
I've installed and configured things according to the documentation and
executed example-client.py and also started the server by doing the following:
smnode20vm06:/opt/graphite/webapp/graphite # python manage.py runserver
Also also started the carbon and apache servers by doing the following:
/opt/graphite/bin/carbon-cache.py start
service apache2 start
However when I browsed to the URL: localhost:8000, I see a mostly empty
Graphite Browser page with Documentation, Dashboard, and Events listed on top.
Clicking on Events would report "No events". I saw example client is generating
data to the whsiper backend. So what's missing in here for me to see the
visualization piece?
Also when I browsed to the default URL: localhost:80, I have a Server error and
when checking the error.log in /var/log/apache2, I saw the following error:
Tue Dec 20 16:54:13.411657 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] mod_wsgi (pid=7807): Exception occurred processing WSGI
script '/opt/graphite/conf/graphite.wsgi'.
[Tue Dec 20 16:54:13.411705 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] Traceback (most recent call last):
[Tue Dec 20 16:54:13.411723 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File
"/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg/django/core/handlers/wsgi.py",
line 158, in __call__
[Tue Dec 20 16:54:13.411823 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] self.load_middleware()
[Tue Dec 20 16:54:13.411835 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File
"/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg/django/core/handlers/base.py",
line 51, in load_middleware
[Tue Dec 20 16:54:13.411934 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] mw_class = import_string(middleware_path)
[Tue Dec 20 16:54:13.411946 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File
"/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg/django/utils/module_loading.py",
line 20, in import_string
[Tue Dec 20 16:54:13.412015 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] module = import_module(module_path)
[Tue Dec 20 16:54:13.412026 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File "/usr/lib64/python2.7/importlib/__init__.py", line
37, in import_module
[Tue Dec 20 16:54:13.412064 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] __import__(name)
[Tue Dec 20 16:54:13.412074 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File
"/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg/django/contrib/auth/middleware.py",
line 3, in <module>
[Tue Dec 20 16:54:13.412141 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] from django.contrib.auth.backends import
RemoteUserBackend
[Tue Dec 20 16:54:13.412152 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File
"/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg/django/contrib/auth/backends.py",
line 4, in <module>
[Tue Dec 20 16:54:13.412218 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] from django.contrib.auth.models import Permission
[Tue Dec 20 16:54:13.412229 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File
"/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg/django/contrib/auth/models.py",
line 4, in <module>
[Tue Dec 20 16:54:13.412342 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] from django.contrib.auth.base_user import
AbstractBaseUser, BaseUserManager
[Tue Dec 20 16:54:13.412353 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File
"/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg/django/contrib/auth/base_user.py",
line 49, in <module>
[Tue Dec 20 16:54:13.412416 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] class AbstractBaseUser(models.Model):
[Tue Dec 20 16:54:13.412427 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File
"/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg/django/db/models/base.py",
line 94, in __new__
[Tue Dec 20 16:54:13.412777 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] app_config = apps.get_containing_app_config(module)
[Tue Dec 20 16:54:13.412797 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File
"/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg/django/apps/registry.py",
line 239, in get_containing_app_config
[Tue Dec 20 16:54:13.412912 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] self.check_apps_ready()
[Tue Dec 20 16:54:13.412923 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] File
"/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg/django/apps/registry.py",
line 124, in check_apps_ready
[Tue Dec 20 16:54:13.412938 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] raise AppRegistryNotReady("Apps aren't loaded yet.")
[Tue Dec 20 16:54:13.412957 2016] [wsgi:error] [pid 7807] [remote
172.20.26.72:53308] AppRegistryNotReady: Apps aren't loaded yet.
I believe that "django.setup()" has to be called somewhere. But where?
Here is the contents of my "/opt/graphite/conf/graphite.wsgi" file:
import os, sys
sys.path.append('/opt/graphite/webapp')
sys.path.append('/opt/graphite/webapp/graphite')
sys.path.append('/usr/lib/python2.7/site-packages')
sys.path.append('/usr/lib/python2.7/site-packages/django_tagging-0.4.5-py2.7.egg')
sys.path.append('/usr/lib/python2.7/site-packages/Django-1.9.2-py2.7.egg')
os.environ['DJANGO_SETTINGS_MODULE'] = 'graphite.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
I sincerely hope someone can give me some solid pointers as where to look and
how to get around the problems I am encountering.
Many thanks and happy holidays.
Best regards,
Yang
--
You received this question notification because your team graphite-dev
is an answer contact for Graphite.
_______________________________________________
Mailing list: https://launchpad.net/~graphite-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~graphite-dev
More help : https://help.launchpad.net/ListHelp