Project

General

Profile

Bug #2098

App does not work correctly on SHC (controller isn't loading)

Added by Luke Murphey about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/19/2017
Due date:
% Done:

100%


History

#1 Updated by Luke Murphey about 7 years ago

Observations:
  1. Affects 2.7.0 and 2.7.1
  2. Doesn't seem to affect standalone
  3. Didn't repro for me
  4. 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!'")
  5. The files appear to exist on the search heads
  6. Appeared on a 6.5.1 instance
Questions:
  1. Does this appear on a fresh 6.5.1 when I repro it?
  2. When was the controller last modified?
  3. Did second customer have any errors?
  4. Can the controller be parsed and loaded manually?

#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
Questions:
  • 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:

  1. Controller is on disk
  2. Splunk sees the corresponding web.conf
  3. There are no errors indicating that Splunk failed to run the controller
  4. 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

Also available in: Atom PDF