Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Health page broken for a single-node cluster #23

Open
grigorescu opened this issue Dec 3, 2014 · 0 comments
Open

Health page broken for a single-node cluster #23

grigorescu opened this issue Dec 3, 2014 · 0 comments

Comments

@grigorescu
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant