<?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: Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279682#M10555</link>
    <description>&lt;P&gt;This is not a recommended or supported configuration. There can be issues with this. &lt;/P&gt;

&lt;P&gt;However, if you look at the stateonclient configuration option, you can get around these errors with the 'noop' function and a custom repository path to the CM's master-apps.&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled | disabled | noop&lt;BR /&gt;
    * If set to "enabled", sets the application state to enabled on the client, regardless of state on the deployment server.&lt;BR /&gt;
    * If set to "disabled", set the application state to disabled on the client, regardless of state on the deployment server.&lt;BR /&gt;
    * If set to "noop", the state on the client will be the same as on the deployment server.&lt;BR /&gt;
    * Can be overridden at the serverClass level and the serverClass:app level.&lt;BR /&gt;
    * Defaults to enabled.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2015 04:45:18 GMT</pubDate>
    <dc:creator>esix_splunk</dc:creator>
    <dc:date>2015-10-14T04:45:18Z</dc:date>
    <item>
      <title>Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279678#M10551</link>
      <description>&lt;P&gt;We have a clustered environment and I have the Cluster Master also being the SH Deployer. I'm trying to simplify the process of getting apps to this server by using the deployment server to push apps to it.&lt;/P&gt;

&lt;P&gt;My deployment server serverclass.conf currently looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[serverClass:CM_master-apps]
targetRepositoryLocation = $SPLUNK_HOME/etc/master-apps
stateOnClient = noop
whitelist.0 = dev.splunk.cm

[serverClass:CM_master-apps:app:CM_indexes]
restartSplunkWeb = 0
restartSplunkd = 0
stateOnClient = enabled
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works great and it pushes the app to the etc/master-apps directory like I want, BUT now the deployment server is showing a deployment error. Is this because of some sort of checksum or something as the deployment server holds the app in etc/deployment-apps and its going to the client to etc/master-apps?&lt;/P&gt;

&lt;P&gt;PLEASE HELP &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 21:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279678#M10551</guid>
      <dc:creator>chawagon03</dc:creator>
      <dc:date>2015-10-13T21:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279679#M10552</link>
      <description>&lt;P&gt;What error is being shown on the Deployment server?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 22:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279679#M10552</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-13T22:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279680#M10553</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;10-13-2015 23:33:09.440 +0000 WARN  ClientSessionsManager - ip=10.0.23.20 name=2F8C8052-0C05-4478-8DEF-D11D40EFF709 Updating record for sc=CM_master-apps app=CM_indexes: action=Install result=Fail checksum=3035554467044237313
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is what is in splunkd.log for deployment serverr.. i take it it is a checksum issue.. Anyway to get around this? Because the apps gets pushed like it should, I just don't want to have that error consistent in our production environment.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 23:37:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279680#M10553</guid>
      <dc:creator>chawagon03</dc:creator>
      <dc:date>2015-10-13T23:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279681#M10554</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;10-14-2015 03:20:16.967 +0000 WARN  ClientSessionsManager - ip=10.0.23.20 name=2F8C8052-0C05-4478-8DEF-D11D40EFF709 Updating record for sc=CM_master-apps app=CM_indexes: action=Install result=Fail checksum=3035554467044237313

10-14-2015 03:20:16.967 +0000 INFO  ClientSessionsManager - ip=10.0.23.20 name=2F8C8052-0C05-4478-8DEF-D11D40EFF709 Updating record for sc=CM_master-apps app=CM_indexes: action=Download result=Ok checksum=3035554467044237313

10-14-2015 03:20:16.967 +0000 INFO  ClientSessionsManager:Listener_AppEvents - Received count=2 AppEvents from DC ip=10.0.23.20 name=2F8C8052-0C05-4478-8DEF-D11D40EFF709

10-14-2015 03:20:16.870 +0000 INFO  PackageDownloadRestHandler - peer=10.0.23.20:37480 Download complete for path=/opt/splunk/var/run/tmp/CM_master-apps/CM_indexes-1444792555.bundle serverclass=CM_master-apps app=CM_indexes

10-14-2015 03:20:16.870 +0000 INFO  PackageDownloadRestHandler - peer=10.0.23.20:37480 Download started for path=/opt/splunk/var/run/tmp/CM_master-apps/CM_indexes-1444792555.bundle serverclass=CM_master-apps app=CM_indexes
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Oct 2015 03:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279681#M10554</guid>
      <dc:creator>chawagon03</dc:creator>
      <dc:date>2015-10-14T03:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279682#M10555</link>
      <description>&lt;P&gt;This is not a recommended or supported configuration. There can be issues with this. &lt;/P&gt;

&lt;P&gt;However, if you look at the stateonclient configuration option, you can get around these errors with the 'noop' function and a custom repository path to the CM's master-apps.&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled | disabled | noop&lt;BR /&gt;
    * If set to "enabled", sets the application state to enabled on the client, regardless of state on the deployment server.&lt;BR /&gt;
    * If set to "disabled", set the application state to disabled on the client, regardless of state on the deployment server.&lt;BR /&gt;
    * If set to "noop", the state on the client will be the same as on the deployment server.&lt;BR /&gt;
    * Can be overridden at the serverClass level and the serverClass:app level.&lt;BR /&gt;
    * Defaults to enabled.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 04:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279682#M10555</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-10-14T04:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279683#M10556</link>
      <description>&lt;P&gt;Here is what I currently have going on on deployment client and deployment server. I can't seem to get the stateOnClient = noop to do anything (maybe I don't fully understand what it does)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;################################################
### Deployment Client (Master Node/Deployer)
### deploymentclient.conf
################################################
[deployment-client]
serverRepositoryLocationPolicy = rejectAlways
repositoryLocation = $SPLUNK_HOME/etc/deployed-apps

[target-broker:deploymentServer]
targetUri = dev.splunk.deploy:8089

################################################
### Deployment Server
### serverclass.conf
################################################
[serverClass:CM_master-apps]
stateOnClient = noop
whitelist.0 = dev.splunk.cm

[serverClass:CM_master-apps:app:CM_indexes]
restartSplunkWeb = 0
restartSplunkd = 0
stateOnClient = enabled
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also changed it to go to a generic directory and just create soft links in the appropriate directory whether its an indexer app or SH app&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279683#M10556</guid>
      <dc:creator>chawagon03</dc:creator>
      <dc:date>2015-10-14T14:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279684#M10557</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Were you able to resolve this issue? Im having the same problem.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;Shaun&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 09:45:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279684#M10557</guid>
      <dc:creator>shaun_dyble</dc:creator>
      <dc:date>2015-10-27T09:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279685#M10558</link>
      <description>&lt;P&gt;I did not find the 'approved' solution to this. But I did find a work around that works for me at the moment.&lt;/P&gt;

&lt;P&gt;If you set stateOnClient = noop on the app level stanza, the deployment server shows no issues. I also set targetRepositoryLocation on the server class level stanza and created 2 server classes for master-apps directory and shcluster/apps directory. &lt;/P&gt;

&lt;P&gt;This isn't the approved way - but it works for me without having to tar &amp;gt; ftp &amp;gt; untar from wherever to cluster master.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2015 01:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279685#M10558</guid>
      <dc:creator>chawagon03</dc:creator>
      <dc:date>2015-10-30T01:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279686#M10559</link>
      <description>&lt;P&gt;Hi chawagon03,&lt;/P&gt;

&lt;P&gt;I just fixed the same error by using the &lt;CODE&gt;stateOnClient = noop&lt;/CODE&gt; in &lt;CODE&gt;serverclass.conf&lt;/CODE&gt;. I had to add it because I was daisy chaining deployment servers.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 02:32:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279686#M10559</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-05-30T02:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Deployment Server showing an error pushing apps apps to the Cluster Master/SHC Deployer?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279687#M10560</link>
      <description>&lt;P&gt;There is a bug in &lt;CODE&gt;serverclass.spec&lt;/CODE&gt; that causes Splunk Deployment Server to give the following &lt;CODE&gt;FALSE&lt;/CODE&gt; error logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Checking conf files for problems...
                Invalid key in stanza [serverClass:site1_indexers] in /opt/splunk/etc/system/local/serverclass.conf, line XXX: targetRepositoryLocation  (value:  $SPLUNK_HOME/etc/master-apps).
                Invalid key in stanza [serverClass:site1_indexers] in /opt/splunk/etc/system/local/serverclass.conf, line XXX+1: targetRepositoryLocationPolicy  (value:  rejectAlways).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can confirm that it actually works by running &lt;CODE&gt;/opt/splunk/bin/splunk show config serverclass | grep targetRepository&lt;/CODE&gt; which will give you this (which clearly indicates functional configurations):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;targetRepositoryLocation=$SPLUNK_HOME/etc/apps
targetRepositoryLocation=$SPLUNK_HOME/etc/master-apps
targetRepositoryLocationPolicy=rejectAlways
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can double-check that it should work by running &lt;CODE&gt;/opt/splunk/bin/splunk btool serverclass list --debug| grep targetRepository&lt;/CODE&gt; which will give you this (which clearly indicates valid configurations):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/etc/system/default/serverclass.conf targetRepositoryLocation = $SPLUNK_HOME/etc/apps
/opt/splunk/etc/system/local/serverclass.conf   targetRepositoryLocation = $SPLUNK_HOME/etc/master-apps
/opt/splunk/etc/system/local/serverclass.conf   targetRepositoryLocationPolicy = rejectAlways
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also confirm by checking the target Cluster Master destination which will clearly show that it does indeed pull in CM apps to &lt;CODE&gt;$SPLUNK_HOME/etc/apps/&lt;/CODE&gt; as well as Indexer apps (via a different serverclass using the &lt;CODE&gt;targetRepository*&lt;/CODE&gt; settings) to &lt;CODE&gt;$SPLUNK_HOME/etc/master-apps/&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;It is unfortunate the both the documentation and the spec files are in error.  I am open a documentation updated request to get this mess cleared up.&lt;/P&gt;

&lt;P&gt;NOTE: You may, or may not, desire the &lt;CODE&gt;rejectAlways&lt;/CODE&gt; setting.  Use it or don't; it has nothing to do with the viability of the other setting(s).&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 01:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-is-my-Deployment-Server-showing-an-error-pushing-apps-apps/m-p/279687#M10560</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-28T01:36:33Z</dc:date>
    </item>
  </channel>
</rss>

