<?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 reports first-time run failed! in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Splunk-reports-first-time-run-failed/m-p/464517#M10806</link>
    <description>&lt;P&gt;Hello @aagashe,&lt;/P&gt;

&lt;P&gt;it looks like a permission issue, the splunk folders and files belong to other user (or root?) or splunk is already running. It happens often if splunk installed from tgz.&lt;/P&gt;

&lt;P&gt;Run with root privileges (change the $SPLUNK_HOME as appropriate):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo pkill -f splunk
sudo chown -R splunk:splunk /opt/splunk
sudo /opt/splunk/bin/splunk enable boot-start -user splunk --accept-license
sudo systemctl start splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The modern way to run Splunk is using systemd, so you can change it to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    sudo pkill -f splunk
    sudo chown -R splunk:splunk /opt/splunk
    sudo ./splunk enable boot-start -user splunk -systemd-managed 1 --accept-license
    sudo systemctl start Splunkd
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you choose the last method, stick to it and start/stop splunk using "sudo systemctl" only.&lt;/P&gt;</description>
    <pubDate>Mon, 25 May 2020 05:54:54 GMT</pubDate>
    <dc:creator>PavelP</dc:creator>
    <dc:date>2020-05-25T05:54:54Z</dc:date>
    <item>
      <title>Splunk reports first-time run failed!</title>
      <link>https://community.splunk.com/t5/Reporting/Splunk-reports-first-time-run-failed/m-p/464516#M10805</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I tried to run Splunk but it gives errors as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunk@ip-172-31-10-67 bin]$ sudo ./splunk enable boot-start -user splunk --accept-license

Warning: cannot create "/opt/splunk/var/log/splunk"

Warning: cannot create "/opt/splunk/var/log/introspection"

Warning: cannot create "/opt/splunk/var/log/watchdog"
Warning: cannot create "/opt/splunk/etc/licenses/download-trial"
First-time run failed!

[splunk@ip-172-31-10-67 bin]$ sudo ./splunk start --accept-license

Warning: cannot create "/opt/splunk/var/log/splunk"

Warning: cannot create "/opt/splunk/var/log/introspection"

Warning: cannot create "/opt/splunk/var/log/watchdog"
Warning: cannot create "/opt/splunk/etc/licenses/download-trial"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How to resolve these warnings? Also is it possible to provide a response file when we run the Splunk for the first time so I do not have to type the responses thereby we can automate without manual intervention?&lt;/P&gt;

&lt;P&gt;Please assist.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 02:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Splunk-reports-first-time-run-failed/m-p/464516#M10805</guid>
      <dc:creator>aagashe</dc:creator>
      <dc:date>2020-05-25T02:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk reports first-time run failed!</title>
      <link>https://community.splunk.com/t5/Reporting/Splunk-reports-first-time-run-failed/m-p/464517#M10806</link>
      <description>&lt;P&gt;Hello @aagashe,&lt;/P&gt;

&lt;P&gt;it looks like a permission issue, the splunk folders and files belong to other user (or root?) or splunk is already running. It happens often if splunk installed from tgz.&lt;/P&gt;

&lt;P&gt;Run with root privileges (change the $SPLUNK_HOME as appropriate):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo pkill -f splunk
sudo chown -R splunk:splunk /opt/splunk
sudo /opt/splunk/bin/splunk enable boot-start -user splunk --accept-license
sudo systemctl start splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The modern way to run Splunk is using systemd, so you can change it to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    sudo pkill -f splunk
    sudo chown -R splunk:splunk /opt/splunk
    sudo ./splunk enable boot-start -user splunk -systemd-managed 1 --accept-license
    sudo systemctl start Splunkd
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you choose the last method, stick to it and start/stop splunk using "sudo systemctl" only.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 05:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Splunk-reports-first-time-run-failed/m-p/464517#M10806</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-25T05:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk reports first-time run failed!</title>
      <link>https://community.splunk.com/t5/Reporting/Splunk-reports-first-time-run-failed/m-p/464518#M10807</link>
      <description>&lt;P&gt;Ok, how to provide username and password? When I run for the first time I have to provide username and password, I was thinking if there is a response file so that part can be automated as well.&lt;/P&gt;

&lt;P&gt;Please guide.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 05:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Splunk-reports-first-time-run-failed/m-p/464518#M10807</guid>
      <dc:creator>aagashe</dc:creator>
      <dc:date>2020-05-26T05:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk reports first-time run failed!</title>
      <link>https://community.splunk.com/t5/Reporting/Splunk-reports-first-time-run-failed/m-p/464519#M10808</link>
      <description>&lt;P&gt;@aagashe, &lt;/P&gt;

&lt;P&gt;there are various scripts to install splunk on linux, also for an unattended install:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/search.html?f=&amp;amp;redirect=search%2Fsearch&amp;amp;sort=relevance&amp;amp;q=install+script+linux&amp;amp;type=question"&gt;https://answers.splunk.com/search.html?f=&amp;amp;redirect=search%2Fsearch&amp;amp;sort=relevance&amp;amp;q=install+script+linux&amp;amp;type=question&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Additionally check this: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Installation/StartSplunkforthefirsttime#Start_Splunk_Enterprise_without_prompting.2C_or_by_answering_.22yes.22_to_any_prompts"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Installation/StartSplunkforthefirsttime#Start_Splunk_Enterprise_without_prompting.2C_or_by_answering_.22yes.22_to_any_prompts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 07:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Splunk-reports-first-time-run-failed/m-p/464519#M10808</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-26T07:00:47Z</dc:date>
    </item>
  </channel>
</rss>

