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

circus-web sends blank page #47

Open
pcdinh opened this issue Sep 4, 2014 · 4 comments
Open

circus-web sends blank page #47

pcdinh opened this issue Sep 4, 2014 · 4 comments

Comments

@pcdinh
Copy link

pcdinh commented Sep 4, 2014

This issue has been reported at circus-tent/circus#815

@pcdinh
Copy link
Author

pcdinh commented Sep 4, 2014

I started circus-web 0.5 manually and found the following log:

circushttpd --port 8089
2014-09-04 13:35:12 circus-web[64049] [INFO] Starting circus web ui on 0.0.0.0:8089
2014-09-04 13:36:34 tornado.access[64049] [INFO] 302 GET / (127.0.0.1) 2.88ms
2014-09-04 13:36:34 tornado.access[64049] [INFO] 200 GET /connect/ (127.0.0.1) 38.53ms
2014-09-04 13:36:37 tornado.access[64049] [INFO] 302 POST /connect/ (127.0.0.1) 9.91ms


Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/circusweb/circushttpd.py", line 122, in render_template
    return template.generate(**namespace)
  File "/usr/local/lib/python2.7/dist-packages/mako/template.py", line 412, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/local/lib/python2.7/dist-packages/mako/runtime.py", line 766, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/local/lib/python2.7/dist-packages/mako/runtime.py", line 798, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/local/lib/python2.7/dist-packages/mako/runtime.py", line 824, in _exec_template
    callable_(context, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/circusweb/templates/base.html", line 109, in render_body
    ${self.body()}
  File "/usr/local/lib/python2.7/dist-packages/circusweb/templates/index.html", line 105, in render_body
    ${draw_graph_div(plugin, plugin.split(':')[1].replace('-', '.'), True, endpoint=stat_endpoint)}
  File "/usr/local/lib/python2.7/dist-packages/circusweb/templates/index.html", line 1, in draw_graph_div
    <%inherit file="base.html"/>
  File "/usr/local/lib/python2.7/dist-packages/circusweb/templates/index.html", line 68, in render_draw_graph_div
    <div style="width: 20px; float: right; margin-right: 10px;"><a class="${controller.get_status(watcher, endpoint)}" title="${controller.get_status(watcher, endpoint)}" href="${reverse_url('switch_status', endpoint, name=watcher)}"></a></div>
  File "/usr/local/lib/python2.7/dist-packages/circusweb/controller.py", line 128, in get_status
    res = client.send_message('status', name=name)
AttributeError: 'NoneType' object has no attribute 'send_message'

2014-09-04 13:36:38 tornado.access[64049] [INFO] 200 GET / (127.0.0.1) 59.11ms

@josegonzalez
Copy link

Same here, I guess I'm reverting to circus==0.9.2 and circus-web==0.4.1.

@amvapor
Copy link

amvapor commented Dec 2, 2014

I corrected this on our installation by removing the following lines:

%if display_status:
<div style="width: 20px; float: right; margin-right: 10px;"><a class="${controller.get_status(watcher, endpoint)}" title="${controller.get_status(watcher, endpoint)}" href="${reverse_url('switch_status', b64encode(stat_endpoint), watcher)}"></a></div>
%endif

I didn't dig into why or how, but it seems to make the web console work.

I also noticed that if I disabled my plugins, I didn't need to make this change, seems the plugins and the web console don't play well together for some reason. Plugins I was trying were statsd and flapper, either being enabled triggered the issue.

silviot added a commit to silviot/circus-web that referenced this issue Jan 16, 2015
silviot added a commit to silviot/circus-web that referenced this issue Jan 16, 2015
@lambdafu
Copy link
Contributor

lambdafu commented Feb 3, 2015

I can reproduce this with an installation straight from pypi (circus 0.11.1 and circusweb 0.5).

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

4 participants