All Apps and Add-ons

Why is splunkweb is not starting on indexers with the Splunk App for VMware ?

pavel_voropaev
Engager

I've encountered error with VMware app rollout. After distributing SA-Utils app to indexer as documentation to VMware app suggests splunkweb stopped working.

In splunkweb log:

2015-09-01 11:20:58,975 ERROR   [55e551dadb7fb456e20250] root:795 - No module named lookupfiles
Traceback (most recent call last):
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/root.py", line 101, in <module>
    from controllers.top import *
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/top.py", line 13, in <module>
    from admin import AdminController
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/admin.py", line 17, in <module>
    from splunk.appserver.mrsparkle.controllers.appinstall import AppInstallController
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/appinstall.py", line 9, in <module>
    from splunk.appserver.mrsparkle.lib import cached, module
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/module.py", line 465, in <module>
    moduleMapper = ModuleMapper()
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/module.py", line 79, in __init__
    self.installedModules = self.getInstalledModules()
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/module.py", line 24, in helper
    return f(*a, **kw)
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/module.py", line 448, in getInstalledModules
    mods = self.getModuleList(root)
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/module.py", line 33, in helper
    return f(*a, **kw)
  File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/module.py", line 219, in getModuleList
    mod = __import__(modname)
  File "/opt/splunk/etc/slave-apps/SA-Utils/appserver/modules/PerPanelFiltering/PerPanelFiltering.py", line 20, in <module>
    import lookupfiles

Issue was resolved by replacing "apps" with "slave-apps" in make_splunkhome_path function in files below:

.etc/master-apps/SA-Utils/appserver/modules/
./PerPanelFiltering/PerPanelFiltering.py:sys.path.append(make_splunkhome_path(["etc", "slave-apps", "SA-Utils", "bin"]))
./SOLNLookupEditor/SOLNLookupEditor.py:sys.path.append(make_splunkhome_path(["etc", "slave-apps", "SA-Utils", "bin"]))
./SOLNLookupEditor/SOLNLookupEditor.py:sys.path.append(make_splunkhome_path(["etc", "slave-apps", "SA-Utils", "lib"]))
0 Karma
1 Solution

pavel_voropaev
Engager

Issue was resolved by replacing "apps" with "slave-apps" in make_splunkhome_path function in files below:

.etc/master-apps/SA-Utils/appserver/modules/
 ./PerPanelFiltering/PerPanelFiltering.py:sys.path.append(make_splunkhome_path(["etc", "slave-apps", "SA-Utils", "bin"]))
 ./SOLNLookupEditor/SOLNLookupEditor.py:sys.path.append(make_splunkhome_path(["etc", "slave-apps", "SA-Utils", "bin"]))
 ./SOLNLookupEditor/SOLNLookupEditor.py:sys.path.append(make_splunkhome_path(["etc", "slave-apps", "SA-Utils", "lib"]))

View solution in original post

pavel_voropaev
Engager

Issue was resolved by replacing "apps" with "slave-apps" in make_splunkhome_path function in files below:

.etc/master-apps/SA-Utils/appserver/modules/
 ./PerPanelFiltering/PerPanelFiltering.py:sys.path.append(make_splunkhome_path(["etc", "slave-apps", "SA-Utils", "bin"]))
 ./SOLNLookupEditor/SOLNLookupEditor.py:sys.path.append(make_splunkhome_path(["etc", "slave-apps", "SA-Utils", "bin"]))
 ./SOLNLookupEditor/SOLNLookupEditor.py:sys.path.append(make_splunkhome_path(["etc", "slave-apps", "SA-Utils", "lib"]))

miront
Explorer

This fixed my issue. Thank you very much.

I do have one suggestion: The path to perpanelfiltering is /opt/splunk/etc/slave-apps/SA-Utils/appserver/controllers/perpanelfiltering.py

Also, an edit to SOLNLookupEditor was all the changes that were required for me. perpanelfiltering did not need any adjustment.

0 Karma

jkat54
SplunkTrust
SplunkTrust

Are you answering your own question? If so, put the solution in the answer box instead and mark it as the answer.

piebob
Splunk Employee
Splunk Employee

@pavel_voropaev: please actually post the solution as the Answer.

0 Karma
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...