Installation

OSError: [Errno 2] No such file or directory: '/opt/splunk/share/splunk/search_mrsparkle/exposed/testing/tests'

duongl2
Explorer

using a package manager, such as an RPM, typerpm -U [--prefix |] splunk 4.2.2xx.rpm from 4.1.7

when i click on search apps, i got this screen.
Error !
OSError: [Errno 2] No such file or directory: '/opt/splunk/share/splunk/search_mrsparkle/exposed/testing/tests'
19
20
21 <%def name="add_script_block()">
22 <%
23 if attributes.get('script_blocks', None) is None:
24 attributes['script_blocks'] = []
25 attributes['script_blocks'].append(capture(caller.body))
26 %>
27 </%def>
/opt/splunk/share/splunk/search_mrsparkle/templates/lib.html, line 22:
for f in os.listdir(testFileDir):
/opt/splunk/share/splunk/search_mrsparkle/templates/lib.html, line 48:
/opt/splunk/lib/python2.6/site-packages/mako/runtime.py, line 467:
callable_(args, **kwargs)
/opt/splunk/share/splunk/search_mrsparkle/templates/lib.html, line 25:
attributes['script_blocks'].append(capture(caller.body))
/opt/splunk/share/splunk/search_mrsparkle/modules/nav/AppBar.html, line 45:
<%call expr="lib.add_script_block()">
/opt/splunk/lib/python2.6/site-packages/mako/runtime.py, line 502:
callable_(ctx, *
kwargs_for_include(callable, context._orig, **kwargs))
/opt/splunk/share/splunk/search_mrsparkle/templates/view/dashboard.html, line 145:
% endif
/opt/splunk/share/splunk/search_mrsparkle/templates/view/dashboard.html, line 142:
% if "templatePath" in module :
/opt/splunk/share/splunk/search_mrsparkle/templates/view/dashboard.html, line 181:
<%call expr="buildPanelContents(modules, panelName)"></%call>
/opt/splunk/share/splunk/search_mrsparkle/templates/view/dashboard.html, line 37:

/opt/splunk/share/splunk/search_mrsparkle/templates/view/dashboard.html, line 181:
<%call expr="buildPanelContents(modules, panelName)"></%call>
/opt/splunk/share/splunk/search_mrsparkle/templates/view/dashboard.html, line 100:
<%call expr="parent.getFloatLayoutRow(modules, rowNumber)"></%call>

Tags (1)
0 Karma

sideview
SplunkTrust
SplunkTrust

My guess is that

a) you have turned DEBUG on for splunkWeb?

b) The python code in SplunkWeb that, when in DEBUG, inserts the 'unit tests' link into the app navigation, has been changed somehow so that now it fails when the /testing directory is not there. I think it used to quietly fail to include the 'unit tests' link when the directory was absent. Perhaps this has regressed?

If you look at log.cfg and you are in DEBUG for SplunkWeb, switching away from DEBUG will almost certainly fix it.

duongl2
Explorer

created the testings/tests directory.
something else..
Error !
AttributeError: 'ViewController' object has no attribute 'generateSelfHelpLink'

0 Karma

duongl2
Explorer

in Web_service.log:
Did not find module Splunk.Module.DisableRequiredFieldsButton
after reload
2011-07-22 12:29:18,380 ERROR [4e29a55dce13301110] init:250 - Mako failed to render:

Traceback (most recent call last):
File "/opt/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/controllers/init.py", line 248, in render_temp
late
return templateInstance.render(**template_args)
File "/opt/splunk/lib/python2.6/site-packages/mako/template.py", line 283, in render
return runtime.render(self, self.callable, args, data)

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...