<?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: Slave-apps folder is always empty in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66733#M2357</link>
    <description>&lt;P&gt;I couldn't solve this so I went for a fresh new install and everything's fine now.&lt;BR /&gt;
We were using different filesystems and i'm not sure all of these were mounted correctly.&lt;BR /&gt;
My sys admin seemed confused but there's not problem at all now that we got rid of all symbolic links and stuff.&lt;/P&gt;

&lt;P&gt;Looks like the issue is absolutely not Splunk related.&lt;/P&gt;

&lt;P&gt;Mat&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2013 09:29:29 GMT</pubDate>
    <dc:creator>Mahieu</dc:creator>
    <dc:date>2013-10-02T09:29:29Z</dc:date>
    <item>
      <title>Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66714#M2338</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I'm working on deploying a cluster and i have a little problem.&lt;BR /&gt;
Everything's ok on the "connectivity" side between my master instance and my three "slave" indexers.&lt;/P&gt;

&lt;P&gt;The only thing that isn't working properly is pushing my master apps to my slave apps folders on the indexers.&lt;/P&gt;

&lt;P&gt;I have created a sample indexes.conf on the master instance in :&lt;BR /&gt;
/opt/splunk_master/etc/master-apps/myapp/local/indexes.conf&lt;/P&gt;

&lt;P&gt;I have launched splunk apply cluster-bundle and then checked that everything was ok with splunk show cluster-bundle-status.&lt;/P&gt;

&lt;P&gt;On the indexers, I can see that /opt/splunk/var/run/splunk/cluster/remote-bundle/&lt;SOME-ID&gt;/myapp does exist. Still, it won't come up into /opt/splunk/etc/slave-apps.&lt;/SOME-ID&gt;&lt;/P&gt;

&lt;P&gt;I've checked splunkd logs and I can see something like this :&lt;/P&gt;

&lt;P&gt;09-18-2013 15:38:17.176 +0200 ERROR CMSlave - Could not move /opt/splunk/var/run/splunk/cluster/remote-bundle/e6caf729df0cddfc030dedae58eb8a63-1379511473/apps/default_ftpub to /opt/splunk/etc/slave-apps/default_ftpub&lt;/P&gt;

&lt;P&gt;and then :&lt;/P&gt;

&lt;P&gt;9-18-2013 15:38:17.177 +0200 ERROR CMSlave - Failed to move bundle to slave-apps&lt;/P&gt;

&lt;P&gt;I tried performing a manual move from /opt/splunk/var/run/splunk/cluster/remote-bundle/&lt;SOME-ID&gt;/myapp to /opt/splunk/etc/slave-apps and it works (being logged either as Splunk or as root).&lt;/SOME-ID&gt;&lt;/P&gt;

&lt;P&gt;I don't know what's going on here.&lt;/P&gt;

&lt;P&gt;Any thoughts ?&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;

&lt;P&gt;Mat&lt;/P&gt;

&lt;P&gt;PS : I'm not using a deployment server at all.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:48:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66714#M2338</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2020-09-28T14:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66715#M2339</link>
      <description>&lt;P&gt;I would begin by checking file ownership and permissions. You mentioned "bing logged either as Splunk or as root"; I suspect that if your runtime user is 'splunk', there's a file or directory somewhere still owned by root that's blocking the installation of new slave-apps.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66715#M2339</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-18T14:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66716#M2340</link>
      <description>&lt;P&gt;Is it a problem if it's owned by root but chmoded to 777 ?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 15:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66716#M2340</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2013-09-18T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66717#M2341</link>
      <description>&lt;P&gt;Yes, but for other reasons. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I'd check permissions on the intervening paths, particularly with an eye to the "other" permissions. The target location is listed as &lt;CODE&gt;/opt/splunk/etc/slave-apps/default_ftpub&lt;/CODE&gt; from your log events, so check /opt, /opt/splunk, /opt/splunk/etc, etc for at least "execute" permission on the directory. The Splunk user will have to "cd through" each and every directory in the path, and that's governed by x permission for either user or group (or other) of the running user. It doesn't matter if the target dir is 777, if it can't cd there....&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 15:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66717#M2341</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-18T15:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66718#M2342</link>
      <description>&lt;P&gt;I can cd from / to /opt/splunk/etc/slave-apps but there's nothing after that &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;In etc, i an "ll" and here's what i get for slave-apps :&lt;/P&gt;

&lt;P&gt;drwxr-xr-x  2 splunk splunk  4096 18 sept. 17:04 slave-apps&lt;/P&gt;

&lt;P&gt;Everything looks normal for me but ... i'm not sure i've been looking at the right place.&lt;/P&gt;

&lt;P&gt;Is this what you were asking ?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 15:22:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66718#M2342</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2013-09-18T15:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66719#M2343</link>
      <description>&lt;P&gt;Actually ... &lt;/P&gt;

&lt;P&gt;When logged in as user splunk in /opt/splunk/var/run/splunk/cluster/remote-bundle :&lt;/P&gt;

&lt;P&gt;mv 585c15ce10fa204cb7e48dd6330ba68c-1379519945 /opt/splunk/etc/slave-apps/&lt;BR /&gt;
mv: inter-device move failed: ‘585c15ce10fa204cb7e48dd6330ba68c-1379519945’ to ‘/opt/splunk/etc/slave-apps/585c15ce10fa204cb7e48dd6330ba68c-1379519945’; unable to remove target: Is a directory&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 16:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66719#M2343</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2013-09-18T16:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66720#M2344</link>
      <description>&lt;P&gt;I suspect, then, that there's a file in there, which is root-owned, and therefore can't be removed by the runtime user. Try ls -lR to check perms and ownership on the files in that bundle directory (the &lt;CODE&gt;585c15ce10fa204cb7e48dd6330ba68c-1379519945&lt;/CODE&gt; one).&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 16:30:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66720#M2344</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-18T16:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66721#M2345</link>
      <description>&lt;P&gt;It doesn't look good. Here it goes (bundle id has changed since last time) :&lt;/P&gt;

&lt;P&gt;total 52&lt;BR /&gt;
drwx------ 4 root root  4096 Sep 18 18:21 21f00b93d35dce596a34a98fe8b9e952-1379521303&lt;BR /&gt;
-rw------- 1 root root 10240 Sep 18 18:21 21f00b93d35dce596a34a98fe8b9e952-1379521303.bundle&lt;BR /&gt;
-rw------- 1 root root 10240 Sep 18 18:21 37fxxxxxxx.bundle&lt;BR /&gt;
-rw------- 1 root root 10240 Sep 18 18:21 af2xxxxxxx.bundle&lt;BR /&gt;
-rw------- 1 root root 10240 Sep 18 18:21 f21c8f9dbad9409bba1e5ea2cafa2621-1379521274.bundle&lt;BR /&gt;
ls: cannot open directory ./21f00b93d35dce596a34a98fe8b9e952-1379521303: Permission denied&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 16:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66721#M2345</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2013-09-18T16:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66722#M2346</link>
      <description>&lt;P&gt;It sounds, then, like the &lt;EM&gt;source&lt;/EM&gt; of these configs--the cluster master--is the one that has the bad configs. Can you check the contents of the master-apps folder on the master?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 16:42:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66722#M2346</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-18T16:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66723#M2347</link>
      <description>&lt;P&gt;Also, how are you starting Splunk? "splunk start" from the command line, or did you set up boot start with &lt;CODE&gt;splunk enable boot-start --user &amp;lt;other_user&amp;gt;&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 16:42:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66723#M2347</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-18T16:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66724#M2348</link>
      <description>&lt;P&gt;Splunk has been started as root manually.&lt;/P&gt;

&lt;P&gt;Also, on the master instance were Splunk was started as root too, here's what i get when i "ll" the directories one by one :&lt;BR /&gt;
drwxr-xr-x.   5 root root  4096 18 sept. 10:07 opt&lt;BR /&gt;
drwxr-xr-x  9 splunk splunk     4096 18 sept. 15:35 splunk_master&lt;BR /&gt;
drwxr-xr-x 15 splunk splunk   4096 18 sept. 10:19 etc&lt;BR /&gt;
drwxrwxrwx  3 splunk splunk  4096 18 sept. 17:03 master-apps&lt;BR /&gt;
drwxrwxrwx 4 splunk splunk 4096 18 sept. 12:27 default_ftpub&lt;BR /&gt;
drwxrwxrwx 2 splunk splunk 4096 18 sept. 18:50 local&lt;BR /&gt;
-rwxrwxrwx 1 splunk splunk 381 18 sept. 18:50 indexes.conf&lt;/P&gt;

&lt;P&gt;Anything wrong in there ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:48:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66724#M2348</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2020-09-28T14:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66725#M2349</link>
      <description>&lt;P&gt;Those permissions look fine. The fact that the bundles are arriving at the indexer owned by root, however, now suggests that the Splunk process is running as root on the indexer. Further, you might have a restrictive umask in play, but that's not the critical issue.&lt;/P&gt;

&lt;P&gt;Please check the owner of the 'splunkd' process on the indexer; I suspect that it is running as root.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 17:18:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66725#M2349</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-18T17:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66726#M2350</link>
      <description>&lt;P&gt;Hum, i'll have to double check who's the owner of splunkd.&lt;/P&gt;

&lt;P&gt;Another idea ... could the OS (Fedora 19) be a problem ? Or any weird package running on the servers ? I've tried to get rid of selinux firewalld and stuff like that but ... there might be other components to take into account. &lt;/P&gt;

&lt;P&gt;I think i might perform a clean install of Splunk again. I'm getting really confused here and have no idea why i'm getting this error.&lt;/P&gt;

&lt;P&gt;On the other end ... using the master / slave apps process isn't really critical. I have three slave indexers so I could just copy paste the files when i have to ...&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 18:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66726#M2350</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2013-09-18T18:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66727#M2351</link>
      <description>&lt;P&gt;No, the OS should not be a problem. A package running on the server (or something like SELinux) &lt;EM&gt;might&lt;/EM&gt; be affecting permissions.&lt;/P&gt;

&lt;P&gt;I wouldn't try to shortcut the master-apps / slave-apps process, though. That's critical for the master to know that the indexer has the right config to be able to consider it a valid member of the cluster.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 19:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66727#M2351</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-18T19:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66728#M2352</link>
      <description>&lt;P&gt;I have disabled selinux already, i'll be looking for other packages tomorrow.&lt;/P&gt;

&lt;P&gt;I'll let you know when i have more information, it's time to have dinner and go to bed in Europe already &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks a lot for you help today.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 19:34:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66728#M2352</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2013-09-18T19:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66729#M2353</link>
      <description>&lt;P&gt;Splunk is owned by root, on the master + search head and on the slave indexers.&lt;/P&gt;

&lt;P&gt;I think the problem is linked to a different filesystem mapped on /opt/splunk/var ... I'll try and change that, see if it makes any difference.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 12:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66729#M2353</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2013-09-19T12:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66730#M2354</link>
      <description>&lt;P&gt;Still, how could the splunk user move a bundle created by root and with the following rights  ?&lt;BR /&gt;
drwx------ 4 root root  4096 Sep 18 18:51 250b9a3088043742da0eb3992c987307-1379523088&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 14:01:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66730#M2354</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2013-09-19T14:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66731#M2355</link>
      <description>&lt;P&gt;The Splunk user couldn't, and that was the complaint from the log, no?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 14:21:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66731#M2355</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-19T14:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66732#M2356</link>
      <description>&lt;P&gt;Yes.&lt;BR /&gt;
I couldn't solve this so I went for a fresh new install and everything's fine now.&lt;BR /&gt;
We were using different filesystems and i'm not sure all of these were mounted correctly.&lt;BR /&gt;
My sys admin seemed confused but there's not problem at all now that we got rid of all symbolic links and stuff.&lt;/P&gt;

&lt;P&gt;Thanks for your help sowings.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 09:28:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66732#M2356</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2013-10-02T09:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Slave-apps folder is always empty</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66733#M2357</link>
      <description>&lt;P&gt;I couldn't solve this so I went for a fresh new install and everything's fine now.&lt;BR /&gt;
We were using different filesystems and i'm not sure all of these were mounted correctly.&lt;BR /&gt;
My sys admin seemed confused but there's not problem at all now that we got rid of all symbolic links and stuff.&lt;/P&gt;

&lt;P&gt;Looks like the issue is absolutely not Splunk related.&lt;/P&gt;

&lt;P&gt;Mat&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 09:29:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Slave-apps-folder-is-always-empty/m-p/66733#M2357</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2013-10-02T09:29:29Z</dc:date>
    </item>
  </channel>
</rss>

