Installation

Redirect to setup page after install yields "Unable to locate the configuration for this URL."

christoffertoft
Communicator

Like the title says.

I have an application that uses a setup view to configure some defaults for the app.
When I install the app, it detects that setup is needed, and prompts to configure the app.
alt text

If I press Set up now I get redirected to the following page

alt text

However if i go into the Apps page and select Set upfrom the list of options next to the apps name, I get int othe setup view as expected.
Where do I specify the path for the first one to redirect correctly, i.e, how do I fix this?

Thanks for any help.

0 Karma
1 Solution

christoffertoft
Communicator

I solved it by setting the id field of the local/app.conf config to the same name as the folder name, as the link constructed by the app setup seems to look at the ID of the app. If that is not the same as the actual folder name, it seems to break.

View solution in original post

0 Karma

christoffertoft
Communicator

I solved it by setting the id field of the local/app.conf config to the same name as the folder name, as the link constructed by the app setup seems to look at the ID of the app. If that is not the same as the actual folder name, it seems to break.

0 Karma

lakshman239
SplunkTrust
SplunkTrust

when you built the app, you should already have default/app.conf with [package] stanza with id right? if its, its always best to have to in default/app.conf instead of local/app.conf

0 Karma

christoffertoft
Communicator

sorry, yes it meant to say default/app.conf... My bad

0 Karma

christoffertoft
Communicator

Note; i made the app so I should have access to whatever is needed

0 Karma

christoffertoft
Communicator

Can I bump this question? There seems to be no way of telling splunk how to redirect properly.

0 Karma

lakshman239
SplunkTrust
SplunkTrust

can you share your setup.xml? it should have an entity for taking you to the config page

0 Karma

christoffertoft
Communicator

I can't. What about it should i look for?
its very basic;

<dashboard script="javascript/setup_titan.js hideEdit="true">
    <label>label</label>
    <description>This app helps ...</description>
    <row>
        <panel>
            <title>Description</title>
            <html>

            </html>
        </panel>
</..>
</..>
0 Karma

lakshman239
SplunkTrust
SplunkTrust

You way to check your setup files against the steps in http://dev.splunk.com/view/webframework-developapps/SP-CAAAE8U [ esp the entity]

Also, are you seeing any errors in splunkd_ui_access.log when you encounter the error? [ or you can uninstall the app/restart the splunk instance/ re-install and check for errors/warning/issues in the above log. This could indicate any permissions/path issues]

Did you create the app/add-on using config files or via add-on builder? if its the former, do you want to try using AOB?

0 Karma

christoffertoft
Communicator

@lakshman239 thanks for your quick reply!

I've made the app setup myself, e.g. not using a setup.xml or addon builder. I used the Dev-for-all app available on splunkbase for most of the interactions.

Will check splunkd_ui_access.log for it. Restarting/reinstalling does not help unfortunately.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...