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"]))
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"]))
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"]))
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.
Are you answering your own question? If so, put the solution in the answer box instead and mark it as the answer.
@pavel_voropaev: please actually post the solution as the Answer.