phunt / zookeeper_dashboard

Django based dashboard for an Apache ZooKeeper cluster.
http://hadoop.apache.org/zookeeper/
Apache License 2.0
166 stars 47 forks source link

Error on initial page load #4

Open clofresh opened 12 years ago

clofresh commented 12 years ago

After starting up the server, I get an error when I try to go to the site:

Environment:

Request Method: GET Request URL: http://localhost:8000/

Django Version: 1.3.1 Python Version: 2.6.1 Installed Applications: ['django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'zookeeper_dashboard.zkadmin', 'zookeeper_dashboard.zktree'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware')

Traceback: File "/Users/carlo/Projects/datadog/python/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/Users/carlo/Projects/datadog/zookeeper_dashboard/../zookeeper_dashboard/zkadmin/views.py" in index
  2. zkserver = ZKServer(server) File "/Users/carlo/Projects/datadog/zookeeper_dashboard/../zookeeper_dashboard/zkadmin/models.py" in init
  3. self.sessions.append(Session(line.strip())) File "/Users/carlo/Projects/datadog/zookeeper_dashboard/../zookeeper_dashboard/zkadmin/models.py" in init
  4. self.host = m.group(1)

Exception Type: AttributeError at / Exception Value: 'NoneType' object has no attribute 'group'

rohit-tm commented 8 years ago

HI @clofresh follow this:

Setting.py

Put False at Debug... then check

got some error in command line then check it and let me know