<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with reinstallation of apps/addons - error 404 in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484435#M16827</link>
    <description>&lt;P&gt;HI Pavel, &lt;/P&gt;

&lt;P&gt;thanks for Your feedback. &lt;/P&gt;

&lt;P&gt;I have reviewed mentioned folder. Except all users it include two folders and file:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;./splunk-system-user&lt;/LI&gt;
&lt;LI&gt;./uname&lt;/LI&gt;
&lt;LI&gt;./users.ini&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;There are no mods.&lt;/P&gt;

&lt;P&gt;Few weeks ago I have renamed that app and I suspect that, this name change modified something.&lt;/P&gt;

&lt;P&gt;Maybe its cached somewhere ? I have clean up browser cache but it didnt helped.&lt;/P&gt;

&lt;P&gt;Do You have any other ideas ? &lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 13:39:45 GMT</pubDate>
    <dc:creator>conwaw</dc:creator>
    <dc:date>2020-04-29T13:39:45Z</dc:date>
    <item>
      <title>Problem with reinstallation of apps/addons - error 404</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484432#M16824</link>
      <description>&lt;P&gt;HI, &lt;/P&gt;

&lt;P&gt;how to properly (completly) remove Splunk addon and install it again ? &lt;/P&gt;

&lt;P&gt;My deployment script redeploying all Splunk addons/apps using this command:&lt;/P&gt;

&lt;P&gt;$HOME_SPLUNK/bin/splunk remove app app_name&lt;/P&gt;

&lt;P&gt;$HOME_SPLUNK/bin/splunk install app app_name&lt;/P&gt;

&lt;P&gt;What is strange, You will be able to redeploy applications this way, till You will create some dashboard in app or You will modify something in Your app/addon. Afterwards, when You will reinstall Your app with this two commands - You will not have an access to it anymore. &lt;/P&gt;

&lt;P&gt;I have tested it with Cisco ESA addon. Everything is working fine till I will start using that app. Afterwards, when app is configured and my script will remove and install app again - I see error 404. &lt;/P&gt;

&lt;P&gt;I suspect that application generating some searches which are not properly removed by "./splunk remove app" command.&lt;BR /&gt;
This problem appear for example in addon: Splunk-App-CISCO-ESA. &lt;/P&gt;

&lt;P&gt;Maybe some one will be able to help me and show me the way how to properly deploy/redeploy apps in searchhead using command line. How to avoid 404 errors afterwards ? &lt;/P&gt;

&lt;P&gt;Thanks in advance for Your support.&lt;BR /&gt;
Dlugi&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:10:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484432#M16824</guid>
      <dc:creator>conwaw</dc:creator>
      <dc:date>2020-09-30T05:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reinstallation of apps/addons - error 404</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484433#M16825</link>
      <description>&lt;P&gt;Just would like to add logs from web_service.log for that incident. Maybe some one knows how to solve it ? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2020-04-29 11:25:05,547 INFO    [5ea947f1877f198ba62e10] startup:139 - Splunk appserver version=8.0.0 build=1357bef0a7f6 isFree=False isTrial=False
2020-04-29 11:25:05,632 WARNING [5ea947f1877f198ba62e10] appnav:404 - An unknown view name "Servers" is referenced in the navigation definition for "Splunk_TA_cisco-esa".
2020-04-29 11:25:05,632 WARNING [5ea947f1877f198ba62e10] appnav:404 - An unknown view name "Templates" is referenced in the navigation definition for "Splunk_TA_cisco-esa".
2020-04-29 11:25:05,632 WARNING [5ea947f1877f198ba62e10] appnav:404 - An unknown view name "Tasks" is referenced in the navigation definition for "Splunk_TA_cisco-esa".
2020-04-29 11:25:05,633 INFO    [5ea947f1877f198ba62e10] error:321 - Masking the original 404 message: 'Splunk cannot find the  "None" view.' with 'Page not found!' for security reasons
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Apr 2020 10:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484433#M16825</guid>
      <dc:creator>conwaw</dc:creator>
      <dc:date>2020-04-29T10:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reinstallation of apps/addons - error 404</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484434#M16826</link>
      <description>&lt;P&gt;Hello @conwaw,&lt;/P&gt;

&lt;P&gt;please check if you have any artifacts/remainings/mods under $SPLUNK_HOME/etc/users/XXX/&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 12:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484434#M16826</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-29T12:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reinstallation of apps/addons - error 404</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484435#M16827</link>
      <description>&lt;P&gt;HI Pavel, &lt;/P&gt;

&lt;P&gt;thanks for Your feedback. &lt;/P&gt;

&lt;P&gt;I have reviewed mentioned folder. Except all users it include two folders and file:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;./splunk-system-user&lt;/LI&gt;
&lt;LI&gt;./uname&lt;/LI&gt;
&lt;LI&gt;./users.ini&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;There are no mods.&lt;/P&gt;

&lt;P&gt;Few weeks ago I have renamed that app and I suspect that, this name change modified something.&lt;/P&gt;

&lt;P&gt;Maybe its cached somewhere ? I have clean up browser cache but it didnt helped.&lt;/P&gt;

&lt;P&gt;Do You have any other ideas ? &lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 13:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484435#M16827</guid>
      <dc:creator>conwaw</dc:creator>
      <dc:date>2020-04-29T13:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reinstallation of apps/addons - error 404</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484436#M16828</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/47658"&gt;@conwaw&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;please run this search on CLI to find where Splunk_TA_cisco-esa is referenced:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;grep -Er Splunk_TA_cisco-esa $SPLUNK_HOME/etc/* |grep -Fe ".xml:" -e ".conf:" |grep -Fv ".js:"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and after removing all ESA-related apps/addons:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;grep -Er Tasks $SPLUNK_HOME/etc/* |grep -Fe ".xml:" -e ".conf:" |grep -Fv ".js:"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484436#M16828</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-09-30T05:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reinstallation of apps/addons - error 404</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484437#M16829</link>
      <description>&lt;P&gt;Hello @conwaw,&lt;/P&gt;

&lt;P&gt;this error in web_service.log occurs if a navigation definition points to a non existing view.&lt;/P&gt;

&lt;P&gt;An example: if you have an app with this structure:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;App_Name/
├── default
│&amp;nbsp;&amp;nbsp; ├── app.conf
│&amp;nbsp;&amp;nbsp; ├── data
│&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp; └── ui
│&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;     ├── nav
│&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;     │&amp;nbsp;&amp;nbsp; └── default.xml
│&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;     └── views
│&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;         ├── Servers.xml
│&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;         ├── Tasks.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and default.xml in the nav folder looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nav&amp;gt;
 &amp;lt;view name="Servers" default='true' /&amp;gt;
 &amp;lt;view name="Templates" /&amp;gt;
 &amp;lt;view name="Tasks" /&amp;gt;
&amp;lt;/nav&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then you will get an error WARNING  appnav:404 - An unknown view name "Templates" is referenced in the navigation definition for "App_Name".&lt;/P&gt;

&lt;P&gt;You have to find this default.xml and fix it.&lt;/P&gt;

&lt;P&gt;Let me know how if it worked&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 10:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484437#M16829</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-30T10:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reinstallation of apps/addons - error 404</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484438#M16830</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;thank You for Your time and support. :)))))&lt;/P&gt;

&lt;P&gt;In did, ../ui folder was almost empty.&lt;/P&gt;

&lt;P&gt;[splunk@deda1000 ui]$ pwd&lt;BR /&gt;
/opt/splunk/etc/apps/Splunk_TA_cisco-esa/default/data/ui&lt;BR /&gt;
[splunk@deda1000 ui]$ ll&lt;BR /&gt;
total 4&lt;BR /&gt;
drwxr-xr-x 2 splunk splunk 4096 Jul  4  2018 panels&lt;BR /&gt;
[splunk@deda1000 ui]$ &lt;/P&gt;

&lt;P&gt;I have created ..\nav and ..\views folder with default.xml inside ..\nav. &lt;/P&gt;

&lt;P&gt;..\views folder is empty.&lt;/P&gt;

&lt;P&gt;Log showing this: &lt;/P&gt;

&lt;P&gt;2020-04-30 14:33:22,055 INFO    [5eaac592097febdc08ae50] startup:139 - Splunk appserver version=8.0.0 build=1357bef0a7f6 isFree=False isTrial=False&lt;BR /&gt;
2020-04-30 14:33:22,104 INFO    [5eaac592097febdc08ae50] cached:163 - /opt/splunk/etc/apps/Splunk_TA_cisco-esa/appserver/static/setup.json&lt;BR /&gt;
2020-04-30 14:33:22,148 WARNING [5eaac592097febdc08ae50] appnav:404 - An unknown view name "Servers" is referenced in the navigation definition for "Splunk_TA_cisco-esa".&lt;BR /&gt;
2020-04-30 14:33:22,148 WARNING [5eaac592097febdc08ae50] appnav:404 - An unknown view name "Templates" is referenced in the navigation definition for "Splunk_TA_cisco-esa".&lt;BR /&gt;
2020-04-30 14:33:22,148 WARNING [5eaac592097febdc08ae50] appnav:404 - An unknown view name "Tasks" is referenced in the navigation definition for "Splunk_TA_cisco-esa".&lt;BR /&gt;
2020-04-30 14:33:22,149 INFO    [5eaac592097febdc08ae50] error:321 - Masking the original 404 message: 'Splunk cannot find the  "None" view.' with 'Page not found!' for security reasons&lt;/P&gt;

&lt;P&gt;still not working...&lt;/P&gt;

&lt;P&gt;I suspect that my script removed (rm -rf ./Splunk_TA_cisco-esa) app folder instead of deinstall ./bin/splunk remove app Splunk_TA_cisco-esa . I have just installed splunk local and will try to deploy that app, after deployment I will copy app folder to prod system and then try to uninstall. Maybe this will help. Let me try it. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Problem-with-reinstallation-of-apps-addons-error-404/m-p/484438#M16830</guid>
      <dc:creator>conwaw</dc:creator>
      <dc:date>2020-09-30T05:11:08Z</dc:date>
    </item>
  </channel>
</rss>

