<?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 doesn't start on cgroup2 only system in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/582599#M11135</link>
    <description>&lt;P&gt;In documentation they said that cgroup should be version 1.&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Workloads/Requirements#Linux_operating_system_requirements" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/Workloads/Requirements#Linux_operating_system_requirements&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 18:35:09 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2022-01-26T18:35:09Z</dc:date>
    <item>
      <title>Splunk doesn't start on cgroup2 only system</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/582173#M11119</link>
      <description>&lt;P&gt;I have installed Splunk on a cgroup1/2 hybrid system using "enable boot-start systemd-managed 1" to start it on bootup.&lt;/P&gt;&lt;P&gt;Yesterday I switched to a cgroup2 only system by disabling the usage of cgroup1 via grub/kernel boot parameters.&lt;/P&gt;&lt;P&gt;Now splunk doesn't start anymore due to a file in the cgroup1 file system hierarchy no longer been present:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Jan 22 10:25:54 bigigloo systemd[1]: Stopping Systemd service file for Splunk, generated by 'splunk enable boot-start'...
Jan 22 10:30:58 bigigloo systemd[1]: Splunkd.service: Killing process 2847689 (python3.7) with signal SIGKILL.
Jan 22 10:30:58 bigigloo systemd[1]: Splunkd.service: Succeeded.
Jan 22 10:30:58 bigigloo systemd[1]: Stopped Systemd service file for Splunk, generated by 'splunk enable boot-start'.
-- Reboot --
Jan 22 10:36:19 bigigloo systemd[1]: Starting Systemd service file for Splunk, generated by 'splunk enable boot-start'...
Jan 22 10:36:19 bigigloo bash[3180]: chown: cannot access '/sys/fs/cgroup/cpu/system.slice/Splunkd.service': No such file or directory
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Control process exited, code=exited, status=1/FAILURE
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Killing process 3393 (sh) with signal SIGKILL.
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Killing process 3408 (sh) with signal SIGKILL.
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Failed with result 'exit-code'.
Jan 22 10:36:22 bigigloo systemd[1]: Failed to start Systemd service file for Splunk, generated by 'splunk enable boot-start'.
Jan 22 10:36:22 bigigloo bash[3475]: chown: cannot access '/sys/fs/cgroup/cpu/system.slice/Splunkd.service': No such file or directory
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Scheduled restart job, restart counter is at 1.
Jan 22 10:36:23 bigigloo bash[3480]: chown: cannot access '/sys/fs/cgroup/cpu/system.slice/Splunkd.service': No such file or directory
Jan 22 10:36:22 bigigloo systemd[1]: Stopped Systemd service file for Splunk, generated by 'splunk enable boot-start'.
Jan 22 10:36:22 bigigloo systemd[1]: Starting Systemd service file for Splunk, generated by 'splunk enable boot-start'...
Jan 22 10:36:23 bigigloo bash[3496]: chown: cannot access '/sys/fs/cgroup/cpu/system.slice/Splunkd.service': No such file or directory
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Control process exited, code=exited, status=1/FAILURE
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Killing process 3476 (sh) with signal SIGKILL.
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Killing process 3477 (btool) with signal SIGKILL.
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Failed with result 'exit-code'.
Jan 22 10:36:22 bigigloo systemd[1]: Failed to start Systemd service file for Splunk, generated by 'splunk enable boot-start'.
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Scheduled restart job, restart counter is at 2.
Jan 22 10:36:22 bigigloo systemd[1]: Stopped Systemd service file for Splunk, generated by 'splunk enable boot-start'.
Jan 22 10:36:22 bigigloo systemd[1]: Starting Systemd service file for Splunk, generated by 'splunk enable boot-start'...
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Control process exited, code=exited, status=1/FAILURE
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Killing process 3481 (sh) with signal SIGKILL.
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Killing process 3482 (btool) with signal SIGKILL.
Jan 22 10:36:22 bigigloo systemd[1]: Splunkd.service: Failed with result 'exit-code'.
Jan 22 10:36:22 bigigloo systemd[1]: Failed to start Systemd service file for Splunk, generated by 'splunk enable boot-start'.
Jan 22 10:36:23 bigigloo systemd[1]: Splunkd.service: Scheduled restart job, restart counter is at 3.
Jan 22 10:36:23 bigigloo systemd[1]: Stopped Systemd service file for Splunk, generated by 'splunk enable boot-start'.
Jan 22 10:36:23 bigigloo systemd[1]: Starting Systemd service file for Splunk, generated by 'splunk enable boot-start'...
Jan 22 10:36:23 bigigloo systemd[1]: Splunkd.service: Control process exited, code=exited, status=1/FAILURE
Jan 22 10:36:23 bigigloo systemd[1]: Splunkd.service: Killing process 3497 (sh) with signal SIGKILL.
Jan 22 10:36:23 bigigloo systemd[1]: Splunkd.service: Killing process 3499 (btool) with signal SIGKILL.
Jan 22 10:36:23 bigigloo systemd[1]: Splunkd.service: Failed with result 'exit-code'.
Jan 22 10:36:23 bigigloo systemd[1]: Failed to start Systemd service file for Splunk, generated by 'splunk enable boot-start'.
Jan 22 10:36:23 bigigloo systemd[1]: Splunkd.service: Scheduled restart job, restart counter is at 4.
Jan 22 10:36:23 bigigloo systemd[1]: Stopped Systemd service file for Splunk, generated by 'splunk enable boot-start'.
Jan 22 10:36:23 bigigloo systemd[1]: Starting Systemd service file for Splunk, generated by 'splunk enable boot-start'...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tracked the problem down to the two ExecStartPost commands in the unit file /etc/systemd/system/Splunkd.service. Commenting those two fixed the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#This unit file replaces the traditional start-up script for systemd
#configurations, and is used when enabling boot-start for Splunk on
#systemd-based Linux distributions.

[Unit]
Description=Systemd service file for Splunk, generated by 'splunk enable boot-start'
After=network.target

[Service]
Type=simple
Restart=always
ExecStart=/opt/splunk/bin/splunk _internal_launch_under_systemd
KillMode=mixed
KillSignal=SIGINT
TimeoutStopSec=360
LimitNOFILE=65536
SuccessExitStatus=51 52
RestartPreventExitStatus=51
RestartForceExitStatus=52
User=root
Group=root
Delegate=true
CPUShares=1024
MemoryLimit=20868083712
PermissionsStartOnly=true
#ExecStartPost=/bin/bash -c "chown -R root:root /sys/fs/cgroup/cpu/system.slice/%n"
#ExecStartPost=/bin/bash -c "chown -R root:root /sys/fs/cgroup/memory/system.slice/%n"

[Install]
WantedBy=multi-user.target&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;However, I presume updates of Splunk might restore the files to the old variant again. What do I need to do in order to make the start of Splunk cgroup2 compliant?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 10:34:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/582173#M11119</guid>
      <dc:creator>daubsi_2</dc:creator>
      <dc:date>2022-01-23T10:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't start on cgroup2 only system</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/582574#M11134</link>
      <description>&lt;P&gt;I just noticed the same issue myself, would also like an answer&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 16:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/582574#M11134</guid>
      <dc:creator>mohare</dc:creator>
      <dc:date>2022-01-26T16:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't start on cgroup2 only system</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/582599#M11135</link>
      <description>&lt;P&gt;In documentation they said that cgroup should be version 1.&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Workloads/Requirements#Linux_operating_system_requirements" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/Workloads/Requirements#Linux_operating_system_requirements&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 18:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/582599#M11135</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-01-26T18:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't start on cgroup2 only system</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/582728#M11136</link>
      <description>&lt;P&gt;Too bad &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Hope they will offer a solution in the near future though&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 11:36:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/582728#M11136</guid>
      <dc:creator>daubsi_2</dc:creator>
      <dc:date>2022-01-27T11:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't start on cgroup2 only system</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/583881#M11168</link>
      <description>&lt;P&gt;It appears to be a path issue. The immediate cause of the failure is that one of the parent directories does not exist.&amp;nbsp; Exploring around the cgroup folder, I noticed that most services had created their own directories in &lt;FONT face="courier new,courier"&gt;/sys/fs/cgroup/system.slice&lt;/FONT&gt;, in that the separate cpu and memory directories do not exist, hence why the chown fails. So I just modified my splunk systemd service file from&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/cpu/system.slice/%n"
ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/memory/system.slice/%&lt;/LI-CODE&gt;&lt;P&gt;to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/system.slice/%n"
ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/system.slice/%&lt;/LI-CODE&gt;&lt;P&gt;In my case, I was running splunk as splunk, not root, but the same occurred on a host where I was running the splunk processes as root as well.&lt;/P&gt;&lt;P&gt;I had the same issue on some Fedora machines running the universal forwarder as well.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 21:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-doesn-t-start-on-cgroup2-only-system/m-p/583881#M11168</guid>
      <dc:creator>Graham_W</dc:creator>
      <dc:date>2022-02-06T21:24:41Z</dc:date>
    </item>
  </channel>
</rss>

