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

zk dashboard unavailable during zookeeper restarts #2

Open ezbz opened 13 years ago

ezbz commented 13 years ago

AttributeError at / 'NoneType' object has no attribute 'group' Request Method: GET Request URL: http://zk_dash:8080/ Exception Type: AttributeError Exception Value:
'NoneType' object has no attribute 'group' Exception Location: /home/tomcat/zookeeper_dashboard/../zookeeper_dashboard/zkadmin/models.py in init, line 35 Python Executable: /usr/bin/python26 Python Version: 2.6.5 Python Path: ['/home/tomcat/zookeeper_dashboard', '/home/tomcat/zookeeper_dashboard/lib.linux-i686-2.6', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages'] Server time: Sun, 25 Sep 2011 10:07:36 -0500

Environment:

Request Method: GET Request URL: http://zk_dash.outbrain.com:8080/ Django Version: 1.1 Python Version: 2.6.5 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 "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/home/tomcat/zookeeper_dashboard/../zookeeper_dashboard/zkadmin/views.py" in index
  2. zkserver = ZKServer(server) File "/home/tomcat/zookeeper_dashboard/../zookeeper_dashboard/zkadmin/models.py" in init
  3. self.version = m.group(1)

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