Bug #2098
App does not work correctly on SHC (controller isn't loading)
100%
History
#1 Updated by Luke Murphey about 7 years ago
- Affects 2.7.0 and 2.7.1
- Doesn't seem to affect standalone
- Didn't repro for me
- It appears that controller isn't registered (seeing "Masking the original 404 message: 'The path '/en-US/custom/lookup_editor/lookup_edit/get_lookup_backups_list' was not found.' with 'Page not found!'")
- The files appear to exist on the search heads
- Appeared on a 6.5.1 instance
- Does this appear on a fresh 6.5.1 when I repro it?
- When was the controller last modified?
- Did second customer have any errors?
- Can the controller be parsed and loaded manually?
#2 Updated by Luke Murphey about 7 years ago
Here is the controller's history:
https://github.com/LukeMurphey/lookup-editor/commits/19870b2c81a2df8f419d96bb3f0416f6b0da681a/src/appserver/controllers/lookup_edit.py
Last changed in May.
Here is the history for the web.conf file:
https://github.com/LukeMurphey/lookup-editor/commits/master/src/default/web.conf
Even fewer changes.
#3 Updated by Luke Murphey about 7 years ago
The controller file can be checked to see if it parses with:
cd etc/apps/lookup_editor/appserver/controllers/ ../../../../../bin/splunk cmd python lookup_edit.py
The following indicates if the controller is registered (look for "/custom/lookup_editor/lookup_edit"):
http://10.0.1.14:8000/en-US/paths
The following provides the web.conf entries:
| rest /servicesNS/nobody/lookup_editor/admin/conf-web count=0 | table id title eai:appName | search title="*lookup_edit"
This indicates that the controller was registered:
Registering custom app endpoint: lookup_editor/lookup_edit
#4 Updated by Luke Murphey about 7 years ago
It could be that another app is using the same stanza name in web.conf.
#5 Updated by Luke Murphey about 7 years ago
- Description updated (diff)
#6 Updated by Luke Murphey about 7 years ago
Customer 2:
Observations:- This is on Windows
- Controller is not registered according to the logs
- There are no errors in the logs
- Is lookup file loading?
- Yes
- Is the controller responding with a 404 or is the lookup controller itself not found?
- Controller is not registered
This is what I'm seeing:
- Controller is on disk
- Splunk sees the corresponding web.conf
- There are no errors indicating that Splunk failed to run the controller
- There are no messages indicating Splunk even tried to run the controller
#7 Updated by Luke Murphey about 7 years ago
Customer bounced the cluster and it fixed the issue
#8 Updated by Luke Murphey about 7 years ago
- Subject changed from Not working on SHC to App does not work correctly on SHC (controller isn't loading)
#9 Updated by Luke Murphey about 7 years ago
I might want to add something that tests to make sure that the controllers/endpoints are up. That way, the user can be told something isn't right.
#10 Updated by Luke Murphey about 7 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100