<?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: splunkd is not running. &amp;quot;failed splunkd.pid doesn't exist&amp;quot; in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/675180#M11326</link>
    <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was having the same issue, and it turned out to be a problem with the installation. So, I just did a yum remove splunk* and removed the /opt/splunkforwarder home directory completely.&amp;nbsp; After, uninstalling and removing the splunk home directory, and I started spunk just fine and I was able to run the add monitor command without any issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running RHEL 8.x and issuing all of these commands via the Linux CLI. Splunk version is 9.1.2. I hope this helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Respectfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guillermo&amp;nbsp;&lt;/P&gt;&lt;P&gt;Washington, DC&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 14:28:08 GMT</pubDate>
    <dc:creator>gejimenez</dc:creator>
    <dc:date>2024-01-23T14:28:08Z</dc:date>
    <item>
      <title>splunkd is not running. "failed splunkd.pid doesn't exist"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/668656#M11253</link>
      <description>&lt;P&gt;I have installed Splunk forwarder 9.1.1 on a linux server, but the user and group splunk was unable to be created from the rpm installation. I thought that could have fixed the issue as to why i kept getting an inactive forward-server, but I ended up getting a new error. when i try to restart splunk forwarder, i get the following error:&lt;/P&gt;&lt;P&gt;splunkd is not running. "failed splunkd.pid doesn't exist"&lt;/P&gt;&lt;P&gt;and when i try to have splunk forwarder list the forward-server, I get the following error 3 times:&lt;/P&gt;&lt;P&gt;'tcp_conn_open_afux ossocket_connect failed with no such file or directory'&lt;/P&gt;&lt;P&gt;it still lists my server as an inactive one despite having another splunk forwarder linux host properly connecting to splunk enterprise via ssl connection.&lt;/P&gt;&lt;P&gt;I have also made sure that the listening port (9997) is listened to by splunk. its the same port used by the other linux host to forward logs to&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 22:59:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/668656#M11253</guid>
      <dc:creator>LMEnterprise</dc:creator>
      <dc:date>2023-11-14T22:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd is not running. "failed splunkd.pid doesn't exist"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/675180#M11326</link>
      <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was having the same issue, and it turned out to be a problem with the installation. So, I just did a yum remove splunk* and removed the /opt/splunkforwarder home directory completely.&amp;nbsp; After, uninstalling and removing the splunk home directory, and I started spunk just fine and I was able to run the add monitor command without any issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running RHEL 8.x and issuing all of these commands via the Linux CLI. Splunk version is 9.1.2. I hope this helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Respectfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guillermo&amp;nbsp;&lt;/P&gt;&lt;P&gt;Washington, DC&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 14:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/675180#M11326</guid>
      <dc:creator>gejimenez</dc:creator>
      <dc:date>2024-01-23T14:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd is not running. "failed splunkd.pid doesn't exist"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/746375#M11921</link>
      <description>&lt;P class=""&gt;I encountered nearly identical symptoms on one of my RHEL9 systems. The key errors you mentioned:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;"splunkd is not running. failed splunkd.pid doesn't exist"&lt;/LI&gt;&lt;LI&gt;"tcp_conn_open_afux ossocket_connect failed with no such file or directory"&lt;/LI&gt;&lt;LI&gt;Forwarder showing as "inactive" despite correct configuration&lt;P class=""&gt;These are classic signs of what I discovered was a "split brain" situation with duplicate systemd service files. While your reinstall fixed it (likely by cleaning up these duplicate files), others might benefit from understanding the root cause:&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Check for duplicate service files:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN&gt;ls -la /usr/lib/systemd/system/SplunkForwarder.service&lt;SPAN&gt;ls -la /etc/systemd/system/SplunkForwarder.service&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;If both exist, that's the problem! The one in /etc/systemd/system/ takes precedence and might have different user/permissions settings. In my case, one was set to run as SplunkFwd user while the other was running as root.&lt;/P&gt;&lt;P class=""&gt;This causes a situation where:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;Systemd shows SplunkForwarder running&lt;/LI&gt;&lt;LI&gt;Splunk CLI thinks it's not running&lt;/LI&gt;&lt;LI&gt;Permission conflicts prevent proper operation&lt;/LI&gt;&lt;LI&gt;PID file issues occur&lt;/LI&gt;&lt;LI&gt;Connection failures happen despite proper network connectivity&lt;P class=""&gt;The fix is simpler than reinstalling:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN&gt;sudo rm /etc/systemd/system/SplunkForwarder.service&lt;SPAN&gt;sudo systemctl daemon-reload&lt;SPAN&gt;sudo systemctl restart SplunkForwarder&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;This can happen when multiple installation methods are used (like RPM install + splunk enable boot-start). Sharing this because my "nuke and pave" initially didn't work either until I discovered this specific issue.&amp;nbsp; Being in the DoD air-gap hell made this even harder to troubleshoot!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 16 May 2025 21:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/746375#M11921</guid>
      <dc:creator>jnoose</dc:creator>
      <dc:date>2025-05-16T21:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd is not running. "failed splunkd.pid doesn't exist"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/746385#M11922</link>
      <description>&lt;P&gt;I've seen this exact issue before with Splunk Universal Forwarders. The "splunkd.pid doesn't exist" error combined with the "tcp_conn_open_afux ossocket_connect failed" messages typically happens when there's a conflict between how the Splunk process is started and managed.&lt;/P&gt;&lt;P&gt;Based on your description, this is likely one of two issues:&lt;/P&gt;&lt;P&gt;a. Duplicate systemd service files causing a "split brain" situation&lt;BR /&gt;b. Permission problems with the Splunk installation directory&lt;/P&gt;&lt;P&gt;For the first issue, check if you have duplicate service definitions:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;ls -la /usr/lib/systemd/system/SplunkForwarder.service
ls -la /etc/systemd/system/SplunkForwarder.service&lt;/LI-CODE&gt;&lt;P&gt;If both exist, that's causing your problem! The one in /etc/systemd/system takes precedence, and they might have different user/permission settings. You can fix this by:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;sudo rm /etc/systemd/system/SplunkForwarder.service
sudo systemctl daemon-reload
sudo systemctl restart SplunkForwarder&lt;/LI-CODE&gt;&lt;P&gt;If that doesn't work, check the ownership of your Splunk files:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;ls -la /opt/splunkforwarder&lt;/LI-CODE&gt;&lt;P&gt;Make sure everything is owned by the correct user (typically splunk:splunk). If permissions are wrong, you can fix with:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;chown -R splunk:splunk /opt/splunkforwarder&lt;/LI-CODE&gt;&lt;P&gt;As a last resort, the complete reinstall approach works well:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;sudo systemctl stop SplunkForwarder
sudo yum remove splunk*
sudo rm -rf /opt/splunkforwarder&lt;/LI-CODE&gt;&lt;P&gt;Then reinstall the forwarder and configure it properly. I've had good success with this approach when dealing with these mysterious pid and socket connection errors.&lt;/P&gt;&lt;P&gt;Please give &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; for support &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt; happly splunking .... &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 May 2025 07:36:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/746385#M11922</guid>
      <dc:creator>asimit</dc:creator>
      <dc:date>2025-05-17T07:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd is not running. "failed splunkd.pid doesn't exist"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/746394#M11923</link>
      <description>&lt;P&gt;I forgot what it felt like for someone to copy my assignment in homeroom&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 May 2025 16:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunkd-is-not-running-quot-failed-splunkd-pid-doesn-t-exist/m-p/746394#M11923</guid>
      <dc:creator>jnoose</dc:creator>
      <dc:date>2025-05-17T16:13:57Z</dc:date>
    </item>
  </channel>
</rss>

