<?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: systemd service fails during boot in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/540852#M90529</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;do you have something occuring at start that could not have completed when splunk service is started nut still be needed by splunk ?&lt;/P&gt;&lt;P&gt;like a partition mount ? or a security feature ?&lt;/P&gt;&lt;P&gt;you could use systemd-analyze to understand your boot order&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 15:34:23 GMT</pubDate>
    <dc:creator>maraman_splunk</dc:creator>
    <dc:date>2021-02-22T15:34:23Z</dc:date>
    <item>
      <title>systemd service fails during boot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/540846#M90527</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have an &lt;STRONG&gt;Splunk Enterprise version 8.0.5&lt;/STRONG&gt; configured in PRD, we have &lt;STRONG&gt;&lt;EM&gt;enabled boot-start&lt;/EM&gt;&lt;/STRONG&gt; with &lt;STRONG&gt;&lt;EM&gt;--systemd-managed 1&lt;/EM&gt;&lt;/STRONG&gt; and specified the user splunk as the owner of the service. It keeps failing during boot with this error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;start request repeated too quickly for splunk.service&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If I run "&lt;STRONG&gt;splunk start | restart | stop&lt;/STRONG&gt;" it uses systemd to manage the process also (what is correct) and it works properly after boot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run "&lt;STRONG&gt;systemctl start splunk"&lt;/STRONG&gt; after boot, the service starts ok. The problem is only during boot.&lt;/P&gt;&lt;P&gt;Server information:&lt;/P&gt;&lt;P&gt;NAME="Oracle Linux Server"&lt;BR /&gt;VERSION="7.9"&lt;/P&gt;&lt;P&gt;journalctl logs says:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Failed at step EXEC spawning /opt/splunk/bin/splunk: No such file or directory&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-- Subject: Process /opt/splunk/bin/splunk could not be executed&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;-- Defined-By: systemd&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;-- Support: &lt;A href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank" rel="noopener"&gt;http://lists.freedesktop.org/mailman/listinfo/systemd-devel&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;-- &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;-- The process /opt/splunk/bin/splunk could not be executed and failed.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;-- &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;-- The error number returned by this process is 2.&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we fix it?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 14:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/540846#M90527</guid>
      <dc:creator>denissotoacc</dc:creator>
      <dc:date>2021-02-22T14:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: systemd service fails during boot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/540852#M90529</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;do you have something occuring at start that could not have completed when splunk service is started nut still be needed by splunk ?&lt;/P&gt;&lt;P&gt;like a partition mount ? or a security feature ?&lt;/P&gt;&lt;P&gt;you could use systemd-analyze to understand your boot order&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 15:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/540852#M90529</guid>
      <dc:creator>maraman_splunk</dc:creator>
      <dc:date>2021-02-22T15:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: systemd service fails during boot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/540859#M90530</link>
      <description>&lt;P&gt;Indeed, we have /opt/splunk as a partition mount. Should we add something to the unit file in order to wait for partition's initialization? How can we do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 15:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/540859#M90530</guid>
      <dc:creator>denissotoacc</dc:creator>
      <dc:date>2021-02-22T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: systemd service fails during boot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/540863#M90531</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I find a bit unusual that your partition doesnt get mounted before splunk start but you can add a dependency on a mounted partition following something like &lt;A href="https://unix.stackexchange.com/questions/246935/set-systemd-service-to-execute-after-fstab-mount" target="_blank"&gt;https://unix.stackexchange.com/questions/246935/set-systemd-service-to-execute-after-fstab-mount&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 16:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/540863#M90531</guid>
      <dc:creator>maraman_splunk</dc:creator>
      <dc:date>2021-02-22T16:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: systemd service fails during boot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/541507#M90575</link>
      <description>&lt;P&gt;[SOLVED]:&lt;/P&gt;&lt;P&gt;I had to append the following parameters to the [Service] tag in the unit file (splunk.service):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;StartLimitInterval=30&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;StartLimitBurst=5&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RestartSec=10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now it's working correctly.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 12:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/systemd-service-fails-during-boot/m-p/541507#M90575</guid>
      <dc:creator>denissotoacc</dc:creator>
      <dc:date>2021-02-26T12:35:18Z</dc:date>
    </item>
  </channel>
</rss>

