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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...