• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

SSSD Service Failing with “SSSD is already running” in CentOS/RHEL 7

by admin

The Problem

User is unable to start sssd service and can see following errors in the log files.

# tailf /var/log/messages
...
Jan 26 12:48:54 xxx systemd: Starting System Security Services Daemon...
Jan 26 12:48:54 xxx sssd: SSSD is already running
Jan 26 12:48:54 xxx systemd: sssd.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 26 12:48:54 xxx systemd: Failed to start System Security Services Daemon.
Jan 26 12:48:54 xxx systemd: Unit sssd.service entered failed state.
Jan 26 12:48:54 xxx systemd: sssd.service failed.
# tailf /var/log/sssd/sssd.log
...
(Wed Jan 24 09:58:39:460082 2018) [sssd] [main] (0x0010): pidfile exists at /var/run/sssd.pid
(Wed Jan 24 10:02:07:460441 2018) [sssd] [main] (0x0010): pidfile exists at /var/run/sssd.pid

The Solution

sssd or the System Security Services Daemon is a one-stop shop for user identity wrangling, authentication, and account mapping. The above error simply means that the sssd process was not started or stopped successfully which has created a lock. So it is showing the pidfile existing error.

To resolve this issue, follow the below steps:

1.Remove the /var/run/sssd/sssd.pid file if exists else remove /var/run/sssd.pid file.

# rm /var/run/sssd/sssd.pid

or

# rm /var/run/sssd.pid

2.Remove ‘sssd‘ file inside /var/lock/subsys directory if exists.

# rm /var/lock/subsys/sssd

3.Stop the sssd service

# systemctl stop sssd

4.start sssd service

# systemctl start sssd

Filed Under: CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 7 firewalld : Command line reference (Cheat Sheet)
  2. lvsd Command Examples in Linux
  3. netcat Command Examples in Linux
  4. lsns: command not found
  5. “-bash: firewall: command not found” – How to resolve in CentOS/RHEL 7
  6. How To Migrate Existing Iptables rules to Nftables In CentOS/RHEL 8
  7. How to configure NTP to fall back to local system clock source in CentOS/RHEL
  8. How to configure iSCSI Initiator (client) in CentOS / RHEL 7
  9. CentOS / RHEL : How to backup/restore configuration using authconfig
  10. Linux OS Service ‘sshd’

You May Also Like

Primary Sidebar

Recent Posts

  • raw: command not found
  • raw Command Examples in Linux
  • rankmirrors Command Examples in Linux
  • radeontop: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright