Deployment Architecture

Various Manager pages fail to render, shows error "Mako failed to render" after upgrading to 6.1

a212830
Champion

Hi,

I updated my dev server to 6.1 and when I try to access my search peers, I get the following error:

2014-05-06 09:23:48,489 ERROR [5368e263cf1c461fd0] init:281 - Mako failed to render:
Traceback (most recent call last):
File "/apps/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/init.py", line 277, in render_template
return templateInstance.render(*template_args)
File "/apps/splunk/lib/python2.7/site-packages/mako/template.py", line 283, in render
return runtime.render(self, self.callable, args, data)
File "/apps/splunk/lib/python2.7/site-packages/mako/runtime.py", line 575, in _render
*
kwargs_for_callable(callable, data))
File "/apps/splunk/lib/python2.7/site-packages/mako/runtime.py", line 607, in render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/apps/splunk/lib/python2.7/site-packages/mako/runtime.py", line 633, in _exec_template
callable
(context, args, **kwargs)
File "/apps/splunk/share/splunk/search_mrsparkle/templates/layout/base.html", line 18, in render_body
<%self:render/>
File "/apps/splunk/share/splunk/search_mrsparkle/templates/layout/base.html", line 33, in render_render
## define main HTML wrapper
File "/apps/splunk/share/splunk/search_mrsparkle/templates/layout/base.html", line 93, in render_pagedoc
<%next:body/>
File "/apps/splunk/share/splunk/search_mrsparkle/templates/layout/view.html", line 22, in render_body
${next.body()}
File "/apps/splunk/share/splunk/search_mrsparkle/templates/layout/admin.html", line 15, in render_body
${next.body()}
File "/apps/splunk/share/splunk/search_mrsparkle/templates/admin/index.html", line 96, in render_body
% endif
File "/apps/splunk/lib/python2.7/site-packages/mako/runtime.py", line 502, in include_file
callable
(ctx, *
kwargs_for_include(callable, context.orig, *kwargs))
File "/apps/splunk/share/splunk/search_mrsparkle/templates/admin/list.html", line 332, in render_body
<%call expr="genListRows(namespace, uiHelper, entities, endpoint_path, kwargs)"/>
File "/apps/splunk/share/splunk/search_mrsparkle/templates/admin/_helpers.html", line 738, in render_genListRows
% if role == '
' or role in auth.listUsers()[auth.getCurrentUser()['name']]['roles']:
File "/apps/splunk/lib/python2.7/UserDict.py", line 23, in __getitem
_
raise KeyError(key)
KeyError: u'admin'

1 Solution

hexx
Splunk Employee
Splunk Employee

UPDATE: Maintenance release 6.1.1 has been made available to resolve this issue. If you are experiencing this problem, please update to Splunk Enterprise 6.1.1.




This has been identified as bug SPL-83852 and is likely to be fixed in an accelerated maintenance release for Splunk 6.1.

In the meantime, if you are experiencing this issue on Splunk Enterprise 6.1 you can take the following steps to work around it:

  • Stop Splunk Web
    $SPLUNK_HOME/bin/splunk stop splunkweb

  • Replace $SPLUNK_HOME/share/splunk/search_mrsparkle/templates/admin/_helpers.html with the patched _helpers.html file.

  • Start Splunk Web
    $SPLUNK_HOME/bin/splunk start splunkweb

View solution in original post

evalente
Explorer

I am having the same issue!!! Upgrade to 6.1 has all indexes being updated fine, but no searches are being returned. Saying "search peer error".

0 Karma

a212830
Champion

From 6.03 to 6.1. Yes, I went into distributed search -> search peers on the search-head.

bosburn_splunk
Splunk Employee
Splunk Employee

What version were you upgrading from?

By search peers, you mean your indexers? Were you trying to log into them directly?

Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...