Brownian icon indicating copy to clipboard operation
Brownian copied to clipboard

Health page broken for a single-node cluster

Open grigorescu opened this issue 10 years ago • 0 comments

TypeError at /health/ string indices must be integers Request Method: GET Request URL: http://localhost/Brownian/health/ Django Version: 1.4.1 Exception Type: TypeError Exception Value:
string indices must be integers Exception Location: /var/www/Brownian/lib/python2.7/site-packages/Brownian/view/templatetags/es_extras.py in sumAvailable, line 36 Python Executable: /usr/bin/python Python Version: 2.7.6 Python Path:
['/var/www/Brownian/lib/python2.7/site-packages/requests/packages', '/var/www/Brownian/lib/python2.7/site-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] Server time: Wed, 3 Dec 2014 08:36:18 -0400 Error during template rendering

In template /var/www/Brownian/lib/python2.7/site-packages/Brownian/view/templates/health.html, error at line 41 string indices must be integers 31 32

33 {% for node_name, node in nodes.items %} 34 35 {{ node.name }} 36 {{ node.os.uptime|truncatewords:2 }} 37 {{ node.os.load_average.0|floatformat:2 }}, {{ node.os.load_average.1|floatformat:2 }}, {{ node.os.load_average.2|floatformat:2 }} 38 {{ node.os.mem.free_percent }}% 39 {{ node.os.swap.used_in_bytes|filesizeformat }} 40 41 {{ node.fs.items.1.1|sumAvailable|filesizeformat }} 42 43 {% endfor %} 44 45 46 47
48
49

Shard Failures

50 {% if shards.es_shards.failures %} 51

grigorescu avatar Dec 03 '14 16:12 grigorescu