<?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: Splunk Docker Failing when specifying volume mounts in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459557#M1575</link>
    <description>&lt;P&gt;Please try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;volumes:
   - /local/path/for/persistence/var:/opt/splunk/var/
   - /local/path/for/persistence/etc:/opt/splunk/etc/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also if you need a full ansible/docker/splunk-cluster implementation, please have a try at &lt;A href="https://github.com/getkub/ansible_docker_splunk"&gt;https://github.com/getkub/ansible_docker_splunk&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 20:31:56 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2019-05-15T20:31:56Z</dc:date>
    <item>
      <title>Splunk Docker Failing when specifying volume mounts</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459556#M1574</link>
      <description>&lt;P&gt;I've successfully run a Splunk instance using the splunk-provided run command. I then made a compatible docker compose version of the same command. It runs fine. The issue comes when i want to persist the volume mounts. The splunk image creates two volumes:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/etc
/opt/splunk/var
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So I added volume mounts to my compose file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;volumes:
  - /local/path/for/persistence:/opt/splunk/var
  - /local/path/for/persistence:/opt/splunk/etc
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now the container fails with output:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;fatal: [localhost]: FAILED! =&amp;gt; {"changed": false, "cmd": ["/opt/splunk/bin/splunk", "start", "--accept-license", "--answer-yes", "--no-prompt"], "delta": "0:00:03.109600", "end": "2019-05-15 19:46:49.719364", "msg": "non-zero return code", "rc": 10, "start": "2019-05-15 19:46:46.609764", "stderr": "homePath='/opt/splunk/var/lib/splunk/audit/db' of index=_audit on unusable filesystem.\nValidating databases (splunkd validatedb) failed with code '1'.  If you cannot resolve the issue(s) above after consulting documentation, please file a case online at &lt;A href="http://www.splunk.com/page/submit_issue&amp;quot;" target="test_blank"&gt;http://www.splunk.com/page/submit_issue"&lt;/A&gt;, "stderr_lines": ["homePath='/opt/splunk/var/lib/splunk/audit/db' of index=_audit on unusable filesystem.", "Validating databases (splunkd validatedb) failed with code '1'.  If you cannot resolve the issue(s) above after consulting documentation, please file a case online at http://www.splunk.com/page/submit_issue"], "stdout": "\nSplunk&amp;gt; Finding your faults, just like mom.\n\nChecking prerequisites...\n\tChecking http port [8000]: open\n\tChecking mgmt port [8089]: open\n\tChecking appserver port [127.0.0.1:8065]: open\n\tChecking kvstore port [8191]: open\n\tChecking configuration...  Done.\nNew certs have been generated in '/opt/splunk/etc/auth'.\n\tChecking critical directories...\tDone\n\tChecking indexes...\n\t\tCreating: /opt/splunk/var/run/splunk/appserver/i18n\n\t\tCreating: /opt/splunk/var/run/splunk/appserver/modules/static/css\n\t\tCreating: /opt/splunk/var/run/splunk/upload\n\t\tCreating: /opt/splunk/var/spool/splunk\n\t\tCreating: /opt/splunk/var/spool/dirmoncache\n\t\tCreating: /opt/splunk/var/lib/splunk/authDb\n\t\tCreating: /opt/splunk/var/lib/splunk/hashDb", "stdout_lines": ["", "Splunk&amp;gt; Finding your faults, just like mom.", "", "Checking prerequisites...", "\tChecking http port [8000]: open", "\tChecking mgmt port [8089]: open", "\tChecking appserver port [127.0.0.1:8065]: open", "\tChecking kvstore port [8191]: open", "\tChecking configuration...  Done.", "New certs have been generated in '/opt/splunk/etc/auth'.", "\tChecking critical directories...\tDone", "\tChecking indexes...", "\t\tCreating: /opt/splunk/var/run/splunk/appserver/i18n", "\t\tCreating: /opt/splunk/var/run/splunk/appserver/modules/static/css", "\t\tCreating: /opt/splunk/var/run/splunk/upload", "\t\tCreating: /opt/splunk/var/spool/splunk", "\t\tCreating: /opt/splunk/var/spool/dirmoncache", "\t\tCreating: /opt/splunk/var/lib/splunk/authDb", "\t\tCreating: /opt/splunk/var/lib/splunk/hashDb"]}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I cannot figure out why this will not work. Everything works until I persist the volumes. If I can't persist the data, then running splunk is useless.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 14:52:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459556#M1574</guid>
      <dc:creator>kparsons</dc:creator>
      <dc:date>2020-06-10T14:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Docker Failing when specifying volume mounts</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459557#M1575</link>
      <description>&lt;P&gt;Please try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;volumes:
   - /local/path/for/persistence/var:/opt/splunk/var/
   - /local/path/for/persistence/etc:/opt/splunk/etc/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also if you need a full ansible/docker/splunk-cluster implementation, please have a try at &lt;A href="https://github.com/getkub/ansible_docker_splunk"&gt;https://github.com/getkub/ansible_docker_splunk&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 20:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459557#M1575</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-15T20:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Docker Failing when specifying volume mounts</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459558#M1576</link>
      <description>&lt;P&gt;That's not the issue. Docker does not care if that trailing slash is there. &lt;/P&gt;

&lt;P&gt;The actual solution is to set &lt;CODE&gt;OPTIMISTIC_ABOUT_FILE_LOCKING = 1&lt;/CODE&gt; in the launchconf. It's probably a bug where splunk doesnt recognize the file system, since it's a user space file system (docker uses union) instead of the expected file system (such as ext4, xfs, etx). &lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 20:57:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459558#M1576</guid>
      <dc:creator>kparsons</dc:creator>
      <dc:date>2019-05-15T20:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Docker Failing when specifying volume mounts</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459559#M1577</link>
      <description>&lt;P&gt;it's not about trailing slash, but rather specific directory for &lt;CODE&gt;var&lt;/CODE&gt; and &lt;CODE&gt;etc&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Yes, for the launchconf, the problem happens ONLY in MAC i feel. The fix I've provided is during creation of app,&lt;BR /&gt;
&lt;A href="https://github.com/getkub/ansible_docker_splunk/blob/master/ansible/roles/build_splunk_apps/files/dev/MY_all_env_specific/bin/splunk_set_mac.py"&gt;https://github.com/getkub/ansible_docker_splunk/blob/master/ansible/roles/build_splunk_apps/files/dev/MY_all_env_specific/bin/splunk_set_mac.py&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 21:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459559#M1577</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-15T21:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Docker Failing when specifying volume mounts</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459560#M1578</link>
      <description>&lt;P&gt;After re-reading your original comment, I already have var and etc separated. I just didnt translate that into my post. &lt;/P&gt;

&lt;P&gt;And this problem is also in linux. I'm not running on a mac. Debian 9&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 21:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459560#M1578</guid>
      <dc:creator>kparsons</dc:creator>
      <dc:date>2019-05-15T21:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Docker Failing when specifying volume mounts</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459561#M1579</link>
      <description>&lt;P&gt;How did you end up fixing this? I'm having the same issues.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 19:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/459561#M1579</guid>
      <dc:creator>miburo</dc:creator>
      <dc:date>2019-10-31T19:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Docker Failing when specifying volume mounts</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/514968#M3073</link>
      <description>&lt;P&gt;Hi Koshyk,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The link to your repository is broken.&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 14:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-Docker-Failing-when-specifying-volume-mounts/m-p/514968#M3073</guid>
      <dc:creator>gstultz_splunk</dc:creator>
      <dc:date>2020-08-19T14:45:51Z</dc:date>
    </item>
  </channel>
</rss>

