New question #255056 on Graphite: https://answers.launchpad.net/graphite/+question/255056
Howdy! I'm struggling to get graphite-web up and running on an Amazon EC2 instance (Ubuntu 12.04.2 LTS). I've spent a lot of time searching for answers and followed all the installation instructions (several times) but can't seem to get anywhere. Hopefully one of you kind souls out there can lend some help! I'm running the following command to launch the run-graphite-devel-server.py script. sudo python run-graphite-devel-server.py --port 8080 /opt/graphite Then, in my web browser when I try to load http://server.ip.address:8080 my putty session shows the following error: File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/utils.py", line 6, in <module> from django.contrib.auth import get_permission_codename ImportError: cannot import name get_permission_codename Browser shows "A server error occurred. Please contact the administrator." I've tried Googling these errors and unfortunately there's not anything out there with this get_permission_codename error. Any ideas? Thanks! FULL PUTTY DUMP: sudo python run-graphite-devel-server.py --port 8080 /opt/graphite Running Graphite from /opt/graphite under django development server /usr/local/bin/django-admin runserver --pythonpath /opt/graphite/webapp --settings graphite.settings 0.0.0.0:8080 /opt/graphite/webapp/graphite/settings.py:231: UserWarning: SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security warn('SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security') /opt/graphite/webapp/graphite/settings.py:231: UserWarning: SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security warn('SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security') Validating models... 0 errors found September 26, 2014 - 12:04:24 Django version 1.5, using settings 'graphite.settings' Development server is running at http://0.0.0.0:8080/ Quit the server with CONTROL-C. Traceback (most recent call last): File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, self.start_response) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 255, in __call__ response = self.get_response(request) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 178, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 220, in handle_uncaught_exception if resolver.urlconf_module is None: File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 342, in urlconf_module self._urlconf_module = import_module(self.urlconf_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/urls.py", line 19, in <module> admin.autodiscover() File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/__init__.py", line 29, in autodiscover import_module('%s.admin' % app) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/local/lib/python2.7/dist-packages/django/contrib/contenttypes/admin.py", line 5, in <module> from django.contrib.admin.checks import InlineModelAdminChecks File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/checks.py", line 6, in <module> from django.contrib.admin.utils import get_fields_from_path, NotRelationField, flatten File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/utils.py", line 6, in <module> from django.contrib.auth import get_permission_codename ImportError: cannot import name get_permission_codename [26/Sep/2014 12:04:30] "GET / HTTP/1.1" 500 59 Traceback (most recent call last): File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, self.start_response) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 255, in __call__ response = self.get_response(request) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 178, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 220, in handle_uncaught_exception if resolver.urlconf_module is None: File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 342, in urlconf_module self._urlconf_module = import_module(self.urlconf_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/urls.py", line 19, in <module> admin.autodiscover() File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/__init__.py", line 29, in autodiscover import_module('%s.admin' % app) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/local/lib/python2.7/dist-packages/django/contrib/contenttypes/admin.py", line 5, in <module> from django.contrib.admin.checks import InlineModelAdminChecks File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/checks.py", line 6, in <module> from django.contrib.admin.utils import get_fields_from_path, NotRelationField, flatten File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/utils.py", line 6, in <module> from django.contrib.auth import get_permission_codename ImportError: cannot import name get_permission_codename -- You received this question notification because you are a member of graphite-dev, which 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

