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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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 6 : How to password protect grub (Password-Protected Booting)
  2. CentOS / RHEL : How to determine which SNMP version is being used
  3. Linux OS Service ‘lm_sensors’
  4. Nohup Command Examples – Runs a Command that Keeps Running after You Log Out
  5. CentOS / RHEL 7 : How to disable Transparent Huge pages (THP)
  6. How to Change Kernel Semaphore Limits in CentOS/RHEL
  7. Yum Fails with “Error: database disk image is malformed” in /var/log/messages
  8. Understanding dm-Multipath Identifiers in Linux
  9. Linux OS Service ‘network’
  10. pvcreate error : Can’t open /dev/sdx exclusively. Mounted filesystem?

You May Also Like

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary