<?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: error loading shared libraries running as non root user in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63484#M180294</link>
    <description>&lt;P&gt;chown -R splunk:splunk was run on /opt/splunk and everything is owned by the running user.  I'll have the sysadmins reinstall the rpm and see if that makes a difference&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2011 01:54:17 GMT</pubDate>
    <dc:creator>ajs07635</dc:creator>
    <dc:date>2011-03-22T01:54:17Z</dc:date>
    <item>
      <title>error loading shared libraries running as non root user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63481#M180291</link>
      <description>&lt;P&gt;I am trying to run splunk as a non-root user, but every time i start splunk I get the error "splunkd: error while loading shared libraries: libxslt.so.1: cannot open shared object file: No such file or directory"  &lt;/P&gt;

&lt;P&gt;I have created a user and group named "splunk" to run the server as.  I have given it rights to read/write /opt/splunk.  Even if I do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ sudo -u splunk bash
bash$ source /opt/splunk/bin/setSplunkEnv
bash$ /opt/splunk/bin/splunk start
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I still get that error.  As long as i set the $SPLUNK_HOME using setSplunkEnv, ldd correctly finds all the libraries on the system or in the /opt/splunk/lib/ directory.  &lt;/P&gt;

&lt;P&gt;It does work fine when I start it as root.&lt;/P&gt;

&lt;P&gt;To make things more complicated, my sysadmins tell me that having /opt/splunk/lib in /etc/ld.so.conf breaks their Red Hat Network update stuff so they removed it.  So, I tried the following before starting splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;export LD_LIBRARY_PATH=/opt/splunk/lib
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which also results in ldd finding all the libraries, but I still get the error when starting splunkd.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ sudo -u splunk bash
bash$ export LD_LIBRARY_PATH=/opt/splunk/lib
bash$ source /opt/splunk/bin/setSplunkEnv
bash$ /opt/splunk/bin/splunk start
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;PRE&gt;
Splunk&amp;gt; All batbelt. No tights.

Checking Prerequisites...
        Checking http port [8000]: open
        Checking mgmt port [8089]: open
        Checking configuration...  Done.
        Checking index directory...  Done.
        Checking databases...
        Validated databases: _audit, _blocksignature, _internal, _thefishbucket, history, main, sample, summary, test
        Checking for SELinux
All Preliminary checks passed.

splunkd: error while loading shared libraries: libxslt.so.1: cannot open shared object file: No such file or directory
&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Mar 2011 13:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63481#M180291</guid>
      <dc:creator>ajs07635</dc:creator>
      <dc:date>2011-03-19T13:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: error loading shared libraries running as non root user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63482#M180292</link>
      <description>&lt;P&gt;Oh, and if its helpful to anyone, the OS is RHEL6 x86_64&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2011 13:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63482#M180292</guid>
      <dc:creator>ajs07635</dc:creator>
      <dc:date>2011-03-19T13:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: error loading shared libraries running as non root user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63483#M180293</link>
      <description>&lt;P&gt;You shouldn't need to do any of this stuff, much less mess with the system /etc/ld.so.conf. What I would do is:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Make sure that the ownership of the entire /opt/splunk hierarchy is owned by the running user (use &lt;CODE&gt;chown -R&lt;/CODE&gt;)&lt;/LI&gt;
&lt;LI&gt;re-extract/re-install the Splunk files (say, using &lt;CODE&gt;tar -xf&lt;/CODE&gt;). It's possible that some files weren't extracted correctly.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;There's not really very much more to it. &lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 00:01:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63483#M180293</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-03-21T00:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: error loading shared libraries running as non root user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63484#M180294</link>
      <description>&lt;P&gt;chown -R splunk:splunk was run on /opt/splunk and everything is owned by the running user.  I'll have the sysadmins reinstall the rpm and see if that makes a difference&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 01:54:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63484#M180294</guid>
      <dc:creator>ajs07635</dc:creator>
      <dc:date>2011-03-22T01:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: error loading shared libraries running as non root user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63485#M180295</link>
      <description>&lt;P&gt;I had a sysadmin reinstall splunk and then upgrade it to 4.2 and it seems to be working fine, so I guess that must have been the issue.  Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2011 01:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/error-loading-shared-libraries-running-as-non-root-user/m-p/63485#M180295</guid>
      <dc:creator>ajs07635</dc:creator>
      <dc:date>2011-03-23T01:37:54Z</dc:date>
    </item>
  </channel>
</rss>

