Splunk Dev

Replacing app results in 404 page not found

token1
Explorer

Hello, I'm trying to replace a custom app that had all references of a word changed to another (like a company rename thing) such as in saved search titles, panel titles etc.

I delete the old app folder and paste over the new app folder (same app but used a script to replace all word 'x' to word 'y'), ensure file permissions are inherited and double checked, restart splunk.  But when I try to navigate to that app I get the Splunk's version of 404 page not found (picture of buttercup in a black splunk shirt).

Am I missing a key step?  Maybe some reference to the original app path in system?  Maybe should work and the issue is the script that replaced the keyword could have broken something?

Labels (1)
0 Karma
1 Solution

token1
Explorer

Thank you, did that as well during trouble shooting- no dice.

I found this in the web_service log

"An unknown view name "myapp" is referenced in the navigation definition for "myapp".

 

Somehow both the scripted approach and a manual approach with Notepad++ 'in file' search didn't catch a view I had in myapp/default/data/ui/views still had an 'oldmyapp' view name referenced.  Fixed it, restart, works now.  Thanks all for the replies.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust
Did you restart Splunk?
---
If this reply helps you, Karma would be appreciated.
0 Karma

token1
Explorer

Yes, "double checked, restart splunk"

I stopped the splunk service, moved the app, started it.  Restarted it.  I'm doing this on a VM so have been using a snapshot to try things like moving the new app in before deleting the old app.  Interestingly the new app still gets named as the old one.  I manually change the name in the WebUI, it still gets a 404.  I might do a more manual version of name changing, maybe a stanza got affected in a bad way.  

0 Karma

richgalloway
SplunkTrust
SplunkTrust
In addition to renaming the folder, you must change the name in the app's default/app.conf file.
---
If this reply helps you, Karma would be appreciated.
0 Karma

token1
Explorer

Thank you, did that as well during trouble shooting- no dice.

I found this in the web_service log

"An unknown view name "myapp" is referenced in the navigation definition for "myapp".

 

Somehow both the scripted approach and a manual approach with Notepad++ 'in file' search didn't catch a view I had in myapp/default/data/ui/views still had an 'oldmyapp' view name referenced.  Fixed it, restart, works now.  Thanks all for the replies.

0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...