Monitoring Splunk

http://localhost:8000/info page has errors, any fix?

mothball187
Engager

I get an "IndexError: list index out of range" when trying to access http://localhost:8000/info.

This is a fairly fresh install of version 4.2.2, build 101277. I made a dashboard and a form, but I have not touched the filesystem myself at all.

Here is the full error dump:

    13 <h2>References</h2>
    14 <dl>
    15 <dt>
    16 <a href="${make_url('/modules')}">View module reference</a>
    17 (<a href="${make_url('/modules', _qs=dict(show_wiki=1))}">wiki</a>)
    18 </dt>
    19 <dd>A listing of all of the modules currently registered with this Splunkweb instance</dd>
    20
    21 <dt><a href="${make_url('/paths')}">Splunkweb endpoint reference</a></dt>


/opt/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/util.py, line 263:

    if moduleList.has_key('Splunk.Module.' + segments[2]):
/opt/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/controllers/__init__.py, line 183:

    return util.make_url(*a, **kw)
/opt/splunk/share/splunk/search_mrsparkle/templates/top/info.html, line 16:

    <a href="${make_url('/modules')}">View module reference</a>
/opt/splunk/share/splunk/search_mrsparkle/templates/layout/message.html, line 33:

    <div class="masterContainer">${next.body()}</div>
/opt/splunk/share/splunk/search_mrsparkle/templates/layout/base.html, line 49:

    <%next:body/>
/opt/splunk/share/splunk/search_mrsparkle/templates/layout/base.html, line 22:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
/opt/splunk/share/splunk/search_mrsparkle/templates/layout/base.html, line 7:

    <%self:render/>
/opt/splunk/lib/python2.6/site-packages/mako/runtime.py, line 633:

    callable_(context, *args, **kwargs)
/opt/splunk/lib/python2.6/site-packages/mako/runtime.py, line 607:

    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/opt/splunk/lib/python2.6/site-packages/mako/runtime.py, line 575:

    **_kwargs_for_callable(callable_, data))
/opt/splunk/lib/python2.6/site-packages/mako/template.py, line 283:

    return runtime._render(self, self.callable_, args, data)
/opt/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/controllers/__init__.py, line 248:

    return templateInstance.render(**template_args)
Tags (1)
0 Karma

melting
Splunk Employee
Splunk Employee

Thanks for the report. I have filed a bug internally, SPL-40720.

0 Karma

mothball187
Engager

Hi All,

Just an FYI, I took a very quick look at the problematic code and came up with a quick one line temporary fix. I don't know if this is the proper fix, but at least the page works now (so far).

Change line 261 of /opt/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/util.py to this:

if segments[1] == 'modules' and len(segments)>2:

I would still be interested in hearing of any better fixes for this bug.

Thanks!

rroberts
Splunk Employee
Splunk Employee

Just tried it and seemed to work!

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 ...