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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Laser Bananas and Edge Hubs: Exploring Operational Technology (OT) Data Through a ...

  OT is a different environment to traditional IT and can have interesting challenges when interfacing the ...

Event Series: Mastering AI Tokenomics and Splunk Agent Observability

Beyond the Black Box: Correlating AI Performance and Tokenomics with Splunk Agent Observability   As ...

span_metrics: The OpenTelemetry-Idiomatic Way to See Inside Your Services

You open a trace in Splunk Observability Cloud and everything looks fine. One root span, order-pipeline, with ...