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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. “docker service” Command Examples
  2. What is ioremap()
  3. lshal Command Examples in Linux
  4. CentOS / RHEL : How to set up chroot jail SFTP
  5. How to make ethtool settings persistent across reboots in CentOS / RHEL 6,7
  6. apport-bug Command Examples in Linux
  7. jlink: command not found
  8. create_ap: command not found
  9. lvcreate/lvremove Failed with Error “Can’t remove merging snapshot logical volume”
  10. btrfs inspect-internal Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “glab issue” Command Examples
  • “glab auth” Command Examples
  • “glab alias” Command Examples
  • gixy Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright