<?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 When installing the universal forwarder, why is it unable to create /opt/app/splunkforwarder/var folder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/When-installing-the-universal-forwarder-why-is-it-unable-to/m-p/225198#M44050</link>
    <description>&lt;P&gt;I'm trying to install Splunk Universal Forwarder on Red Hat OS. I am getting stuck at this step. Before this command, I've already ran:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;chown -R splunk /opt/app/splunkforwarder
chmod -R 755 /opt/app/splunkforwarder
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The permissions and groups are all there. For some reason, it seems like it can't create /opt/app/splunkforwarder/var folder.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@server etc]# /opt/app/splunkforwarder/bin/splunk enable boot-start -user splunk --accept-license

Warning: cannot create "/opt/app/splunkforwarder/var/log/splunk"

Warning: cannot create "/opt/app/splunkforwarder/var/log/introspection"
First-time-run has not finished.  Ignore this error when previewing migration - exiting.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 09 Nov 2016 21:54:23 GMT</pubDate>
    <dc:creator>dmacndawk</dc:creator>
    <dc:date>2016-11-09T21:54:23Z</dc:date>
    <item>
      <title>When installing the universal forwarder, why is it unable to create /opt/app/splunkforwarder/var folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-installing-the-universal-forwarder-why-is-it-unable-to/m-p/225198#M44050</link>
      <description>&lt;P&gt;I'm trying to install Splunk Universal Forwarder on Red Hat OS. I am getting stuck at this step. Before this command, I've already ran:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;chown -R splunk /opt/app/splunkforwarder
chmod -R 755 /opt/app/splunkforwarder
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The permissions and groups are all there. For some reason, it seems like it can't create /opt/app/splunkforwarder/var folder.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@server etc]# /opt/app/splunkforwarder/bin/splunk enable boot-start -user splunk --accept-license

Warning: cannot create "/opt/app/splunkforwarder/var/log/splunk"

Warning: cannot create "/opt/app/splunkforwarder/var/log/introspection"
First-time-run has not finished.  Ignore this error when previewing migration - exiting.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Nov 2016 21:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-installing-the-universal-forwarder-why-is-it-unable-to/m-p/225198#M44050</guid>
      <dc:creator>dmacndawk</dc:creator>
      <dc:date>2016-11-09T21:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: When installing the universal forwarder, why is it unable to create /opt/app/splunkforwarder/var folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-installing-the-universal-forwarder-why-is-it-unable-to/m-p/225199#M44051</link>
      <description>&lt;P&gt;I think the issue is that when you run &lt;CODE&gt;chown -R splunk /opt/app/splunkforwarder&lt;/CODE&gt; you are instructing that the ownership of these folders and subfolders shouldo be changed to a user called &lt;CODE&gt;splunk&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;However when you are running the Splunk binary you are running it as a &lt;CODE&gt;root&lt;/CODE&gt;:&lt;BR /&gt;
&lt;CODE&gt;[root@server etc]# /opt/app/splunkforwarder/bin/splunk enable boot-start -user splunk --accept-license&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Switch to user &lt;CODE&gt;splunk&lt;/CODE&gt; and then run, which should sort it out.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 01:09:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-installing-the-universal-forwarder-why-is-it-unable-to/m-p/225199#M44051</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-11-10T01:09:23Z</dc:date>
    </item>
  </channel>
</rss>

